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

MAVExplorer: allow arbitrary expressions to be plotted on the map #1416

Merged
merged 1 commit into from
Jul 4, 2024

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
2 checks passed
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