Skip to content

Commit

Permalink
AP_Scripting: add bindings to support Plane scripted follow
Browse files Browse the repository at this point in the history
  • Loading branch information
timtuxworth committed Jun 16, 2024
1 parent 205e824 commit a816957
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
11 changes: 11 additions & 0 deletions libraries/AP_Scripting/docs/docs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2389,6 +2389,17 @@ function vehicle:nav_scripting_enable(param1) end
---@return boolean
function vehicle:set_desired_speed(param1) end

-- Set autopilot desired airspeed (Plane)
---@param airspeed_new number -- new airspeed in m/s
---@return boolean -- true if successful
function vehicle:set_desired_airspeed(airspeed_new) end

-- Set the guided mode radius and direction used for the final loiter at the target (Plane)
---@param radius number
---@param direction_is_ccw boolean
---@return boolean -- true if successful
function vehicle:set_guided_radius_and_direction(radius, direction_is_ccw) end

-- desc
---@param param1 number
---@param param2 number
Expand Down
2 changes: 2 additions & 0 deletions libraries/AP_Scripting/generator/description/bindings.desc
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@ singleton AP_Vehicle method set_target_throttle_rate_rpy void float -100 100 flo
singleton AP_Vehicle method set_rudder_offset void float'skip_check boolean
singleton AP_Vehicle method set_desired_turn_rate_and_speed boolean float'skip_check float'skip_check
singleton AP_Vehicle method set_desired_speed boolean float'skip_check
singleton AP_Vehicle method set_desired_airspeed boolean float'skip_check
singleton AP_Vehicle method set_guided_radius_and_direction boolean float'skip_check boolean
singleton AP_Vehicle method nav_scripting_enable boolean uint8_t'skip_check
singleton AP_Vehicle method set_velocity_match boolean Vector2f
singleton AP_Vehicle method set_land_descent_rate boolean float'skip_check
Expand Down

0 comments on commit a816957

Please sign in to comment.