ntrip, testMode, zed9 gnss modul
This commit is contained in:
@@ -25,11 +25,11 @@ void Autopilot::loop() {
|
||||
if (!this->selfDriving && this->navigationStarted)
|
||||
ManualControl::loop();
|
||||
|
||||
if (millis() - this->last_millis < delay)
|
||||
if (millis() - this->lastMillis < delay)
|
||||
return;
|
||||
|
||||
this->runAutopilot();
|
||||
this->last_millis = millis();
|
||||
this->lastMillis = millis();
|
||||
}
|
||||
|
||||
void Autopilot::runAutopilot() {
|
||||
@@ -76,7 +76,7 @@ void Autopilot::setSelfDriving(bool val) {
|
||||
|
||||
this->selfDriving = val;
|
||||
this->moveControl->setSpeed(0);
|
||||
this->moveControl->setRotationspeed(0);
|
||||
this->moveControl->setRotationSpeed(0);
|
||||
}
|
||||
|
||||
void Autopilot::setSpeedInRelToDistance(double distance) {
|
||||
@@ -97,7 +97,7 @@ void Autopilot::setRotInRelToDistance(int16_t course) {
|
||||
steps = 1;
|
||||
|
||||
if (course == 0)
|
||||
this->moveControl->setRotationspeed(0);
|
||||
this->moveControl->setRotationSpeed(0);
|
||||
else
|
||||
this->moveControl->setRotationspeed(steps);
|
||||
this->moveControl->setRotationSpeed(steps);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user