mirror of
https://github.com/supleed2/ELEC50003-P1-CW.git
synced 2024-11-10 01:35:50 +00:00
Fix type errors for battery stat reporting
This commit is contained in:
parent
f3ca90fb2e
commit
dc927495ec
|
@ -3,8 +3,8 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#define WebSocket 0
|
#define WebSocket 0
|
||||||
int state, batteryLevel, totalTripDistance, currentHeading, current_x, current_y, signal_strength, lastCompletedCommand_id; // Info Control ==> Command
|
int state, totalTripDistance, currentHeading, current_x, current_y, signal_strength, lastCompletedCommand_id; // Info Control ==> Command
|
||||||
float batteryVoltage; // Info Control ==> Command
|
float batteryVoltage, batteryLevel, batteryCycles; // Info Control ==> Command
|
||||||
int command_id, mode, reqHeading, reqDistance, reqCharge; // Info Command ==> Control
|
int command_id, mode, reqHeading, reqDistance, reqCharge; // Info Command ==> Control
|
||||||
float reqSpeed; // Info Command ==> Control
|
float reqSpeed; // Info Command ==> Control
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,8 @@ std::queue<RoverInstruction> InstrQueue;
|
||||||
#pragma region Global variables
|
#pragma region Global variables
|
||||||
ControlStatus_t Status;
|
ControlStatus_t Status;
|
||||||
float batteryVoltage;
|
float batteryVoltage;
|
||||||
int batteryLevel;
|
float batteryLevel;
|
||||||
|
float batteryCycles;
|
||||||
int odometer;
|
int odometer;
|
||||||
int heading;
|
int heading;
|
||||||
int xpos, ypos;
|
int xpos, ypos;
|
||||||
|
|
Loading…
Reference in a new issue