Go to Post I highly doubt the game has anything to do with water... - rotolomi [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-02-2009, 09:35
Sentient's Avatar
Sentient Sentient is offline
Registered User
FRC #0639 (Code Red)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Ithaca
Posts: 21
Sentient is on a distinguished road
Joystick values out of range

We recently have been getting a 'fatal error' with our code. It has recently popped up, and I'm not sure why. The error is something along the lines of "Joystick values out of range", which is very strange. Does anyone know what this problem is and why it is happening? I can't imagine it's my fault (when is anything the programmer's fault?).I'm pretty sure the WPILib does clamping of these values itself.

Actually, now that I think about it, the problem could be because joystick input isn't being sent to the driver station at all and it's being forced to try to do calculations with INF or NaN. Strange, the joysticks are all plugged in.

Has anyone else had a similar problem?

EDIT: It was just a stupid mistake. I called GetRawAxis(7) on accident. I was trying for GetRawButton(7). Darn autocomplete!

Last edited by Sentient : 14-02-2009 at 12:28.
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading Joystick Values Help FearlessLeader C/C++ 5 17-01-2009 23:33
Joystick values (?) beefy1 Programming 1 23-12-2008 11:26
Joystick axis values in new controller koreabell Programming 7 17-12-2008 11:39
Joystick Output Values? compwiz2008 Programming 5 17-01-2008 22:40
Mixing Joystick Values for mecanum wheels Leav Programming 10 15-01-2006 14:51


All times are GMT -5. The time now is 21:47.

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