Skip to content

Commit

Permalink
AP_Scripting: deprecate quaternion earth_to_body
Browse files Browse the repository at this point in the history
  • Loading branch information
robertlong13 committed Oct 15, 2024
1 parent 90ed2b8 commit 437fe03
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libraries/AP_Scripting/docs/docs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,11 @@ function Quaternion_ud:q1(value) end
---@param vec Vector3f_ud
function Quaternion_ud:body_to_earth(vec) end

-- Compatability alias for body_to_earth
---@deprecated renamed to body_to_earth, this alias will be removed in 4.7
---@param vec Vector3f_ud
function Quaternion_ud:earth_to_body(vec) end

-- Returns inverse of quaternion
---@return Quaternion_ud
function Quaternion_ud:inverse() end
Expand Down
3 changes: 3 additions & 0 deletions libraries/AP_Scripting/generator/description/bindings.desc
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,9 @@ userdata Quaternion method get_euler_yaw float
userdata Quaternion method from_euler void float'skip_check float'skip_check float'skip_check
userdata Quaternion method inverse Quaternion
userdata Quaternion method body_to_earth void Vector3f
userdata Quaternion method body_to_earth2 void Vector3f
userdata Quaternion method body_to_earth2 rename earth_to_body
userdata Quaternion method body_to_earth2 deprecate renamed to body_to_earth, this alias will be removed in 4.7
userdata Quaternion method to_axis_angle void Vector3f
userdata Quaternion method from_axis_angle void Vector3f float'skip_check
userdata Quaternion method from_angular_velocity void Vector3f float'skip_check
Expand Down

0 comments on commit 437fe03

Please sign in to comment.