calc Azimuth finished

This commit is contained in:
2023-08-09 15:34:03 +02:00
parent cf111426bd
commit 98f3cb93f0
6 changed files with 7 additions and 13 deletions
+1 -1
View File
@@ -29,8 +29,8 @@ void DirectionChangeSignal::action() {
Autopilot::Autopilot(MoveControl* moveControl, const ControlPadInput *input, Navigation* navigation)
: ManualControl(moveControl, input) {
this->setInputMode(ManualControl::InputMode::Digital);
this->setDirectionChangeCallback(this->directionChangeSignal);
this->directionChangeSignal = new DirectionChangeSignal(navigation);
this->setDirectionChangeCallback(this->directionChangeSignal);
this->navigation = navigation;
this->init();
}
+1 -9
View File
@@ -76,15 +76,6 @@ class Autopilot : public ManualControl {
*/
void loop();
/**
* @brief Manges the autopilot
*
* If the first Point is near to current location you can turn
* the autopilot on.
* Gets the course correction and decide what to do.
*/
void runAutopilot();
void restart();
/**
@@ -120,6 +111,7 @@ class Autopilot : public ManualControl {
void init();
void drive();
void rotate();
void runAutopilot();
void checkButtonInput();
void askNavigationForOrder();
void selfDriving();