first of all, are u allowed to take code with u then upload it to the robot there, and the 3 buttons on the joystick, not the trigger and thumb button, how do u call those in code and use it for the robot?
First, you’re only supposed to do software development when it’s legal to work on the robot. That means during the six-week build, at competitions, and during the “fix-it window” after each. You can do analysis and prototyping any time you want, but you’re not supposed to write actual code to be installed on the robot.
Second, the joystick switch to the left of the “hat” is p#_sw_aux1, the one to the right is p#_sw_aux2, and the hat itself is an analog value on p#_wheel that changes depending on which direction it’s being moved.