Closed tomyyyD closed 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.
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.
closes #368
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.
closes #392
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.