ping-viewer icon indicating copy to clipboard operation
ping-viewer copied to clipboard

Ping360 head orientation display option

Open ES-Alexander opened this issue 4 years ago • 1 comments

Summary

Would be good to have a 'Perspective View' option to set the roll and pitch angle of a Ping360, and warp the plot display accordingly.

Additional information

  • Could display white/light on the side that's upwards, and black/dark on the side that's downwards
  • Would enable 'birds eye' view of response/distances when viewing the seabed

Perspective View

  • Could also integrate ROV pitch/roll when mavlink connected

Pitch + Roll

@patrickelectric I'm not sure how difficult it would be to develop a feature like this. Presumably the black/white background to indicate down/up would be relatively easy, but not sure about the projective transform/directional shrinking of the polar plot (may not be too bad, depending on how the polar plot is implemented at the moment).

ES-Alexander avatar Aug 12 '21 06:08 ES-Alexander

This can be easily done using the transformation field and adding a new rotation: https://github.com/bluerobotics/ping-viewer/blob/master/qml/Ping360Visualizer.qml#L115

And adding roll and pitch integration here: https://github.com/bluerobotics/ping-viewer/blob/master/src/sensor/ping360.cpp#L661

patrickelectric avatar Aug 12 '21 13:08 patrickelectric