ntrip, testMode, zed9 gnss modul
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user