You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 18, 2024. It is now read-only.
This interface represents a batteries state of charge, meaning the percentage of charge left before the battery is no longer usable.
The interface could look something like this:
classstate_of_charge {
/** Returns a percentage value. Negative values are possible and these * represent under charge conditions beyond a safe point for a charge * storing device. Above +1.0 (100%) means over charge above a safe * point for a charge storing device.*/
result<float> read() { /* ... */ }
};