tucvbif
703f027717
Allow for removal of hysteresis on 4x encoders ( #13698 )
...
* Remove hysteresis on 4x encoders
Sometimes, controller skips encoder pulses and when it returns to default position, the encoder_pulses variable isn't equals 0. And when I turn encoder in opposite direciton, it skips first click becase of encoder_pulses crosses zero. To prevent this, I add the ENCODER_DEFAULT_POS constant, and reset encoder_pulses into 0 when the state variable equals ENCODER_DEFAULT_POS.
* Documentation for ENCODER_DEFAULT_POS
2021-08-18 09:40:00 +10:00
..
2021-08-15 21:51:50 +01:00
2021-08-06 23:59:56 -07:00
2021-08-18 04:48:00 +10:00
2021-08-18 04:19:00 +10:00
2021-08-03 18:49:33 +01:00
2021-08-18 08:47:50 +10:00
2021-08-18 04:19:00 +10:00
2021-07-25 12:17:15 +10:00
2021-07-28 12:01:23 +01:00
2021-08-15 00:54:08 -07:00
2021-08-06 23:59:56 -07:00
2021-08-18 00:18:58 +01:00
2021-08-18 00:18:58 +01:00
2021-08-18 00:18:58 +01:00
2021-08-18 00:18:58 +01:00
2021-08-18 00:18:58 +01:00
2021-08-18 00:18:58 +01:00
2021-08-18 00:18:58 +01:00
2021-08-18 00:18:58 +01:00
2021-08-18 00:18:58 +01:00
2021-08-18 00:18:58 +01:00
2021-08-18 00:18:58 +01:00
2021-06-29 19:15:58 +01:00
2021-08-07 17:12:57 +10:00
2021-08-07 17:12:57 +10:00
2021-08-18 04:52:44 +10:00
2021-08-18 04:52:44 +10:00
2021-07-01 08:22:21 -07:00
2021-07-01 08:22:21 -07:00
2021-08-18 00:18:58 +01:00
2021-08-18 00:18:58 +01:00
2021-08-18 09:40:00 +10:00
2021-07-25 19:14:58 -07:00
2021-07-25 19:14:58 -07:00
2021-08-18 00:18:58 +01:00
2021-08-18 00:18:58 +01:00
2021-08-18 00:18:58 +01:00
2021-08-06 09:44:57 +10:00
2021-08-18 00:11:07 +01:00
2021-07-13 16:50:25 +09:00
2021-07-13 16:50:25 +09:00
2021-07-13 16:50:25 +09:00
2021-08-09 06:52:13 +10:00
2021-07-03 00:50:47 -07:00
2021-07-03 00:50:47 -07:00
2021-08-18 08:47:50 +10:00
2021-08-15 21:51:50 +01:00
2021-08-06 05:54:10 +00:00
2021-07-16 09:40:20 -07:00
2021-08-18 00:18:58 +01:00
2021-08-04 07:40:08 +10:00