Path: SC/Attitude
% Model to produce roll, pitch and yaw from nadir and magnetic field
Returns roll, pitch and yaw relative to local vertical.
Type:
AngleDetermination
The demo does single angles, and then three angles.
--------------------------------------------------------------------------
Form: angle = AngleDetermination(r,v,b,jD)
--------------------------------------------------------------------------
------
Inputs
------
r (3,1) ECI orbit position (m)
v (3,1) ECI orbit velocity (km/s)
n (3,1) Nadir vector
b (3,1) Measured magnetic field
jD (3,1) Julian date
-------
Outputs
-------
angle (3,1) [roll;pitch] angle (rad)
--------------------------------------------------------------------------
Copyright (c) 2022 Princeton Satellite Systems, Inc.
All rights reserved.
--------------------------------------------------------------------------
Since version 2022.1
--------------------------------------------------------------------------
AerospaceUtils: Coord/QLVLH SC: Attitude/TwoUToQ SC: Environs/BDipole Common: Quaternion/Q2Eul Common: Quaternion/QForm Common: Time/Date2JD Math: Linear/Unit
Back to the SC Module page