Page 1 of 1

Motor troubles

PostPosted: Thu Mar 24, 2011 4:25 pm
by Lend
Hey guys, i'm building an application ontop of Aforge for a uni project, and i've been tasked with building a control class for the brick i.e. a set of methods etc tailored to our robot so we can quickly test path finding etc.
My problem is that i need a way of checking when a motor (or 2 motors) has finished its current command e.g. i want it to go forwards then stop then come backwards again. I've tried checking if the blocktachocount is = too the current tacholimit thats set for that motor, but that doesn't seem to work.

Any of you guys have an idea.

Re: Motor troubles

PostPosted: Sun Mar 27, 2011 3:26 pm
by Lend
Can no body help? i just need to know if there is a way of having the brick tell me when its done with its current command.

Re: Motor troubles

PostPosted: Sun Mar 27, 2011 6:11 pm
by andrew.kirillov
Did you try using GetMotorState() and then checking MotorState.RunState, for example?