Download presentation
Presentation is loading. Please wait.
1
“COMMAND PARSE” - A STATUS REPORT-
2
FUNCTIONS Command Executor
A task that Extracts command id from the received packet and runs a switch on “command id” call functions that handle the commands. Command Scheduler A task that Schedules the different incoming commands , that is decides the order in which they will be executed
3
PROPOSED FLOW DIAGRAM
4
Current Functionality
Receives Command. Extracts command ID. Gives error if invalid command ID. If valid command sends acknowledgement. Runs the switch on command ID ,and calls relevant functions. To be added Command scheduling Real time clock get_time() , set_time() Acknowledgement control Get_commandcount()
5
LIBRARIES INCLUDED “salvo.h” "typedefs.h" "kysat_com_lib.h"
"command_executor.h" "audio.h" "debug.h" FUNCTIONS GET_CMD_RX(unsigned char *cmd, unsigned char *data, unsigned char *num_bytes); play_audio(unsigned long filename); send_tx_raw(unsigned char cmd, unsigned char *data, unsigned char num_bytes); send_bcn_cmd( unsigned char cmd, unsigned char *data, unsigned char num_bytes ); send_tlm_cmd( unsigned char cmd, unsigned char *data, unsigned char num_bytes );
7
Commands implemented COMMAND ID COMMAND NAME ARGUMENTS FUNTIONS A
BEACON Time period changes the period of periodic beacon packet to the period given in the argument B TELEMETRY_REQUEST Telemetry Supplies the telemetry packet containing the required telemetry information H PLAY_AUDIO Signal to the audio The audio file is played J ACKNOWLEDGEMENT CONTROL ----- ------ K REAL TIME
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.