EDIT: Nevermind, I had a rouge line of code that was causing issues.
Check teh value returned from your map function. Maybe ti returning a negative value?
Put the return in a variable to you can view it in the debugged before sending it to the SetPulse
Yeah, somehow a “* -1” got in there and I didn’t see it.
On a side note, I’ll be releasing a servo class later today if anybody wants it.
You can add it to the wiki
We will have a wiki very soon