Subject:
|
Re: Replacement Firmware Released
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Thu, 23 Dec 2004 22:49:26 GMT
|
Viewed:
|
1360 times
|
| |
| |
The behavior you've experienced is expected.
Standard Lego firmware implements a 100 msec delay when you directly
"flip" or change powered motor direction. I expect it is a bug (rather
than design intent) that if you go through the stage
Forward->Off->Reverse that there is no delay. The 'Off' cancels the
timer.
In the replacement firmware, the motor transition delay is always
implemented when changing powered direction. The delay is user
programmable as Philo has pointed out. I wanted to provide full
backwards compatability with the Lego firmware but not to the extent of
copying their bugs.
If you look at the "OnFwd" in NQC you'll see that it is a macro that
does On, Wait, Off. So in your code snippet you're actually going
through the Forward->Off->Reverse sequence.
"Philippe Hurbain" <philohome@free.fr> wrote in message
news:I96Eo4.1t6A@lugnet.com...
> > I did exactly the same thing today, and found I needed a figure of
> > about twenty
> > to acheive reliable back and forth motion. I think it may be
> > something to do
> > with the fact that the rcx firmware(s) will not let you switch motor
> > direction
> > instantly (without tweaking). I beleive their is a timing value that
> > controls
> > this behaviour.
>
> Indeed, it vibrates fine if you set nMotorTransitionDelay = 0
>
> Philo
|
|
Message has 2 Replies: | | Re: Replacement Firmware Released
|
| (...) I don't think this is a bug in the original firmware, but rather a protection against burning electronics parts in the RCX or dammaging motors flipping the motor directions too rapidly. Motors present some interesting electronics behaviour due (...) (20 years ago, 24-Dec-04, to lugnet.robotics)
| | | Re: Replacement Firmware Released
|
| --- Dick Swan <dickswan@sbcglobal.net> wrote: "Philippe Hurbain" <philohome@free.fr> wrote in message (...) I assume you mean kSystemMotorTransition. I'm having trouble figuring out how to access these new variables. There is mention of a file (...) (20 years ago, 25-Dec-04, to lugnet.robotics)
|
Message is in Reply To:
25 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|