Hexapod/include/Vbat.h
2020-04-05 17:42:08 +02:00

17 lines
336 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;
};