added duplicate console to mqtt
This commit is contained in:
+4
-2
@@ -47,7 +47,9 @@ void MoveControl::loop() {
|
||||
|| right_motor_time > 50
|
||||
|| left_speed_time > 50
|
||||
|| right_speed_time > 50) {
|
||||
Serial.printf("left M: %d, right M %d, left S %d, right S %d in moveControl::loop\n", left_motor_time, right_motor_time, left_speed_time, right_speed_time);
|
||||
char buf[128];
|
||||
sprintf(buf, "left M: %d, right M %d, left S %d, right S %d in moveControl::loop\n", left_motor_time, right_motor_time, left_speed_time, right_speed_time);
|
||||
std::cout << buf;
|
||||
}
|
||||
|
||||
static uint64_t last_millis = 0;
|
||||
@@ -162,4 +164,4 @@ void MoveControl::regulateMotors() {
|
||||
void MoveControl::updateCurrentWheelSpeed() {
|
||||
this->wheelspeed_left = this->left_speedometer->getSpeed();
|
||||
this->wheelspeed_right = this->right_speedometer->getSpeed();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user