Rover: #ifdef scripting specific functions

This commit is contained in:
Iampete1 2021-07-18 18:36:47 +01:00 committed by Randy Mackay
parent 267e001212
commit 6d55ebe31b
2 changed files with 4 additions and 0 deletions

View File

@ -135,6 +135,7 @@ Rover::Rover(void) :
{ {
} }
#ifdef ENABLE_SCRIPTING
// set target location (for use by scripting) // set target location (for use by scripting)
bool Rover::set_target_location(const Location& target_loc) bool Rover::set_target_location(const Location& target_loc)
{ {
@ -213,6 +214,7 @@ bool Rover::get_control_output(AP_Vehicle::ControlOutput control_output, float &
} }
return false; return false;
} }
#endif // ENABLE_SCRIPTING
#if STATS_ENABLED == ENABLED #if STATS_ENABLED == ENABLED
/* /*

View File

@ -274,10 +274,12 @@ private:
private: private:
// Rover.cpp // Rover.cpp
#ifdef ENABLE_SCRIPTING
bool set_target_location(const Location& target_loc) override; bool set_target_location(const Location& target_loc) override;
bool set_target_velocity_NED(const Vector3f& vel_ned) override; bool set_target_velocity_NED(const Vector3f& vel_ned) override;
bool set_steering_and_throttle(float steering, float throttle) override; bool set_steering_and_throttle(float steering, float throttle) override;
bool get_control_output(AP_Vehicle::ControlOutput control_output, float &control_value) override; bool get_control_output(AP_Vehicle::ControlOutput control_output, float &control_value) override;
#endif // ENABLE_SCRIPTING
void stats_update(); void stats_update();
void ahrs_update(); void ahrs_update();
void gcs_failsafe_check(void); void gcs_failsafe_check(void);