Skip to content

Commit

Permalink
Copter: allow tradheli inverted flight in althold and auto modes
Browse files Browse the repository at this point in the history
  • Loading branch information
bnsgeyer committed Mar 7, 2024
1 parent 1c316e4 commit e09015e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ArduCopter/mode.h
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,9 @@ class ModeAltHold : public Mode {
}
bool allows_autotune() const override { return true; }
bool allows_flip() const override { return true; }

#if FRAME_CONFIG == HELI_FRAME
bool allows_inverted() const override { return true; };
#endif
protected:

const char *name() const override { return "ALT_HOLD"; }
Expand Down Expand Up @@ -493,6 +495,9 @@ class ModeAuto : public Mode {
bool allows_arming(AP_Arming::Method method) const override;
bool is_autopilot() const override { return true; }
bool in_guided_mode() const override { return _mode == SubMode::NAVGUIDED || _mode == SubMode::NAV_SCRIPT_TIME; }
#if FRAME_CONFIG == HELI_FRAME
bool allows_inverted() const override { return true; };
#endif

// Auto modes
enum class SubMode : uint8_t {
Expand Down

0 comments on commit e09015e

Please sign in to comment.