bluerobotics / cockpit

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

frontend: battery-indicator: total consumed Wh are inaccurate #1385

Open ES-Alexander opened 1 day ago

ES-Alexander commented 1 day ago

Current behaviour

It's hard enough to get accurate energy consumption estimates from the autopilot / battery monitor (when it's trying to calculate them) - doing our own calculations just from the telemetry (per #1370) seems more problematic than helpful.

@vshie has mentioned the calculated values do not seem to make sense.

Expected or desired behaviour

Cockpit should only display energy consumption values provided from an external source (e.g. via MAVLink). If no such value is provided then the energy usage should be either be specified as unknown (e.g. -- or ?), or unspecified (e.g. when configured to toggle between voltage+current and power+consumption, just toggle between the current and power and keep the voltage at the top).

Prerequisites

rafaellehmkuhl commented 1 day ago

Yeah... it makes sense. We are integrating very spaced values over long periods of times. I liked the idea of toggling between current and power. Will do it.