Implement new controller
Dependencies: mbed-rtos mbed QEI BNO055 MPU6050_DMP_Nucleo-I2Cdev virgo3_imuHandler_Orion_PCB MAX17048 Servo
Fork of Orion_newPCB_test by
04_PowerMonitor/batt_guage.cpp
- Committer:
- akashvibhute
- Date:
- 2016-04-24
- Revision:
- 11:49344285c82a
File content as of revision 11:49344285c82a:
#include "batt_guage.h" BattGuage::BattGuage():batt_gauge(i2c_SDA, i2c_SCL) { batt_gauge.open(); batt_gauge.compensation(MAX17048::RCOMP0); //Load the default compensation value } void BattGuage::reset() { batt_gauge.reset(); wait(0.1); } float BattGuage::getSOC() { return(batt_gauge.soc()); } float BattGuage::getVcell() { return(batt_gauge.vcell()); }