Thunderbots Project
Loading...
Searching...
No Matches
power_monitor.h
1#pragma once
2
3#include <LTC4151_platformio.h>
4
5#include <memory>
6
7#include "pins.h"
8
13{
14 public:
24 float getBatteryVoltage();
30 float getCurrentDrawAmp();
31
32 private:
33 static constexpr double RESISTANCE_OHMS = 0.002;
34 std::shared_ptr<LTC4151> monitor;
35};
Definition power_monitor.h:13
float getCurrentDrawAmp()
Definition power_monitor.cpp:19
float getBatteryVoltage()
Definition power_monitor.cpp:14
PowerMonitor()
Definition power_monitor.cpp:5