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 / 126
125  |  127
Subject: 
Re: 8 power levels, and only 8?
Newsgroups: 
lugnet.robotics.rcx.java
Date: 
Sat, 22 Sep 2001 09:21:11 GMT
Viewed: 
2925 times
  
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

--
Jürgen Stuber <stuber@loria.fr>
http://www.loria.fr/~stuber/



Message has 1 Reply:
  Re: 8 power levels, and only 8?
 
Here is an interesting paper on using NQC to control motor speed. A similar technique could be used in leJOS: (URL) paper has lots of interesing ideas in it besides motor speed control. My favourite being the proximity sensor which I have remodelled (...) (23 years ago, 24-Sep-01, to lugnet.robotics.rcx.java)

Message is in Reply To:
  Re: 8 power levels, and only 8?
 
Hi, (...) Bummer! I was afraid I might get that answer... :o) (...) Sure, but maybe it would be worth it, since I imagine that many/some of us will make some silly, but basic routine that cycles between float/stop and some motor power, anyway... (...) (23 years ago, 19-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
    

Custom Search

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