Rover: #ifdef scripting specific functions

This commit is contained in:
Iampete1 2021-07-18 18:36:47 +01:00 committed by Andrew Tridgell
parent a04e2575b6
commit 36f23fd498
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)
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;
}
#endif // ENABLE_SCRIPTING
#if STATS_ENABLED == ENABLED
/*

View File

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