mirror of https://github.com/ArduPilot/ardupilot
AP_Vehicle: #ifdef scripting specific functions
This commit is contained in:
parent
a1e96f7d17
commit
9bf151fcd7
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue