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

Users should be warned (with voice and/or notifications) when Cockpit is minimized while the vehicle is armed #1377

Open rafaellehmkuhl opened 1 month ago

rafaellehmkuhl commented 1 month ago

This is a dangerous situation, and today we only console.log that.

We should have a voice alert that says something like "You're vehicle is armed and you explicitly minimized Cockpit. Your vehicle is not receiving joystick inputs anymore and can be in danger. Take care." when the window (browser or Electron) is minimized. A desktop notification can also help!

We should also explain to the user that they can alt-tab from the browser/Electron without problems, and the only two things they cannot do is to click the browser/Electron minimize button or change to another tab (when using Cockpit in the browser). This way they can use Cockpit without problems.

Disabling those alerts and notifications should be done on an explicit switch that doesn't follow the general "disable voice alerts" switch, as this is a more critical situation regarding safety.