Go to Post I would like to extend my deepest, most sincere thanks to the GDC, for bringing alliances to us in 1999. - Ken Patton [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 13-01-2013, 09:49
xForceDee's Avatar
xForceDee xForceDee is offline
Registered User
AKA: Bart Kerfeld
FRC #4239 (Warpspeed)
Team Role: College Student
 
Join Date: Dec 2012
Rookie Year: 2012
Location: Minnesota
Posts: 58
xForceDee is a splendid one to beholdxForceDee is a splendid one to beholdxForceDee is a splendid one to beholdxForceDee is a splendid one to beholdxForceDee is a splendid one to beholdxForceDee is a splendid one to behold
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 13-01-2013, 10:37
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
  #3   Spotlight this post!  
Unread 14-01-2013, 18:55
jesusrambo jesusrambo is offline
Self-Proclaimed Programmer Messiah
AKA: JD Russo
FRC #2035 (Robo Rockin' Bots)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Carmel, CA
Posts: 114
jesusrambo is an unknown quantity at this point
Re: Battery Voltage

Here's the API page.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:13.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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