Chief Delphi

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

tuXguy15 17-04-2013 13:07

Get Battery Voltage
 
Hello. Is there a way to get feedback of battery voltage to our smart dashboard?

Joe Ross 17-04-2013 13:18

Re: Get Battery Voltage
 
In the robot code, you can get the battery voltage with DriverStation.getInstance().getBatteryVoltage() and put that value to the SmartDashboard.

tuXguy15 17-04-2013 16:17

Re: Get Battery Voltage
 
Ok thanks!

joelg236 17-04-2013 16:51

Re: Get Battery Voltage
 
Wait, why would you want to do that? The battery voltage is always visible on the Driverstation in the top left corner.



tuXguy15 17-04-2013 17:20

Re: Get Battery Voltage
 
We want to do it so that when our battery voltage gets to a certain level it will alert us in the smart dashboard and also signal our red leds that we use as something is wrong.


All times are GMT -5. The time now is 22:34.

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