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-03-25 22:30:42 +11:00
2021-08-15 21:51:50 +01:00
2021-05-29 14:38:50 -07:00
2021-08-06 23:59:56 -07:00
2021-06-16 14:00:37 +10: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-06-19 19:18:00 -07:00
2021-08-15 00:54:08 -07:00
2021-08-06 23:59:56 -07:00
2016-06-23 22:18:20 -04:00
2020-12-26 15:53:12 +11: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
2019-08-30 15:01:52 -07:00
2020-12-26 15:53:12 +11:00
2021-02-07 23:16:15 +00:00
2021-02-07 23:16:15 +00:00
2020-08-29 14:30:02 -07: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-05-29 14:38:50 -07:00
2021-06-18 00:09:43 +01:00
2021-06-18 00:09:43 +01:00
2021-06-09 17:23:21 +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-05-10 15:37:36 -07:00
2019-08-30 15:01:52 -07:00
2019-11-04 22:59:13 -08: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-05-29 14:38:50 -07:00
2021-07-25 19:14:58 -07:00
2021-07-25 19:14:58 -07:00
2020-08-29 14:30:02 -07:00
2020-11-28 12:02:18 -08:00
2021-08-18 00:18:58 +01:00
2021-08-18 00:18:58 +01:00
2019-08-30 15:01:52 -07:00
2021-05-29 14:38:50 -07:00
2021-08-18 00:18:58 +01:00
2021-08-06 09:44:57 +10:00
2020-12-26 15:53:12 +11:00
2020-03-06 22:29:01 -08:00
2020-12-26 15:53:12 +11:00
2020-12-28 04:36:32 +11:00
2021-02-07 23:16:15 +00: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-02-05 13:27:24 +00:00
2021-02-03 17:25:05 -08: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-02-07 23:16:15 +00:00
2021-03-24 19:38:35 +00:00
2021-07-16 09:40:20 -07:00
2021-03-12 18:03:44 +11:00
2021-02-07 23:16:15 +00:00
2019-08-30 15:01:52 -07:00
2020-12-26 15:53:12 +11:00
2019-08-30 15:01:52 -07:00
2020-12-26 15:53:12 +11:00
2021-03-15 12:19:01 +11:00
2021-03-15 12:19:01 +11:00
2021-08-18 00:18:58 +01:00
2021-08-04 07:40:08 +10:00
2021-05-29 14:38:50 -07:00