|
Re: Update rate of commands
In fact, if you're following standard structuring of your command-based code, Teleop/Autonomous/DisabledPeriodic in Robot.cpp is called once per data packet received from the driver station. Which can be irregular if you drop packets.
You could use the Notifier class to set up a periodic event that will call a function at regular intervals. If you're trying to do this for PID control, the PIDController class is already set up for regular timing to run the PID algorithm and set motor outputs.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.
Lone Star Regional Troubleshooter
|