Thread
:
Main Robot Code NOT Working
View Single Post
#
3
29-01-2015, 08:00
Joe Ross
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
The dead code is also caused by reading joystick constants, rather the joystick values.
XBox.RIGHTJOY_Y < 0 is always false, so the code in the if statement never executed and is thus dead code.
Joe Ross
View Public Profile
Find all posts by Joe Ross
Find CD-Media Photos by Joe Ross
Find CD-Media Papers by Joe Ross