Skip to content

Commit

Permalink
AP_Vehicle: Bindings for crosstrack in Lua
Browse files Browse the repository at this point in the history
  • Loading branch information
timtuxworth committed Aug 19, 2024
1 parent 78a9566 commit 8effb75
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libraries/AP_Vehicle/AP_Vehicle.h
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,11 @@ class AP_Vehicle : public AP_HAL::HAL::Callbacks {

// allow for landing descent rate to be overridden by a script, may be -ve to climb
virtual bool set_land_descent_rate(float descent_rate) { return false; }


// Allow for scripting to have control over the crosstracking when exiting and resuming missions or guided flight
// It's up to the Lua script to ensure the provided location makes sense
virtual bool set_crosstrack_start(const Location &new_start_location) { return false; }

// control outputs enumeration
enum class ControlOutput {
Roll = 1,
Expand Down

0 comments on commit 8effb75

Please sign in to comment.