Skip to content

AP_Common: Location: allow retrieval of Vector3p from vector-from-origin #27256

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

Merged

Conversation

peterbarker
Copy link
Contributor

Extracted from #27250

This allows a vehicle using double-precision position offsets to get that increased precision object from a Location.

I've used a template here as the maths is identical, just the types different. Since we don't instantiate the second type at the moment there's no flash cost.

This is also built on top of #27253 which fixes the methods up a bit.

Board                    AP_Periph  blimp  bootloader  copter  heli  iofirmware  plane  rover  sub
CubeOrange-periph-heavy  *                                                                     
Durandal                            0      *           0       0                 0      0      0
Hitec-Airspeed           *                                                                     
KakuteH7-bdshot                     0      *           0       0                 0      0      0
MatekF405                           0      *           0       0                 0      0      0
Pixhawk1-1M-bdshot                  0                  0       0                 0      0      0
f103-QiotekPeriph        *                                                                     
f303-Universal           *                                                                     
iomcu                                                                *                         
revo-mini                           0      *           0       0                 0      0      0
skyviper-v2450                                         0                                       

This work sponsored by Freespace Operations

Copy link
Member

@IamPete1 IamPete1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

@peterbarker peterbarker force-pushed the pr/location-3p-offset-from-origin branch from 4450731 to 81e78a0 Compare June 11, 2024 04:59
@peterbarker peterbarker merged commit 1d945cc into ArduPilot:master Jun 11, 2024
92 checks passed
@peterbarker peterbarker deleted the pr/location-3p-offset-from-origin branch June 11, 2024 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants