Reply To: Stop motor at mechanical end position?

HomeForumsMonoBrick EV3 FirmwareStop motor at mechanical end position?Reply To: Stop motor at mechanical end position?

#5303
Author Image
Anders Søborg
Keymaster

Hi there
Thanks for using monobrick firmware.

How does GetSpeed() work?

It simply returns the current speed.

GetTachoCount()

Returns the position in degrees.

Writing a function like the one you describe depends on what approach you use. If you have some feedback that tells you when to stop simply move the motor until this requirement is meet. But just from your description it is hard to tell how to write the code. If you need input try possting the code you have.

/Anders

Posted in

Make a donation