Home→Forums→MonoBrick EV3 Firmware→Rotation Count Question→Reply To: Rotation Count Question
December 27, 2013 at 18:37
#3650

Anders Søborg
Keymaster
Hi
Thanks for trying the MonoBrick Firmware.
There is no need to poll the tacho count. Simply use the functions already provided.
LcdConsole.WriteLine ("Creating a step profile");
motor.SpeedProfileStep(40,100, 1500, 100, true);
motor.Off();
System.Threading.Thread.Sleep(2000);
LcdConsole.WriteLine ("Move to zero");
motor.MoveTo(40, 0, true);
LcdConsole.WriteLine("Motor at position: " + motor.GetTachoCount());
System.Threading.Thread.Sleep(2000);
You can read more about the motor functions here. You might also want to check out the examples here.
Anders
Follow