Fix type errors for battery stat reporting

This commit is contained in:
Aadi Desai 2021-06-13 18:26:00 +01:00
parent f3ca90fb2e
commit dc927495ec
2 changed files with 4 additions and 3 deletions

View file

@ -3,8 +3,8 @@
#include <string>
#define WebSocket 0
int state, batteryLevel, totalTripDistance, currentHeading, current_x, current_y, signal_strength, lastCompletedCommand_id; // Info Control ==> Command
float batteryVoltage; // Info Control ==> Command
int state, totalTripDistance, currentHeading, current_x, current_y, signal_strength, lastCompletedCommand_id; // Info Control ==> Command
float batteryVoltage, batteryLevel, batteryCycles; // Info Control ==> Command
int command_id, mode, reqHeading, reqDistance, reqCharge; // Info Command ==> Control
float reqSpeed; // Info Command ==> Control

View file

@ -54,7 +54,8 @@ std::queue<RoverInstruction> InstrQueue;
#pragma region Global variables
ControlStatus_t Status;
float batteryVoltage;
int batteryLevel;
float batteryLevel;
float batteryCycles;
int odometer;
int heading;
int xpos, ypos;