ArPiRobot-CoreLib C++
C++ library for ArPiRobot robots
|
#include <arpirobot/devices/ina260/INA260PowerSensor.hpp>
Public Member Functions | |
INA260PowerSensor (int bus=-1) | |
INA260PowerSensor (const INA260PowerSensor &other)=delete | |
INA260PowerSensor & | operator= (const INA260PowerSensor &other)=delete |
double | getCurrent () |
double | getVolgate () |
double | getPower () |
![]() | |
virtual std::string | getDeviceName () |
bool | isLockedByAction (std::shared_ptr< Action > action=nullptr) |
Check if a given action locks the device. More... | |
bool | isLockedByAction (Action &action) |
Check if a given action locks the device. More... | |
![]() | |
void | makeMainVmon () |
Protected Member Functions | |
void | begin () override |
bool | isEnabled () override |
bool | shouldMatchRobotState () override |
bool | shouldDisableWithWatchdog () override |
void | enable () override |
void | disable () override |
![]() | |
bool | isMainVmon () |
void | sendMainBatteryVoltage (double voltage) |
Additional Inherited Members | |
![]() | |
bool | initialized = false |
std::string | deviceName |
INA260 Power sensor
double arpirobot::INA260PowerSensor::getCurrent | ( | ) |
Get current measurement
double arpirobot::INA260PowerSensor::getPower | ( | ) |
Get power measurement
double arpirobot::INA260PowerSensor::getVolgate | ( | ) |
Get voltage measurement