Subject:
|
Re: 8 power levels, and only 8?
|
Newsgroups:
|
lugnet.robotics.rcx.java
|
Date:
|
Mon, 24 Sep 2001 15:58:13 GMT
|
Viewed:
|
2911 times
|
| |
| |
Here is an interesting paper on using NQC to control motor speed. A similar
technique could be used in leJOS:
http://www.cs.ruu.nl/people/markov/lego/tutorial.pdf
This paper has lots of interesing ideas in it besides motor speed control.
My favourite being the proximity sensor which I have remodelled in leJOS and
which continues to amaze me that it works at all.
In lugnet.robotics.rcx.java, Juergen Stuber writes:
> Martin Egholm Nielsen <martin@egholm-nielsen.dk> writes:
> >
> > > I think for a start it would already be nice to be able to
> > > synchronize on those 8ms motor cycles, to get more precise
> > > motor control in Java. But I didn't yet get around to analyze
> > > how the motor control routines work, it is quite complicated.
> > Exactly! Then my "basic routine" above would provide equal
> > results.
>
> Ok, here are some results of my investigation:
> - There is no general 8ms cycle
> - When you change motor settings they become effective
> on the next timer interrupt (occurs every ms), and
> the rotating pattern for a reduced powerlevel starts anew,
> and independently for each motor.
>
> So you can just look at the clock and do whatever you like,
> within the limited speed of the Java VM.
>
> Jürgen
|
|
Message has 1 Reply:
Message is in Reply To:
| | Re: 8 power levels, and only 8?
|
| (...) Ok, here are some results of my investigation: - There is no general 8ms cycle - When you change motor settings they become effective on the next timer interrupt (occurs every ms), and the rotating pattern for a reduced powerlevel starts anew, (...) (23 years ago, 22-Sep-01, to lugnet.robotics.rcx.java)
|
12 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
|
|
|
|