| | 
      |   |   
            | Subject: 
 | Re: Using the rotation sensor as velocity sensor 
 |  
            | Newsgroups: 
 | lugnet.robotics.rcx.legos 
 |  
            | Date: 
 | Fri, 8 Sep 2000 14:51:19 GMT 
 |  
            | Viewed: 
 | 2197 times 
 |  |  |  
 | 
 |  | Checked in to CVS. Thank you again, Jochen. By the way, for those of you who may want to check it out, I've disabled it by default in
 boot/config.h (as we probably should with rotation sensors) so you'll have
 to go in there and uncomment it yourself.
 Luis
 
 On Fri, 8 Sep 2000, Jochen Hoenicke wrote:
 
 > Date: Fri, 8 Sep 2000 07:54:12 GMT
 > From: Jochen Hoenicke <Jochen.Hoenicke@Informatik.Uni-Oldenburg.DE>
 > To: lugnet.robotics.rcx.legos@lugnet.com
 > Subject: Using the rotation sensor as velocity sensor
 >
 > Hello,
 >
 > For my own project I need to measure the velocity at which my robot is
 > moving.  I finally patched the legOS kernel to get accurate values.  I
 > think that others may profit from a good velocity sensor.  The
 > velocity is given in rotation ticks (1/16 rotation) per second.  My
 > patch is available at
 >
 > http://www.informatik.uni-oldenburg.de/~delwi/legOS/
 >
 > My first approach was to poll the rotation sensor in 100 ms intervals,
 > but it turned out that it was inaccurate (since there are only very
 > few ticks in 100 ms) and making the interval longer would make the
 > reaction time very bad.
 >
 > I came to the conclusion that it would be best to measure the interval
 > between two rotation ticks and use that to calculate the velocity.  To
 > get it as accurate as possible I put that code into the legOS routine
 > that increments the rotation counter.
 >
 > The code is a bit more complicated, since the velocity must quickly
 > decrease if no more rotation ticks are read.
 >
 >   Jochen
 >
 >
 
 -----------------------------------------------------------------------
 
 "Summertime... and the living is easy...
 fish are jumping and the cotton is high...
 So hush, little baby, baby don't you cry."
 -Ella
 
 -----------------------------------------------------------------------
 
 |  |  |  
 
 Message is in Reply To:
 
  |  |  | Using the rotation sensor as velocity sensor 
 | 
 |  | Hello, For my own project I need to measure the velocity at which my robot is moving. I finally patched the legOS kernel to get accurate values. I think that others may profit from a good velocity sensor. The velocity is given in rotation ticks (...)   (25 years ago, 8-Sep-00, to lugnet.robotics.rcx.legos) 
 |  3 Messages in This Thread:
 
    
    
 
      Entire Thread on One Page:
      
        Nested: 
        All | Brief | Compact | Dots
        Linear: 
        All | Brief | Compact
 | 
 | 
 | 
 |