AP_Vehicle: #ifdef scripting specific functions

This commit is contained in:
Iampete1 2021-07-18 18:36:06 +01:00 committed by Randy Mackay
parent a1e96f7d17
commit 9bf151fcd7
1 changed files with 3 additions and 0 deletions

View File

@ -178,6 +178,7 @@ public:
// returns true if the vehicle has crashed
virtual bool is_crashed() const;
#ifdef ENABLE_SCRIPTING
/*
methods to control vehicle for use by scripting
*/
@ -192,6 +193,8 @@ public:
// set steering and throttle (-1 to +1) (for use by scripting with Rover)
virtual bool set_steering_and_throttle(float steering, float throttle) { return false; }
#endif // ENABLE_SCRIPTING
// control outputs enumeration
enum class ControlOutput {