new message

This commit is contained in:
ackimixs
2025-12-20 13:07:16 +01:00
parent af2908afc9
commit e3286edaa4
2 changed files with 5 additions and 5 deletions

View File

@@ -151,7 +151,7 @@ void DiffBot::update(float dt) {
motor.stop(true);
char log[32];
sprintf(log, "SET;WAYPOINT;%d\n", index);
sprintf(log, "SET;WAYPOINT;REACH;%d\n", index);
CDC_Transmit_FS((uint8_t*)log, strlen(log));
resetPID();
@@ -165,7 +165,7 @@ void DiffBot::update(float dt) {
if (std::fabs(dx) < precisePos && std::fabs(dy) < precisePos) {
char log[32];
sprintf(log, "SET;WAYPOINT;%d\n", index);
sprintf(log, "SET;WAYPOINT;REACH;%d\n", index);
CDC_Transmit_FS((uint8_t*)log, strlen(log));
targets[index].active = false;