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

frontend: merge the mission planning and flight views #1426

Open ES-Alexander opened 3 weeks ago

ES-Alexander commented 3 weeks ago

Current behaviour

There's a separate place to go to for mission planning, which is kind of awkward to get to (requires using the sidebar menu), and seems like unnecessary extra steps and confusion for users.

Expected or desired behaviour

The map widget likely already needs capacity for an overlay to show and interact with waypoints (per #1424), rally points, and geofences, and it seems reasonable to reuse that functionality for mission planning. If a user dislikes the clutter of other widgets over/around their mission planning map then they can just create an extra View specifically for mission planning, with only a map widget on it.

The mission planning UI should be shown (expanded) by default when a disarmed vehicle is connected[^1], and should be automatically minimised (in a similar way to the existing sidebar) when a mission gets uploaded / the vehicle gets armed, so it's out of the way unless the user decides they want to adjust the mission while it's underway.

[^1]: We may want to only do this if there's a position estimate detected, at least to start with. Depends whether we can meaningfully support missions that are just based on set speeds and durations.

If no map widget is present on the current View, the mission planning UI should either allow jumping to the View with the largest map widget on it, or should show an error message saying no map widget could be found, and asking the user whether they want to import the default map view.

Prerequisites