Skip to content

Conversation

@tridge
Copy link
Contributor

@tridge tridge commented Jul 4, 2024

this allows mavextra to construct new mappable objects with Lat and Lng fields, allowing for derived positions from logs

this also generalises and simplifies the handling of instances

for example:
image

this uses the following mavextra function:

def pos_offset(GPS,offs_N,offs_E):
    latlon = mp_util.gps_offset(GPS.Lat,GPS.Lng, offs_E, offs_N)
    return PosObj(latlon[0],latlon[1],GPS.Alt)

this allows mavextra to construct new mappable objects with Lat and
Lng fields, allowing for derived positions from logs

this also generalises and simplifies the handling of instances
Copy link
Contributor

@peterbarker peterbarker left a comment

Choose a reason for hiding this comment

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

LGTM

@tridge tridge merged commit 0658dae into ArduPilot:master Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants