Apply rotations from Satellite Reference Frame to Local Orbit Frame #171
-
Dear developers, I have a question regarding the program called SimulateStarCamera. Based on the description of this program, it generate rotations from orbit system or satellite frame to CRF. I think, here the assumption is that the orientation of SRF and LOF is the same, but what should I do for a satellite which has several yaw flips during the day? Thank in advance for your time and help. With kind regards, |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 4 replies
-
Hi @tmayerguerr, Regarding the last question I asked, this is the problem I have For a CubeSatellite which does several yaw flips per day, I have the attitude files like what you see in the screenshot. These quaternion are to convert spacecraft reference frame to orbit level frame. My question is if I do not want use simulateStarCamera how I can use these quaternions in processing? Thank you in advance. With kind regards, |
Beta Was this translation helpful? Give feedback.
-
Hi Parisa, You must create an GROOPS instrument file from your quaternion file (SRF to orbit system). There is no conversion program in GROOPS for your special format. As the orbit system is defined in a little bit different (x: along, z: not exact radial) in SimulateStarCamera you must adjust the source code:
Afterwards you can combine the two rotations with InstrumentStarCameraMultiply. regards |
Beta Was this translation helpful? Give feedback.
-
Hi Torsten, Thanks for your reply. I understood the strategy to apply the rotations from CRF to SRF in my case. I have already managed to get the quaternions (SRF to orbit system) in GROOPS starcamera format. I modified the source code of simulatestarcamera and by checking the program called "Rorary3d", I came up with this question: Should I also changed the following portion of this program? The probelm is when I changed the source code and multiply the two starcamera files with InstrumentStarCameraMultiply/html/InstrumentStarCameraMultiply.html), I got very big numbers of RMS and sigma values in the summery of my processing. Original source code:// Orthonormalize field[0][0] = x.x(); field[0][1] = y.x(); field[0][2] = z.x(); Thanks in advance and I am looking forward to hearing from you. With kind regards, |
Beta Was this translation helpful? Give feedback.
-
Hi Parisa, Rotary3d should not be changed. regards |
Beta Was this translation helpful? Give feedback.
-
Hi Parisa, Rotations are always confusing for me. When you rotate a vector, you multiply the rotation matrix from the left:
This means that the following applies to the entire rotation:
In short, you have to swap the two matrices in InstrumentStarCameraMultiply. Torsten |
Beta Was this translation helpful? Give feedback.
-
See you at EGU? |
Beta Was this translation helpful? Give feedback.
Hi Parisa,
Rotations are always confusing for me. When you rotate a vector, you multiply the rotation matrix from the left:
This means that the following applies to the entire rotation:
In short, you have to swap the two matrices in InstrumentStarCameraMultiply.
Torsten