proserven / team-100-wildhats

Automatically exported from code.google.com/p/team-100-wildhats
0 stars 0 forks source link

Call testio() functions sparingly #92

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The testio() function which monitors all I/O status is a time hog, causing us 
to miss periodic updates from the Driver Station. Since this function provides 
debug information only, there is no need to update all the information 50 times 
per second - for PWM's and analog inputs, updates twice a second is probably 
fine. However, we should keep fast updates for DIO to aid in debugging the 
encoders.

Have a counter in the OrangaHang module. Increment each time through the 
teleopPeriodic() function. When the counter exceeds 25, reset the counter and 
send the PWM and analog information to the Smart Dashboard. (Alternatively, 
implement using count down from 25).

Original issue reported on code.google.com by la...@pyxiseng.com on 8 Mar 2013 at 6:33

GoogleCodeExporter commented 8 years ago
This has been completed. A second timer has been created in Orangahang.java and 
is used to limit the calling of testIO()

Original comment by xZari...@gmail.com on 9 Mar 2013 at 6:02