-
Notifications
You must be signed in to change notification settings - Fork 0
Accessing Battery Values
This library provides the ability to access the voltages of the main battery and that of the power expander battery (Useful information to adjust motor voltages and display on the LCD).
There is no additional setup required to track the main battery's voltage. If you want to monitor a secondary battery's voltage write #define USE_SECOND_BATTERY 1
in config.c. You also need to plug the status port of the power expander into a digital port on the cortex. In RobotC, define a potentiometer called "PWR" that is mapped to the port you plugged the power expander in.
To access the main battery's voltage call int getMainBatteryVoltage()
which returns the voltage in milliVolts.
To access the secondary battery's voltage (if defined), call int getSecondBatteryVoltage()
which returns the voltage in millivolts.
Beginner Features:
Intermediate Features:
Advanced Features:
Controlling the LCD
Using Autonomous Modes
Custom Pre Auton Procedure
Using Autonomous Modes in User Control
More Remote Functionality
Configuring Bailout Button
Custom User Control Procedure
PID Control
Drive Train Control