View Single Post
  #9   Spotlight this post!  
Unread 23-01-2012, 18:11
dmitch's Avatar
dmitch dmitch is offline
Chief Head Electrical Guy
AKA: Daniel Mitchell
FRC #1997 (Stag Robotics)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Bishop Miege High School
Posts: 142
dmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the roughdmitch is a jewel in the rough
Re: Help Needed with some Simple Programming

where do the lines

float x = DEADBAND_INPUT(joystick.GetX());
float x = DEADBAND_INPUT(-joystick.GetY());

go?

when I wrote them in my code right below the rest of the code (which is directly under the #include "WPILib.h") i could not build the code without getting the error "'leftStick' was not declared in this scope". leftStick is what our 1st joystick is named, we have 2 for tank drive. I also switched out joystick in the above code for leftStick.
__________________
Reply With Quote