PyCubed-Mini / flight_software

Flight Software for the PyCubed-Mini PocketQube platform
https://pocketqube.readthedocs.io/en/latest/
MIT License
3 stars 4 forks source link

Add sun data to telemetry and Updates to Emulator Drivers #331

Closed tomyyyD closed 1 year ago

tomyyyD commented 1 year ago

Telemetry Task is updated to include the sun_vector data. This includes 3 more floats so it increases the size of the beacon packet to 64 Bytes. It also updates the beacon log filename to be consistent with how the debug log filenames are made. This relies on the rtc, so I will need to update this when changes are finalized for the bug where we cannot log without at rtc.

Updates the emulator drivers such that we can use rtc and sun sensors. Just added devices as properties and gave sample values for the lux of each sensor stored in an array([x, y, z]) for positive and negative. These values can be retrieved by using the sun_vector property, which subtracts the negative value from the positive value. For the rtc I use a time struct from the time module to get the current time in place of rtc as there is no rtc component in emulation.