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
+3 -3
View File
@@ -36,14 +36,14 @@ void MotorControl::init(uint8_t pwm_pin, uint8_t pwm_channel, uint8_t dir_1, uin
uint16_t MotorControl::loop() {
uint32_t time = millis();
uint16_t elapsed_time = time - this->last_millis;
uint16_t elapsed_time = time - this->lastMillis;
//Cancel if delay is not reached
if (elapsed_time < delay)
return elapsed_time;
runMotorControl();
this->last_millis = time;
this->lastMillis = time;
return elapsed_time;
}
@@ -199,4 +199,4 @@ void MotorControl::increasePower(int8_t power) {
}
this->setRealPower(this->power + power);
}
}