mirror of
https://github.com/supleed2/ELEC50003-P1-CW.git
synced 2024-12-22 13:35:49 +00:00
Fix incorrect variable types
reqSpeed is between 0 & 1, batteryVoltage has decimal places, both should be float not int
This commit is contained in:
parent
52e14dfaa8
commit
1e87e9b0f4
|
@ -3,8 +3,10 @@
|
|||
#include <string>
|
||||
|
||||
#define WebSocket 0
|
||||
int state, batteryVoltage, batteryLevel, totalTripDistance, currentHeading, current_x, current_y, signal_strength, lastCompletedCommand_id; // Info Control ==> Command
|
||||
int command_id, mode, reqHeading, reqDistance, reqSpeed, reqCharge; // Info Command ==> Control
|
||||
int state, batteryLevel, totalTripDistance, currentHeading, current_x, current_y, signal_strength, lastCompletedCommand_id; // Info Control ==> Command
|
||||
float batteryVoltage; // Info Control ==> Command
|
||||
int command_id, mode, reqHeading, reqDistance, reqCharge; // Info Command ==> Control
|
||||
float reqSpeed; // Info Command ==> Control
|
||||
|
||||
void setup() {}
|
||||
|
||||
|
|
Loading…
Reference in a new issue