Create new LimControlMessage struct to encapsulate the data in messages received over serial communication
Add new function read_control_message to parse the message into velocity and throttle
Call the above function to parse velocity and throttle and pass them into calculate_frequency
Note: Both stdio_init_all and a while loop to check whether a USB cable is connected were added in order for the serial communication to work properly.
Resolves #24.
Changes
LimControlMessage
struct to encapsulate the data in messages received over serial communicationread_control_message
to parse the message into velocity and throttlecalculate_frequency
Note: Both
stdio_init_all
and a while loop to check whether a USB cable is connected were added in order for the serial communication to work properly.