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

Add support for OSD map mode #3178

Merged
merged 3 commits into from May 9, 2018

Conversation

Projects
None yet
3 participants
@fiam
Copy link
Member

commented May 7, 2018

Draws the home centered, while the craft moves around. There are
2 available maps: one with the North pointing up and another one
with the takeoff direction pointing up.

Maps support arbitrary elements over them, as long as it doesn't
overlap the home at the center nor the direction indicator at the
top right nor the scale indicator at the bottom left (all of them
are fixed size). This allows users to customize how their maps
look with additional info that they might find useful (e.g. altitude
or distance to home).

Configurator PR at iNavFlight/inav-configurator#432

@fiam fiam added this to the 2.0 milestone May 7, 2018

@fiam fiam added the In progress label May 7, 2018

@gmacfpv

This comment has been minimized.

Copy link

commented May 7, 2018

This is looking good, however having the aircraft as the fixed position I feel works so much better. Can you set it so that it is centred on aircraft and the home position moves in relation to the aircraft?

@fiam

This comment has been minimized.

Copy link
Member Author

commented May 7, 2018

@gmacfpv that will be radar mode. It will follow shortly after this one is merged.

@fiam

This comment has been minimized.

Copy link
Member Author

commented May 7, 2018

Missing part in this one (which I'm not sure if we should fix in this PR or in another one) is saving the actual take off direction on FW without a compass, since it's incorrect right now.

fiam added some commits May 7, 2018

Add displayReadCharWithAttr()
Allows reading back a character from the display if the driver
supports it. For now, only the MAX7456 supports it.
Add navigationGetHomeHeading()
Returns the heading for the home point, as recorded when home was
stored. Note that it won't work properly on FW without a mag yet,
since we'll need to adjust the value after we acquire a valid
heading.
Add support for OSD map mode
Draws the home centered, while the craft moves around. There are
2 available maps: one with the North pointing up and another one
with the takeoff direction pointing up.
Maps support arbitrary elements over them, as long as it doesn't
overlap the home at the center nor the direction indicator at the
top right nor the scale indicator at the bottom left (all of them
are fixed size). This allows users to customize how their maps
look with additional info that they might find useful (e.g. altitude
or distance to home).

@fiam fiam force-pushed the agh_osd_map branch from a033a6a to b9d710a May 8, 2018

@fiam fiam removed the In progress label May 8, 2018

@fiam

This comment has been minimized.

Copy link
Member Author

commented May 8, 2018

Rebased, should be ready to merge.

@digitalentity digitalentity merged commit 8a84949 into development May 9, 2018

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

@digitalentity digitalentity deleted the agh_osd_map branch May 9, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.