Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed-rtos mbed QEI BNO055 MPU6050_DMP_Nucleo-I2Cdev virgo3_imuHandler_Orion_PCB MAX17048 Servo
Fork of Orion_newPCB_test by
batt_guage.cpp
00001 #include "batt_guage.h" 00002 BattGuage::BattGuage():batt_gauge(i2c_SDA, i2c_SCL) 00003 { 00004 batt_gauge.open(); 00005 batt_gauge.compensation(MAX17048::RCOMP0); //Load the default compensation value 00006 } 00007 00008 void BattGuage::reset() 00009 { 00010 batt_gauge.reset(); 00011 wait(0.1); 00012 } 00013 00014 float BattGuage::getSOC() 00015 { 00016 return(batt_gauge.soc()); 00017 } 00018 00019 float BattGuage::getVcell() 00020 { 00021 return(batt_gauge.vcell()); 00022 }
Generated on Tue Jul 12 2022 20:53:07 by
