mirror of https://github.com/ArduPilot/ardupilot
Plane: #ifdef scripting specific functions
This commit is contained in:
parent
93e8d8504d
commit
267e001212
|
@ -651,7 +651,7 @@ bool Plane::get_wp_crosstrack_error_m(float &xtrack_error) const
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef ENABLE_SCRIPTING
|
||||||
// set target location (for use by scripting)
|
// set target location (for use by scripting)
|
||||||
bool Plane::set_target_location(const Location& target_loc)
|
bool Plane::set_target_location(const Location& target_loc)
|
||||||
{
|
{
|
||||||
|
@ -689,5 +689,6 @@ bool Plane::get_target_location(Location& target_loc)
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
#endif // ENABLE_SCRIPTING
|
||||||
|
|
||||||
AP_HAL_MAIN_CALLBACKS(&plane);
|
AP_HAL_MAIN_CALLBACKS(&plane);
|
||||||
|
|
|
@ -1141,8 +1141,11 @@ private:
|
||||||
|
|
||||||
public:
|
public:
|
||||||
void failsafe_check(void);
|
void failsafe_check(void);
|
||||||
|
#ifdef ENABLE_SCRIPTING
|
||||||
bool set_target_location(const Location& target_loc) override;
|
bool set_target_location(const Location& target_loc) override;
|
||||||
bool get_target_location(Location& target_loc) override;
|
bool get_target_location(Location& target_loc) override;
|
||||||
|
#endif // ENABLE_SCRIPTING
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
extern Plane plane;
|
extern Plane plane;
|
||||||
|
|
Loading…
Reference in New Issue