Thread: Battery Voltage
View Single Post
  #2   Spotlight this post!  
Unread 01-13-2013, 10:37 AM
Sam Crow's Avatar
Sam Crow Sam Crow is offline
Registered User
FRC #0751 (Barn 2 Robotics)
Team Role: Alumni
 
Join Date: May 2010
Rookie Year: 2010
Location: California
Posts: 169
Sam Crow is on a distinguished road
Re: Battery Voltage

The DriverStation class has a method getBatteryVoltage() that provides the voltage of the battery.
The code statement to get the voltage would be
Code:
DriverStation.getInstance().getBatteryVoltage();
Reply With Quote