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

NXT Controller Issues
http://robotc.net/forums/viewtopic.php?f=63&t=9616
Page 1 of 1

Author:  garyroachfreeman [ Thu Oct 23, 2014 11:34 am ]
Post subject:  NXT Controller Issues

Im using ROBOTC 4.26 With NXT

I have been having issues having my logitech controller. I am using the basic sample code for joystick control, with both motors on the B and C ports. I can use code that tells the motors to move forward or backwards and have no issues, but as soon as I attempt to use the joystick nothing works. Sample:

while(true)
{
getJoystickSettings(joystick); // Update Buttons and Joysticks
motor[motorC] = joystick.joy1_y1;
motor[motorB] = joystick.joy1_y2;
}
This does nothing but if I change motor Cs value to this
motor[motorC] = 100;
It will run at max power forever while B will sit their doing nothing no matter what goes on with the joystick. Anyone have this problem?


Windows 7 with the Logitech F310.

Author:  JohnWatson [ Fri Oct 24, 2014 11:10 am ]
Post subject:  Re: NXT Controller Issues

Please do not post duplicate threads on the same subject as this only divides the discussion and causes confusion. This topic has also been posted in this thread: viewtopic.php?f=1&t=9618

Thank you,
John

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