Browse Source

Rover: disable switching and arming in INITIALIZING mode

zr-v5.1
Pierre Kancir 4 years ago committed by Randy Mackay
parent
commit
a62dc3b3e0
  1. 5
      Rover/mode.h

5
Rover/mode.h

@ -638,9 +638,14 @@ public: @@ -638,9 +638,14 @@ public:
// methods that affect movement of the vehicle in this mode
void update() override { }
// do not allow arming from this mode
bool allows_arming() const override { return false; }
// attributes for mavlink system status reporting
bool has_manual_input() const override { return true; }
bool attitude_stabilized() const override { return false; }
protected:
bool _enter() override { return false; };
};
class ModeFollow : public Mode

Loading…
Cancel
Save