From 1d297354295b2439d9105669839b691fea318774 Mon Sep 17 00:00:00 2001 From: Aadi Desai <21363892+supleed2@users.noreply.github.com> Date: Sat, 12 Jun 2021 15:15:37 +0100 Subject: [PATCH] Update Command<->Control reference doc --- Control/ref/command.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Control/ref/command.cpp b/Control/ref/command.cpp index 16761f0..6ece01e 100644 --- a/Control/ref/command.cpp +++ b/Control/ref/command.cpp @@ -3,7 +3,7 @@ #include #define WebSocket 0 -int batteryVoltage, totalTripDistance, currentHeading, current_x, current_y, signal_strength, lastCompletedCommand_id; // Info Command ==> Control +int batteryVoltage, batteryLevel, totalTripDistance, currentHeading, current_x, current_y, signal_strength, lastCompletedCommand_id; // Info Command ==> Control int command_id, mode, reqHeading, reqDistance, reqSpeed, reqCharge; // Info Control ==> Command void setup() {} @@ -13,6 +13,7 @@ void loop() DynamicJsonDocument rdoc(1024); // receive doc, not sure how big this needs to be deserializeJson(rdoc, WebSocket); // Take JSON input from WebSocket batteryVoltage = rdoc["bV"]; + batteryLevel = rdoc["bL"]; totalTripDistance = rdoc["tD"]; currentHeading = rdoc["cH"]; current_x = rdoc["pos"][0];