Hexapod/include/Vbat.h
Philip Johansson f6efaf4468 OSC Remote
2020-04-05 17:02:15 +02:00

18 lines
329 B
C++

#pragma once
//! @todo:
//! * Actual reading of battery
//! * Some simple calibration method e.g via terminal
//! * Callback registry for cutoff action
//! @brief Keep track of the battery status
class Vbat {
public:
Vbat();
float getCurrentVoltage() const;
//! @return Charge in %
float getCurrentCharge() const;
};