File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1414#define PACKET_BYTE_LENGTH 251 // in bytes TODO check?/ get from driver mod?
1515
1616const int RADIO_PACKETS_OUT_MAX_LENGTH = 64 ;
17- const int TAKE_PHOTO_QUEUE_CAPACITY = 32 ;
18- const int DOWNLOAD_PHOTO_QUEUE_CAPACITY = 32 ;
19- const int TAKE_AND_SEND_QUEUE_CAPACITY = 32 ;
17+ const int PAYLOAD_DATA_CAPACITY = 32 ;
2018
2119/// @brief Initialize the command switch task
2220/// @param slate Slate
@@ -27,12 +25,8 @@ void command_task_init(slate_t *slate)
2725 RADIO_PACKETS_OUT_MAX_LENGTH );
2826
2927 // Initialize queues for storing processed commands
30- queue_init (& slate -> take_photo_task_data , sizeof (PAYLOAD_COMMAND_DATA ),
31- TAKE_PHOTO_QUEUE_CAPACITY );
32- queue_init (& slate -> download_photo_task_data , sizeof (PAYLOAD_COMMAND_DATA ),
33- DOWNLOAD_PHOTO_QUEUE_CAPACITY );
34- queue_init (& slate -> take_and_send_photo_task_data ,
35- sizeof (PAYLOAD_COMMAND_DATA ), TAKE_AND_SEND_QUEUE_CAPACITY );
28+ queue_init (& slate -> payload_command_data , sizeof (PAYLOAD_COMMAND_DATA ),
29+ PAYLOAD_DATA_CAPACITY );
3630
3731 slate -> num_uploaded_bytes = 0 ;
3832 slate -> packet_buffer_index = 0 ;
You can’t perform that action at this time.
0 commit comments