mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-03-03 04:03:59 -04:00
Rover: disable switching and arming in INITIALIZING mode
This commit is contained in:
parent
d47afb2406
commit
a62dc3b3e0
@ -638,9 +638,14 @@ public:
|
|||||||
// methods that affect movement of the vehicle in this mode
|
// methods that affect movement of the vehicle in this mode
|
||||||
void update() override { }
|
void update() override { }
|
||||||
|
|
||||||
|
// do not allow arming from this mode
|
||||||
|
bool allows_arming() const override { return false; }
|
||||||
|
|
||||||
// attributes for mavlink system status reporting
|
// attributes for mavlink system status reporting
|
||||||
bool has_manual_input() const override { return true; }
|
bool has_manual_input() const override { return true; }
|
||||||
bool attitude_stabilized() const override { return false; }
|
bool attitude_stabilized() const override { return false; }
|
||||||
|
protected:
|
||||||
|
bool _enter() override { return false; };
|
||||||
};
|
};
|
||||||
|
|
||||||
class ModeFollow : public Mode
|
class ModeFollow : public Mode
|
||||||
|
Loading…
Reference in New Issue
Block a user