AP_Vehicle: fix compile when AP_EXTERNAL_CONTROL_ENABLED disabled

This commit is contained in:
Pierre Kancir 2024-07-31 13:15:02 +02:00 committed by Peter Barker
parent 8f8e796e00
commit d9eabcf411

View File

@ -169,10 +169,10 @@ public:
// 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