Go to Post I've never seen a spam bot edit posts before - Vikesrock [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 20-01-2011, 22:58
sand500 sand500 is offline
Registered User
FRC #3540 (Wildcat Robotics)
 
Join Date: Jan 2011
Rookie Year: 2011
Location: United States
Posts: 81
sand500 is an unknown quantity at this point
Re: How to use JAVADOCS?

UM, what does it mean if we get only 0.0 as the output
Reply With Quote
  #2   Spotlight this post!  
Unread 31-01-2011, 20:40
Patrick Chiang Patrick Chiang is offline
Programming
FRC #3070 (Team Pronto)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Seattle
Posts: 162
Patrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to all
Re: How to use JAVADOCS?

Sorry this is a bit late in answering.

But if you see 0.0 as the output, that means that the joystick inputs are being read, and they're showing 0.0. Check your driver station setup interface to see if the Joysticks are plugged into the right usb locations.

Also, keep in mind that you should keep outputting values instead of doing it only once.

If you only println it once, this is what happens:
Robot starts -> get joystick value -> print value -> you move joystick.
When you move the joystick, the robot has already printed the joystick value. It won't update by itself, so you'll get the default 0.0

You should println it continuously. You could put it into the teleopPeriodic or teleopContinuous loops. If you just want to test it, you could run an infinite loop as such:
Code:
while(true){
     System.out.println(leftStick.getX());
}
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 11:18.

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