Encoder velocity calculation #49
-
Hi. I have to multiply the encoder velocity output pin by 8 to get the right value. from my hal....
when I use the encoder.00.velocity pin directly the speed is wrong |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Found the cause of the error. The velocity is averaged over 8 periods, using a circular buffer. This buffer is stuck (i.e. it does not advance to the next position), therefore 7 out of 8 positions remain 0 rpm. Upgrading this discussion to an issue. |
Beta Was this translation helpful? Give feedback.
-
Can you check #50 whether the speed is correct now? If it works, I'll merge it into |
Beta Was this translation helpful? Give feedback.
-
@OJthe123 : Thanks for testing. Will merge branch #50 to |
Beta Was this translation helpful? Give feedback.
@OJthe123 : Thanks for testing. Will merge branch #50 to
main
somewhere today.