Giter Site home page Giter Site logo

Course and heading about pprzgcs HOT 4 OPEN

fvantienen avatar fvantienen commented on August 10, 2024
Course and heading

from pprzgcs.

Comments (4)

Fabien-B avatar Fabien-B commented on August 10, 2024

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

from pprzgcs.

fvantienen avatar fvantienen commented on August 10, 2024

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?

from pprzgcs.

noether avatar noether commented on August 10, 2024

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

from pprzgcs.

Fabien-B avatar Fabien-B commented on August 10, 2024

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.

from pprzgcs.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.