ntrip, testMode, zed9 gnss modul
This commit is contained in:
+4
-4
@@ -62,12 +62,12 @@ void MoveControl::loop() {
|
||||
std::cout << buf;
|
||||
}
|
||||
|
||||
static uint64_t last_millis = 0;
|
||||
if (millis() - last_millis < delay)
|
||||
static uint64_t lastMillis = 0;
|
||||
if (millis() - lastMillis < delay)
|
||||
return;
|
||||
|
||||
this->runMoveControl();
|
||||
last_millis = millis();
|
||||
lastMillis = millis();
|
||||
}
|
||||
|
||||
void MoveControl::runMoveControl() {
|
||||
@@ -104,7 +104,7 @@ void MoveControl::setSpeed(double speed) {
|
||||
this->x_speed = speed;
|
||||
}
|
||||
|
||||
void MoveControl::setRotationspeed(double speed) {
|
||||
void MoveControl::setRotationSpeed(double speed) {
|
||||
if (speed < 0.7 && speed > -0.7)
|
||||
this->rotation_speed = 0;
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user