Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- the complete.py template hooked up the encoder parts using hard-coded values or defaults and ignored the configurations for MM_PER_TICK and ODOM_DEBUG. - In addition, the RotaryEncoder was given a hard coded value for the pin rather than use ODOM_PIN. - Finally, the RotaryEncoder was also using a default value for the poll_delay so polling was incorrect in anything exception the default vehicle loop rate. - This commit fixes the building of the pipeline in complete.py to use the correct configuration. It also calculates the poll_delay for the RotaryEncoder based on the DRIVE_LOOP_HZ configuration.
- Loading branch information