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 Team Virgo v3

Revision:
11:49344285c82a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/04_PowerMonitor/batt_guage.cpp	Sun Apr 24 23:54:50 2016 +0000
@@ -0,0 +1,22 @@
+#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());
+}
\ No newline at end of file