Hi all,
I wrote the attached code to output a servo position to a BLDC motor controller with a soft start/stop rate.
It takes a few samples from a hall effect sensor and averages them, zeros them out and multiplies them to get a 75 to 225 value for the servo position.
The funny thing is the ramp...