Skip to content

Commit

Permalink
AP_Vehicle: Add a function to retrieve the LANDED_STATE
Browse files Browse the repository at this point in the history
  • Loading branch information
muramura committed Jun 3, 2024
1 parent bff5802 commit 2377f04
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libraries/AP_Vehicle/AP_Vehicle.h
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,8 @@ class AP_Vehicle : public AP_HAL::HAL::Callbacks {
// returns true if vehicle is in the process of taking off
virtual bool is_taking_off() const { return false; }

virtual uint8_t get_landed_state() const { return uint8_t(MAV_LANDED_STATE_UNDEFINED); }

// zeroing the RC outputs can prevent unwanted motor movement:
virtual bool should_zero_rc_outputs_on_reboot() const { return false; }

Expand Down

0 comments on commit 2377f04

Please sign in to comment.