View Single Post
  #3   Spotlight this post!  
Unread 21-01-2015, 18:03
team-4480's Avatar
team-4480 team-4480 is offline
Debug? What's that?
FRC #4480
 
Join Date: Jan 2015
Rookie Year: 2013
Location: Minnesooota
Posts: 229
team-4480 will become famous soon enoughteam-4480 will become famous soon enough
Re: Python: button no attribute to wpilib ?

Quote:
Originally Posted by virtuald View Post
You don't actually need to use the JoystickButton object, you can just use joystick.getRawButton() or joystick.getTrigger(), etc.

Otherwise, make sure you import wpilib.buttons, not just import wpilib.
For some really annoying reason, I can't have an "If" statement in my code or the Driver Station will not recognize the code. I tried --nc and it shows nothing. Thanks!