Team2168 / 2015_Main_Robot

Source code for the 2015 season
2 stars 0 forks source link

Delete incorrect use of SmartDash #37

Closed NotInControl closed 9 years ago

NotInControl commented 9 years ago

Remove this line from Disabled peridic https://github.com/Team2168/2015_Main_Robot/blob/master/src/org/team2168/Robot.java#L75

Any use of smartdashboard should be added in the print() method of the ConsolePrinter.java. The reason for the consolePrinter is to throttle the amount of data sent over the network, all of the periodic loops on the robot run at a 20ms rate, so if you place a smartDash object in a periodic loop, that data will be sent 50 times a second. We don't need to read the data that fast for the dashboard. The ConsolePrinter runs much slower so we don't flood the network with data.

The ConsolePrinter is here: https://github.com/Team2168/2015_Main_Robot/blob/master/src/org/team2168/utils/ConsolePrinter.java