MindSqualls
Would you like to react to this message? Create an account in a few clicks or log in to continue.

McNxtBrick.Run() unlimited?

2 posters

Go down

McNxtBrick.Run() unlimited? Empty McNxtBrick.Run() unlimited?

Post  maikkel Thu Aug 25, 2011 6:09 pm

In the documentation for the McNxtMotor.Run Method it sais that the duration is set to unlimited with 0 for "tachoLimit". This doesn't seem to work for McNxtBrick. It just does nothing.
It works fine for NxtBrick (without MotorControl), but I don't like using it because the rotations are not nearly as accurate...

This works:
Code:
brick.MotorB = new NxtMotor();
brick.MotorB.Run(50, 0);

This code does nothing:
Code:
brick.MotorB = new McNxtMotor();
brick.MotorB.Run(50, 0);

maikkel

Posts : 1
Join date : 2011-08-25

Back to top Go down

McNxtBrick.Run() unlimited? Empty Re: McNxtBrick.Run() unlimited?

Post  Niels Fri Aug 26, 2011 5:39 pm

Thanks. I will look into this, but it will have to wait to after the weekend.

Niels

Posts : 19
Join date : 2011-07-15

Back to top Go down

McNxtBrick.Run() unlimited? Empty Re: McNxtBrick.Run() unlimited?

Post  Niels Mon Aug 29, 2011 9:05 am

I have uploaded a new beta of v2.2 where the problem is solved.

Niels

Posts : 19
Join date : 2011-07-15

Back to top Go down

McNxtBrick.Run() unlimited? Empty Re: McNxtBrick.Run() unlimited?

Post  Sponsored content


Sponsored content


Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum