From 1e87e9b0f423fd2d904fb94298a9959be2734912 Mon Sep 17 00:00:00 2001 From: Aadi Desai <21363892+supleed2@users.noreply.github.com> Date: Sat, 12 Jun 2021 23:04:01 +0100 Subject: [PATCH] Fix incorrect variable types reqSpeed is between 0 & 1, batteryVoltage has decimal places, both should be float not int --- Control/ref/command.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Control/ref/command.cpp b/Control/ref/command.cpp index ec029d9..0a65d23 100644 --- a/Control/ref/command.cpp +++ b/Control/ref/command.cpp @@ -3,8 +3,10 @@ #include #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() {}