View Single Post
  #1   Spotlight this post!  
Unread 22-01-2009, 16:53
nate15810's Avatar
nate15810 nate15810 is offline
World's Most Clueless Programmer
FTC #0154 (154 Renegade)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2007
Location: Rhode Island
Posts: 22
nate15810 is an unknown quantity at this point
[FTC]: Top Hat coding problem

ok yet another coding problem for me.

this is my problem:

Code:
if (joystick.joy2_TopHat = 0)
    {
      servo[ServoB] = 20;
    }
    else
    {
      servo[ServoB] = 255;
    }
this won't work, nor will
Code:
if (joy2_TopHat = 0)
i need the top hat button to activate servos, but nothing is working
contacted patrick, but it still doesn't work...he's studying and i don't want to bother him anymore haha
Reply With Quote