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

Course and heading #16

Open
fvantienen opened this issue Sep 14, 2023 · 4 comments
Open

Course and heading #16

fvantienen opened this issue Sep 14, 2023 · 4 comments

Comments

@fvantienen
Copy link
Member

It would be nice if we could display both the course and heading of the UAV's and the GCS on the map. Maybe we can add a tiny arrow pointing at the course?
Currently we only display heading, but the course can show the crap angle

@Fabien-B
Copy link
Collaborator

Fabien-B commented Sep 14, 2023

Until now we were relying on the position history, but its true that its not very accurate, in particular when the position update rate is low.
That could probably be added in the GraphicsAircrafts paint method.
See https://github.com/paparazzi/PprzGCS/blob/master/src/widgets/map/graphics_objects/graphics_aircraft.cpp#L23-L28
and: https://github.com/paparazzi/PprzGCS/blob/master/src/widgets/map/graphics_objects/graphics_intruder.cpp#L24-L27
The AircraftItem is currently rotated by heading, so the course arrow should probably be inclined by route-heading to be coherent.
: https://github.com/paparazzi/PprzGCS/blob/master/src/widgets/map/map_items/aircraft_item.cpp#L55

@fvantienen
Copy link
Member Author

Quick question how does the ground GPS gets drawn in the GCS? Since for example ublox2ivy sends a FLIGHT_PARAM message with id 0, but I can only find MapWidget::updateAircraftItem listening for that and ignoring it if there is no aircraft. But if I'm correct it is the symbol of the intruder? So how does this all work?

@noether
Copy link
Member

noether commented Sep 15, 2023

Indeed, if the compass option (or any other flag) is activated, it makes sense and is a good idea. Otherwise, I do not think so.

It is in the Python App to display the GVF.

image

@Fabien-B
Copy link
Collaborator

Hi,
The GCS position is draw in MapWidget::onGCSPos, which is called from a direct binding to the FLIGHT_PARAM message.
I am not very happy about the code architecture of the map, I may change it in the future in a V2, but it will take a long time.

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

No branches or pull requests

3 participants