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

Image Task #383

Closed tomyyyD closed 1 year ago

tomyyyD commented 1 year ago

Image task runs every 5 seconds. If 60 seconds have elapsed since the camera was last turned on, it will turn on the camera and initiate getting an image. If the camera is on but hasn't been contacted, the task will check for a byte that the camera will send when it starts up to confirm the connection. If the camera is on and has been contacted, it will take an image, store the image on its SD card and send that image over in 500B packets to the mainboard. Each time the task runs, it will spend a maximum of 2 seconds sending as many packets as it can. When the image is finished the camera will be turned off.

tomyyyD commented 1 year ago

the Image queue will be used for sending images over RF, I know it seems useless in the context of just this code.

tomyyyD commented 1 year ago

camera_code.py is the code for the camera board, it will not go on the main board so it will not be imported anywhere in flight software, but I wanted to include it in the repository.

tomyyyD commented 1 year ago

closes #368

tomyyyD commented 1 year ago

If anyone has thoughts on a better way for the camera driver's get_packet() function to return the status of the packet, let me know I'm open to ideas.

tomyyyD commented 1 year ago

closes #392