View unanswered posts | View active topics It is currently Sun Sep 23, 2018 12:13 am






This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
NXT Controller Issues 
Author Message
Rookie

Joined: Thu Oct 23, 2014 11:28 am
Posts: 7
Post 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.


Thu Oct 23, 2014 11:34 am
Profile
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 722
Post 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

_________________
Check out our Blog! And our Facebook page!
Need help? Take a look at our updated help documentation and the ROBOTC Forums.


Fri Oct 24, 2014 11:10 am
Profile
Display posts from previous:  Sort by  
This topic is locked, you cannot edit posts or make further replies.   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.