Reply To: Rotation Count Question

HomeForumsMonoBrick EV3 FirmwareRotation Count QuestionReply To: Rotation Count Question

#3650
Author Image
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

Posted in

Make a donation