You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to last year's process_encoder.py, the wheel encoder will not be sampled at a sufficient speed through the normal FSM tick: sensor measurements from I2C will take more than 10 ms whereas the wheel encoder needs to be sampled at around 1.5 ms for the pod's top speed of about 20 mph.
Explore options for multiprocessing which won't be limited to a single process
Instead of measuring the wheel encoder in running_periodic spawn a new task in StateMachine::run which runs its own loop to sample the wheel encoder at a faster rate than the standard FSM tick
The text was updated successfully, but these errors were encountered:
Similar to last year's
process_encoder.py
, the wheel encoder will not be sampled at a sufficient speed through the normal FSM tick: sensor measurements from I2C will take more than 10 ms whereas the wheel encoder needs to be sampled at around 1.5 ms for the pod's top speed of about 20 mph.running_periodic
spawn a new task inStateMachine::run
which runs its own loop to sample the wheel encoder at a faster rate than the standard FSM tickThe text was updated successfully, but these errors were encountered: