Home→Forums→MonoBrick EV3 Firmware→Rotation Count Question→Reply To: Rotation Count Question
January 3, 2014 at 20:01
#3720
Anders Søborg
Keymaster
Call the output(float ek) with the error that you just calculated this will give you the output to apply. Call this code with a fixed interval/sample rate. The constructor takes four arguments P, I, D and the sample rate. You will need to do some tuning on the P, I and D to get the desired result. I will move the last part of this discussion to a new thread when I have added a working example to the firmware.
Anders
Follow