 | | Re: Using the rotation sensor as velocity sensor
|
|
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 (...) (26 years ago, 8-Sep-00, to lugnet.robotics.rcx.legos)
|
| |
 | | c++ classes
|
|
Dear legOSers, I have written a set of c++ classes for manipulating sensors and motors within legOS. The classes include: A) Sensor, a base class for accessing sensors B) LightSensor, derived from Sensor, but uses the LIGHT function to get values C) (...) (26 years ago, 8-Sep-00, to lugnet.robotics.rcx.legos)
|
| |
 | | Re: Using the rotation sensor as velocity sensor
|
|
Looks solid to me, and I appreciate the effort to isolate all the code with #defines- hopefully, most future feature additions will be similarly controlled. If no one objects, I'm going to check this into CVS this afternoon. Thanks a lot, Jochen... (...) (26 years ago, 8-Sep-00, to lugnet.robotics.rcx.legos)
|
| |
 | | 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 (...) (26 years ago, 8-Sep-00, to lugnet.robotics.rcx.legos)
|
| |
 | | Re: IRPD sensors and LegOS (long)
|
|
Well, I worked on it a bit and added two routines: TurnTo(int New_Direction) => Figures the quickest way to turn from the current Direction to the new one. Retrace(int N) => Retraces the last N number of legs of it's journey. Change the #define LEGS (...) (26 years ago, 30-Aug-00, to lugnet.robotics.rcx.legos)
|