Skip to content

Commit

Permalink
AP_Vehcile: fix compile when AP_EXTERNAL_CONTROL_ENABLED disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
khancyr committed Jul 31, 2024
1 parent a63b7c7 commit e1f7af2
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 @@ -169,10 +169,10 @@ class AP_Vehicle : public AP_HAL::HAL::Callbacks {
// returns true if the vehicle has crashed
virtual bool is_crashed() const;

#if AP_EXTERNAL_CONTROL_ENABLED
#if AP_SCRIPTING_ENABLED || AP_EXTERNAL_CONTROL_ENABLED
// Method to control vehicle position for use by external control
virtual bool set_target_location(const Location& target_loc) { return false; }
#endif // AP_EXTERNAL_CONTROL_ENABLED
#endif // AP_SCRIPTING_ENABLED || AP_EXTERNAL_CONTROL_ENABLED
#if AP_SCRIPTING_ENABLED
/*
methods to control vehicle for use by scripting
Expand Down

0 comments on commit e1f7af2

Please sign in to comment.