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
@@ -17,16 +17,16 @@ ManualControl::ManualControl(MoveControl *moveControl) {
ManualControl::~ManualControl() {
this->moveControl->setSpeed(0);
this->moveControl->setRotationspeed(0);
this->moveControl->setRotationSpeed(0);
this->moveControl->setDrivingStatus(DrivingStatus::stop);
}
void ManualControl::loop() {
if (millis() - this->last_millis < delay) {
if (millis() - this->lastMillis < delay) {
return;
}
this->runManualControl();
this->last_millis = millis();
this->lastMillis = millis();
}
void ManualControl::runManualControl() {
@@ -37,5 +37,5 @@ void ManualControl::runManualControl() {
this->moveControl->setSpeed((y * -1) * value_per_step);
value_per_step = this->max_rotation * 2 / 256;
this->moveControl->setRotationspeed(-x * value_per_step);
}
this->moveControl->setRotationSpeed(-x * value_per_step);
}