View unanswered posts | View active topics It is currently Fri Aug 29, 2014 2:23 pm






Reply to topic  [ 2 posts ] 
Joystick Trigger Not Working 
Author Message
Rookie

Joined: Fri Apr 15, 2011 11:00 am
Posts: 2
Post Joystick Trigger Not Working
We have our Joystick trigger set to control and attachment on our robot, but the code must be incorrect because it doesn't work. Could someone look at our code and suggest a fix please?


Attachments:
TeleOp.c [5.43 KiB]
Downloaded 179 times
Fri Apr 15, 2011 11:24 am
Profile
Rookie

Joined: Fri Apr 15, 2011 12:08 am
Posts: 5
Post Re: Joystick Trigger Not Working
Code:
    if(joy1Btn(7))
    {
      motor[mtr_S2_C1_1] = 25;
    }
    else
    {
      motor[mtr_S2_C1_1] = 0;
    }
    if(joy1Btn(8))
    {
      motor[mtr_S2_C1_2] = 100;
    }
    else
    {
      motor[mtr_S2_C1_2] = 0;
    }


Are those the lines in question?

Does the joystick work for other things (driving, other buttons) but fails on that one button?


Sun Apr 24, 2011 2:32 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


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.