bluerobotics / cockpit

An intuitive and customizable cross-platform ground control station for remote vehicles of all types.
https://blueos.cloud/cockpit/docs
Other
72 stars 22 forks source link

mini-widget: display a location #1340

Open ES-Alexander opened 2 months ago

ES-Alexander commented 2 months ago

Problem to solve

Sometimes it's useful to track/record the numerical values of a location, rather than just visualising its position on a map, and sometimes locations are not geo-referenced. Currently this is awkward to do, because it requires multiple separate mini-widgets and the data may not be in the desired display format (e.g. see #1326).

Desired approach

A mini-widget with support for

  1. any valid sources of location data
    • MAVLink / NMEA / etc
    • vehicle location, control station location, etc
  2. common display formats
    • latitude, longitude
    • UTM
    • local x, y [,z] (probably with support for metric vs imperial)
  3. position validity/accuracy
    • colour or opacity could potentially be used to indicate when a position estimate is uncertain, or older than a threshold time

Additional context

Prerequisites

patrickelectric commented 2 months ago

I would add GPS position estimation as well, like BlueOS GPS widget.

vshie commented 2 months ago

Having a button to mark/save a given position, give it a label, could be super handy for both ROV and Boat...

ES-Alexander commented 2 months ago

@vshie this issue is focused around a display widget - adding a button for location tagging/annotation/logging functionality seems more relevant to #84 / #594, although you could also suggest it as its own widget :-)

vshie commented 2 months ago

Ah, good point, my apologies!

ES-Alexander commented 2 months ago

No worries - just don't want your good idea to get lost in the weeds! :-)