Skip to content

Commit

Permalink
Copter: correct comment about scope of is_landing and is_taking_off
Browse files Browse the repository at this point in the history
  • Loading branch information
muramura authored and peterbarker committed Jul 24, 2024
1 parent 07b6c57 commit f9bc247
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ArduCopter/Copter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -474,13 +474,13 @@ bool Copter::update_target_location(const Location &old_loc, const Location &new

#endif // AP_SCRIPTING_ENABLED

// returns true if vehicle is landing. Only used by Lua scripts
// returns true if vehicle is landing.
bool Copter::is_landing() const
{
return flightmode->is_landing();
}

// returns true if vehicle is taking off. Only used by Lua scripts
// returns true if vehicle is taking off.
bool Copter::is_taking_off() const
{
return flightmode->is_taking_off();
Expand Down

0 comments on commit f9bc247

Please sign in to comment.