Could you give me a hint on how to code that?
int midPoint = (MAX_RIGHT + MIN_LEFT)/2; // 525int delta = abs(headRot - midPoint);
int maxVal = MAX_RIGHT - midPoint; // 750 - 525 = 225int speed = map(delta, maxVal, 0, minSpeed, maxSpeed);
I was just wondering, instead of only having the maxSpeed at the exact midpoint, how could I get it to stay at the maxSpeed for the center 1/3 of the rotation?
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16