AForge.NET

  :: AForge.NET Framework :: Articles :: Forums ::

Motor troubles

The forum is to discuss topics related to robotics, like building robot, controlling it, its software and hardware, etc.

Motor troubles

Postby Lend » Thu Mar 24, 2011 4:25 pm

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.
Lend
 
Posts: 2
Joined: Thu Mar 24, 2011 4:19 pm

Re: Motor troubles

Postby Lend » Sun Mar 27, 2011 3:26 pm

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.
Lend
 
Posts: 2
Joined: Thu Mar 24, 2011 4:19 pm

Re: Motor troubles

Postby andrew.kirillov » Sun Mar 27, 2011 6:11 pm

Did you try using GetMotorState() and then checking MotorState.RunState, for example?
With best regards,
Andrew


Interested in supporting AForge.NET Framework?
User avatar
andrew.kirillov
Site Admin, AForge.NET Developer
 
Posts: 3379
Joined: Fri Jan 23, 2009 9:12 am
Location: UK




Return to Robotics