To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.javaOpen lugnet.robotics.rcx.java in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / Java / 128
127  |  129
Subject: 
Re: 8 power levels, and only 8?
Newsgroups: 
lugnet.robotics.rcx.java
Date: 
Mon, 24 Sep 2001 15:58:13 GMT
Viewed: 
6052 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:
  Proximity sensor ( Was: Re: 8 power levels, and only 8?)
 
Hi Paul, (...) Hmmm... can you please post your code for that? I tried it this weekend (I found it here: (URL) but I couldn't quite get it to work. Did you activate the sensor? Regards, Martin (25 years ago, 24-Sep-01, to lugnet.robotics.rcx.java)

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, (...) (25 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
    

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR