ntrip, testMode, zed9 gnss modul

This commit is contained in:
2022-09-13 20:31:52 +02:00
parent c7cb0d3895
commit af6cb98898
43 changed files with 907 additions and 262 deletions
+5 -5
View File
@@ -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);
}
+1 -1
View File
@@ -127,7 +127,7 @@ class Autopilot : public ManualControl {
bool selfDrivingAvailable = false;
bool updateDisplay = false;
uint16_t last_millis = 0;
uint16_t lastMillis = 0;
uint8_t delay = 40;
};
@@ -47,7 +47,7 @@
/**
* @brief Course correction factor
* This value is used by the setRotInRelToDistance function and is used to calculate
* the value for setRotationspeed.
* the value for setRotationSpeed.
*/
#define COURSE_CORRECTION_FACTOR 30