Calculate the closest normal sun mode attitude for the specified starting attitude att and time.
Parameters: |
|
---|---|
Returns: | NSM attitude quaternion |
Return type: | Quat |
Calculate the maneuver profile of the spacecraft and return time, attitude quaternions, and sun pitch.
By default the time steps are calculated to be the closest possible to the specified step while maintaining an even spacing between the start and end of the maneuver. If exact_steps is True then the time steps are exactly as specified and there will be one uneven step at the end.
Example usage:
>>> import Chandra.Maneuver
>>> atts = Chandra.Maneuver.attitudes((0,0,0), (10,20,30))
>>> atts.pitch
array([ 79.64483 , 81.90894478, 89.10262574, 95.10617367, 96.57590726])
>>> atts.q1
array([ 0. , 0.03083816, 0.13619809, 0.23923962, 0.26853582])
Parameters: |
|
---|---|
Return type: | numpy.recarray [ time, q1, q2, q3, q4, pitch] |
Calculate the duration of a maneuver.
Example usage:
>>> import Chandra.Maneuver
>>> Chandra.Maneuver.duration((0,0,0), (20,20,20))
1141.4469982300088
Parameters: |
|
---|---|
Return type: | float seconds |
Calculate the rotation eigenaxis from first three components of quaternion A
Parameters: | A – quaternion as a 4 element numpy |
---|---|
Return type: | 3 element numpy |
Get a list of quaternions from the specified atts attitudes.
Parameters: | atts – recarray of the attitudes, times and pitches |
---|---|
Returns: | list of corresponding Quat objects |
Inject errors into atts corresponding to an initial attitude error att_err and bias error bias_err.
Parameters: |
|
---|---|
Returns: | recarray array of the attitudes, times and pitches |
Given a time array, the maneuver parameters, and a unit vector, calculate the manever phi and dphi in the different segments of the maneuver
Parameters: |
|
---|---|
Return type: | tuple (phi, dphi, d2phi) |
Calculate the parameters/profile of a maneuver, given initial and final attitude quaternions
Parameters: |
|
---|---|
Return type: | tuple (duration, J, eps, tau, manvr_quat ) |
duration is the length of the maneuver in seconds
manvr_quat is q_final / q_init which defines the maneuver quaternion