NXT-G 2.1 Bug?

Discussion specific to NXT-G, NXC, NBC, RobotC, Lejos, and more.
Post Reply
monxc
Posts: 18
Joined: 17 Oct 2011, 10:23

NXT-G 2.1 Bug?

Post 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
---111 040 150 141 166 145 040 156 157 040 151 144 145 141 040 167 150 141 164 040 111 047 155 040 144 157 151 156 147 056 056 056---
hassenplug
Posts: 346
Joined: 27 Sep 2010, 03:05
Contact:

Re: NXT-G 2.1 Bug?

Post 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
---> Link to lots of MINDSTORMS stuff under my picture --->
monxc
Posts: 18
Joined: 17 Oct 2011, 10:23

Re: NXT-G 2.1 Bug?

Post 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
---111 040 150 141 166 145 040 156 157 040 151 144 145 141 040 167 150 141 164 040 111 047 155 040 144 157 151 156 147 056 056 056---
h-g-t
Posts: 552
Joined: 07 Jan 2011, 08:59
Location: Albania

Re: NXT-G 2.1 Bug?

Post 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!
A sophistical rhetorician, inebriated with the exuberance of his own verbosity, and gifted with an egotistical imagination that can at all times command an interminable and inconsistent series of arguments to malign an opponent and to glorify himself.
monxc
Posts: 18
Joined: 17 Oct 2011, 10:23

Re: NXT-G 2.1 Bug?

Post by monxc »

Thanks for that - I'll give it a try.

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

monxc
---111 040 150 141 166 145 040 156 157 040 151 144 145 141 040 167 150 141 164 040 111 047 155 040 144 157 151 156 147 056 056 056---
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: NXT-G 2.1 Bug?

Post by HaWe »

show me just 1 programming language which is free from bugs
:twisted:
monxc
Posts: 18
Joined: 17 Oct 2011, 10:23

Re: NXT-G 2.1 Bug?

Post 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
---111 040 150 141 166 145 040 156 157 040 151 144 145 141 040 167 150 141 164 040 111 047 155 040 144 157 151 156 147 056 056 056---
HaWe
Posts: 2500
Joined: 04 Nov 2014, 19:00

Re: NXT-G 2.1 Bug?

Post 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 ;)
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 0 guests