BenDB3199 / Attitude_from_quaternions

The code takes in quaternions and a timestamp along with TLE data from the OPS-SAT and outputs satellite attitude information like roll, pitch, yaw and angle to nadir.
0 stars 0 forks source link

Support switching between ground and onboard TLE file #10

Open georgeslabreche opened 3 years ago

georgeslabreche commented 3 years ago

The spacecraft won't be able to make this request: https://github.com/BenDB3199/Attitude_from_quaterions/blob/2652221e4459defa3480e511e178650a9bcacc3f/interpret_TM_short.py#L17

The path of the tle file onboard the spacecraft is /etc/tle: https://github.com/georgeslabreche/opssat-smartcam

Keep in mind that is this code is to be used both on the ground and on the spacecraft then you need a quick and easy why to toggle between tle paths. For instance, you could externalize the TLE path string into a config.ini file instead of hardcoding.

BenDB3199 commented 3 years ago

Created a tle file at /etc. Created a config.ini file with the contents: [conf] tle_path = /etc/tle

georgeslabreche commented 3 years ago

@BenDB3199 @TanguySoto I believe we can move this Issue to Done?

BenDB3199 commented 3 years ago

Currently, the code uses an example TLE and an example quaternion file, for testing purposes. For the TLE we know the location of the actual TLE file on the satellite but we still need the location of the quaternion. @georgeslabreche Do you know where the current quaternions are saved on the satellite?