Home→Forums→MonoBrick EV3 Firmware→Stop motor at mechanical end position?→Reply To: Stop motor at mechanical end position?
March 10, 2015 at 19:20
#5303

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
Follow