Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP_Scripting: add handle_external_position_estimate binding #27277

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions libraries/AP_Scripting/docs/docs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3251,6 +3251,13 @@ function arming:disarm() end
-- It provides estimates for the vehicles attitude, and position.
ahrs = {}

-- supply an external position estimate to the AHRS (supported by EKF3)
---@param location Location_ud -- estimated location, altitude is ignored
---@param accuracy number -- 1-sigma accuracy in meters
---@param timestamp_ms uint32_t_ud|integer|number -- timestamp of reading in ms since boot
---@return boolean -- true if call was handled successfully
function ahrs:handle_external_position_estimate(location, accuracy, timestamp_ms) end

-- desc
---@return Quaternion_ud|nil
function ahrs:get_quaternion() end
Expand Down
1 change: 1 addition & 0 deletions libraries/AP_Scripting/generator/description/bindings.desc
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ singleton AP_AHRS method set_origin boolean Location
singleton AP_AHRS method initialised boolean
singleton AP_AHRS method get_posvelyaw_source_set uint8_t
singleton AP_AHRS method get_quaternion boolean Quaternion'Null
singleton AP_AHRS method handle_external_position_estimate boolean Location float'skip_check uint32_t'skip_check

include AP_Arming/AP_Arming.h

Expand Down
Loading