|
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.
__________________
|