Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Battery Voltage (http://www.chiefdelphi.com/forums/showthread.php?t=111134)

xForceDee 01-13-2013 09:49 AM

Battery Voltage
 
Hello Everyone,

This year our team switched to java so I am still getting the hang of things. One thing I would like to know is if there is any method that will get me the Voltage directly from the battery. I want the same number that shows in the driver station. Thanks in advance for the help.

Sam Crow 01-13-2013 10:37 AM

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();

jesusrambo 01-14-2013 06:55 PM

Re: Battery Voltage
 
Here's the API page.


All times are GMT -5. The time now is 07:52 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi