View Single Post
  #1   Spotlight this post!  
Unread 01-04-2016, 14:07
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: 216
team-4480 will become famous soon enoughteam-4480 will become famous soon enough
Why doesn't the SmartDashboard update?

Hi,

I am trying use the autonomous selector part of the Smartdashboard with this code in the init:
Code:
        self.auto_chooser=wpilib.SendableChooser()
        self.auto_chooser.addObject("High Goal, Low Bar", "1")
        self.auto_chooser.addDefault("Crosser Low Bar", "2")
        self.auto_chooser.addObject("Reacher", "3")
        self.auto_chooser.addObject("Crosser RT", "4")
        wpilib.SmartDashboard.putData('Choice', self.auto_chooser)
The problem is that it never actually shows up. I use the connector indicator icon and it shows that it is indeed connected but my options never show up. Is there something else I should be doing? I have tried just doing
Code:
wpilib.SmartDashboard.putNumber("Something", 3)
and that doesn't show either when connected. Any ideas or suggestions are welcome! Thanks!
Reply With Quote