mirror of https://github.com/ArduPilot/ardupilot
Rover: #ifdef scripting specific functions
This commit is contained in:
parent
267e001212
commit
6d55ebe31b
|
@ -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
|
||||
/*
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue