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);
}
@@ -22,7 +22,7 @@
*
* @see MoveControl
*/
class ManualControl : public DriveModi{
class ManualControl : public DriveModi {
public:
ManualControl(MoveControl *moveControl);
@@ -40,7 +40,7 @@ class ManualControl : public DriveModi{
* @see runSpeedometer()
* @see setDelay()
*/
void loop();
void loop() override;
/**
* @brief Noramly called repeatedly by loop() to calcluate new values.
@@ -73,7 +73,7 @@ class ManualControl : public DriveModi{
MoveControl *moveControl;
private:
uint32_t last_millis = 0;
uint32_t lastMillis = 0;
uint8_t delay = 10;
double max_speed = 1;
double max_rotation = 7;