Team612 / 612-2015

FRC team 612's repository for 2015 season
GNU General Public License v2.0
4 stars 6 forks source link

Feature joystick #96

Closed Alexbay218 closed 9 years ago

Alexbay218 commented 9 years ago

please check for errors. (In SmoothJoystick.cpp) GetY() and GetX() show errors. So does joystick = new Joystick(1);. . . . GetValue() can be used to get value of an joystick (Run InitJoystick() first). X axis = 0, y axis = 1 left hand = 0, right hand = 1

CarlyAmar commented 9 years ago

Joystick == gamepad in this situation. change so that statement fits.

Alexbay218 commented 9 years ago

It compiles! . . (mwahahahah!)

CarlyAmar commented 9 years ago

Can you put setting and ports into robotmap.h and then make Value a variable in the function rather than the class (also, make it lowercase)

CarlyAmar commented 9 years ago

I made modifications to it and merged it in a different PR