14 #include "../../include/kobuki_driver/modules/battery.hpp"
40 voltage(static_cast<double>(new_voltage)/10.0)
44 charging_state = Charging;
46 charging_state = Charged;
49 charging_state = Discharging;
52 if (charging_state == Discharging) {
53 charging_source = None;
55 charging_source = Adapter;
57 charging_source = Dock;
71 return std::max(std::min(
percent, 100.0
f), 0.0
f);