ROBOTC.net forums
http://www.robotc.net/forums/

Problem with RobotC 2.01 Joysticks
http://www.robotc.net/forums/viewtopic.php?f=52&t=2179
Page 1 of 1

Author:  Harry Potter [ Thu Feb 11, 2010 5:33 pm ]
Post subject:  Problem with RobotC 2.01 Joysticks

Whenever I try to utilize the joysticks in code such as:

Code:
nMotorPower = joystick.joy1_y1;


I get extraneous results. For instance, if I put the joystick all the way up, nMotorPower will be -127, but when I push it all the way down its also equals -127. When the stick is centered it is either 0 or -255 depending on how it settles. I have experienced this problem in every program I try. Even the sample programs don't work. I have reinstalled the firmware on my brick, but that did not help.

Please let me know if there is a possible solution.
Thanks,
HP

Page 1 of 1 All times are UTC - 5 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/