1
preenfm2 and preenfm3 / Re: reversed encoders problem
« on: June 06, 2019, 05:40:36 PM »
Thanks, I'll give that a shot! Looking at encoders.cpp I see that the inversed encoder may already be defined here:
int inversedEnc = (encoderType & 0x2) == 0 ? 1 : -1;
Is that a different way of writing the inversedEnc = (k<2 ? -1 : 1); code that you mentioned? Or do I need to add that somewhere?
int inversedEnc = (encoderType & 0x2) == 0 ? 1 : -1;
Is that a different way of writing the inversedEnc = (k<2 ? -1 : 1); code that you mentioned? Or do I need to add that somewhere?