|
Re: Where does Windriver printf
Quote:
Originally Posted by bob.wolff68
Just be careful of sending a printf() in your while(IsOperatorControl()) loop. The frequency of such a thing is very high and will quickly swamp the network/cRio etc. Often we will use a static int counter or a timer.HasPeriodPassed(500) to only allow a printf to occur a few times per second.
|
^This. Another good option is to printf() in a separate task that sleeps for 100ms or so every loop - we did this for our DriverStationLCD stuff and any printf()s we needed for debugging last year.
__________________
FRC 612 '12
USNA '16
|