Skip to content

Commit

Permalink
AP_Vehicle: treat goal publisher relying on get_target_location as ex…
Browse files Browse the repository at this point in the history
…ternal control

Signed-off-by: Ryan Friedman <[email protected]>
  • Loading branch information
Ryanf55 authored and peterbarker committed Jan 15, 2025
1 parent 4088ab9 commit ceb75dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/AP_Vehicle/AP_Vehicle.h
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,8 @@ class AP_Vehicle : public AP_HAL::HAL::Callbacks {
virtual bool start_takeoff(const float alt) { return false; }
// Method to control vehicle position for use by external control
virtual bool set_target_location(const Location& target_loc) { return false; }
// Get target location for use by external control
virtual bool get_target_location(Location& target_loc) { return false; }
#endif // AP_SCRIPTING_ENABLED || AP_EXTERNAL_CONTROL_ENABLED
#if AP_SCRIPTING_ENABLED
/*
Expand All @@ -195,8 +197,6 @@ class AP_Vehicle : public AP_HAL::HAL::Callbacks {
virtual void set_rudder_offset(float rudder_pct, bool run_yaw_rate_controller) {}
virtual bool nav_scripting_enable(uint8_t mode) {return false;}

// get target location (for use by scripting)
virtual bool get_target_location(Location& target_loc) { return false; }
virtual bool update_target_location(const Location &old_loc, const Location &new_loc) { return false; }

// circle mode controls (only used by scripting with Copter)
Expand Down

0 comments on commit ceb75dc

Please sign in to comment.