Data Sheet

Core Spartan Documentation Modern Robotics, Inc
Version 3.0.3 Page 23
unsigned char getControllerStatus(void)
Returns the status of the battery to the user.
0 Normal Operation
1 Battery Fault
2 Battery Low
unsigned char value;
value = CORE.getControllerStatus();
…or…
Serial.print(CORE.getControllerStatus());
unsigned char getBatteryVoltage(void)
Returns the current battery voltage in 40mV increments to the user.
If value=35, then battery voltage is (35 x 0.04) = 1.4V
unsigned char value;
value = CORE.getBatteryVoltage();
…or…
Serial.print(CORE.getBatteryVoltage());