mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 22:58:32 -04:00
AP_Vehicle: treat goal publisher relying on get_target_location as external control
Signed-off-by: Ryan Friedman <25047695+Ryanf55@users.noreply.github.com>
This commit is contained in:
parent
4088ab91c6
commit
ceb75dce6b
@ -176,6 +176,8 @@ public:
|
||||
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
|
||||
/*
|
||||
@ -195,8 +197,6 @@ public:
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user