Page 1 of 1

NXT-G 2.1 Bug?

Posted: 14 Mar 2013, 15:31
by monxc
Hello,

I've just started using v2.1 of NXT-G and I'm having a lot of problems with motor control. Motors set to "Coast" reset to their original position and there seems to be no way of disabling this action. I've tried getting around this by setting motors to start in one block, then stop after a delay block, but the delay time seems random and the motor will still sometimes reset to its original position rather than coast.

Am I doing something wrong or has v2.1 of NXT-G got a problem? I never had this problem under v2.0...

Any help/advice will be very much appreciated!

Thanks,

monxc

Re: NXT-G 2.1 Bug?

Posted: 14 Mar 2013, 20:09
by hassenplug
What do you mean by "reset to their original position"?

If you're reading the values from the rotation sensor, they should continue.

Feel free to post your program.

Steve

Re: NXT-G 2.1 Bug?

Posted: 15 Mar 2013, 07:52
by monxc
Thanks for your reply - what I mean is this:

1. A "motor" or "move" block is used with the following settings:
Motor A
Turn Clockwise
0.25 Seconds Duration
Next Action = COAST

2. Motor A turns clockwise for 0.25 seconds

3. Motor A then turns anticlockwise back to it's "zero" position, as indicated by the position tracking panel in the bottom left hand corner of the v2.1 software

4. Motor A enters COAST mode

I'm not telling it to do this - the only block I'm using is a "motor" or "move" block - all I want is for Motor A to turn clockwise for 0.25 seconds and then power down...it used to work just fine under v2.0 of the mindstorms software.

Thanks for your help,

monxc

Re: NXT-G 2.1 Bug?

Posted: 15 Mar 2013, 11:56
by h-g-t
I had this problem with NXT-G and solved it by using a 'reset block' which resets the automatic error correction.

See the NXT-G help file or just Google "lego motor reset block" .

Drove me mad because my unit kept returning to the start!

Re: NXT-G 2.1 Bug?

Posted: 15 Mar 2013, 15:55
by monxc
Thanks for that - I'll give it a try.

Bit of a disappointment to find problems in NXT-G, though :(

monxc

Re: NXT-G 2.1 Bug?

Posted: 15 Mar 2013, 21:48
by HaWe
show me just 1 programming language which is free from bugs
:twisted:

Re: NXT-G 2.1 Bug?

Posted: 17 Mar 2013, 10:50
by monxc
lol
Ah, the plaintive cry of the experienced developer :lol:

To be honest, I usually code in NXC and it's great - I'd ditch NXT-G in an instant for this project if I was allowed to...

Thanks for a dose of reality :)

monxc

Re: NXT-G 2.1 Bug?

Posted: 17 Mar 2013, 11:09
by HaWe
ah, you're programming in NXC, too?
(Same do I!)
- but then you already must have got the dose of reality... 8-)
no, just kidding - NXC is quite fine for me - except a few things that I really miss ;)