Minor fixes, outside of project

This commit is contained in:
Aadi Desai 2021-06-17 10:56:44 +01:00 committed by GitHub
parent 046f28a3c2
commit f11d869a4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,7 +1,6 @@
#pragma region Includes
#include <Arduino.h>
#include <string>
#include <SoftwareSerial.h> // Software Serial not currently needed
#include <SoftwareSerial.h>
#include <AsyncTCP.h>
#include <ESPAsyncWebServer.h>
@ -174,6 +173,7 @@ void loop()
DynamicJsonDocument tdoc(128);
tdoc["rstD"] = 1;
serializeJson(tdoc, Serial1); // Send reset odometer signal to Drive
lastCompletedCommand = instr->id; // Set LCCid on telemetry reset as Rover state is not changed
}
break;
case INSTR_STOP: // Emergency stop
@ -504,6 +504,7 @@ void updateRSSI()
void emergencyStop()
{
lastCompletedCommand = 0;
DynamicJsonDocument tdoc(1024);
tdoc["stp"] = 1;
serializeJson(tdoc, Serial1); // Send stop signals to Drive