mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-12 02:48:28 -04:00
AP_Vehicle: #ifdef scripting specific functions
This commit is contained in:
parent
c1e4ed6512
commit
4cf67b2888
@ -178,6 +178,7 @@ public:
|
|||||||
// returns true if the vehicle has crashed
|
// returns true if the vehicle has crashed
|
||||||
virtual bool is_crashed() const;
|
virtual bool is_crashed() const;
|
||||||
|
|
||||||
|
#ifdef ENABLE_SCRIPTING
|
||||||
/*
|
/*
|
||||||
methods to control vehicle for use by 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)
|
// 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; }
|
virtual bool set_steering_and_throttle(float steering, float throttle) { return false; }
|
||||||
|
#endif // ENABLE_SCRIPTING
|
||||||
|
|
||||||
|
|
||||||
// control outputs enumeration
|
// control outputs enumeration
|
||||||
enum class ControlOutput {
|
enum class ControlOutput {
|
||||||
|
Loading…
Reference in New Issue
Block a user