To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 3080
3079  |  3081
Subject: 
Re: Interesting BrickOS Timing Results
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Tue, 14 Jan 2003 04:44:35 GMT
Viewed: 
2992 times
  
Mark,

ANOTHER great find!  You are pushing BrickOS to new heights!

Ok, so what can we do about this?

1)  Provide a constant to set the update frequency at compile time.
2)  Provide a variable to set the update frequency at run time.
3)  Optimize the heck out of the routine so it takes less time.
4)  Stomp and whine about how much time is spent?  8-)

I am very interested in the possibilities here.  Are there other
options; and what are the advantages and disadvantages?

// Joe
http://www.bricklink.com/store.asp?p=ctc
http://home.insight.rr.com/worldof/

Mark Riley wrote:
Oops, found a little bug.  ;-)  Forgot to turn off the rotation
sensors.  Caused a wrong reading if you let the program
run through the readings more than once.  The rotation
sensor section should read like this:

    // with two rotation sensors enabled (23%)
    cputs("2rot"); msleep(100);
    ds_rotation_on(&SENSOR_1);
    ds_rotation_on(&SENSOR_2);
    cpu();
    ds_rotation_off(&SENSOR_1);
    ds_rotation_off(&SENSOR_2);
    sleep(3);

Mark






Message has 1 Reply:
  Re: Interesting BrickOS Timing Results
 
(...) This would be my favourites. If one builds a fast moving robot, main concern will be how fast the robot reacts to light sensor changes or how small the structures could be that the light sensor will "see". If one builds a thinking robot, for (...) (21 years ago, 14-Jan-03, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  Re: Interesting BrickOS Timing Results
 
Oops, found a little bug. ;-) Forgot to turn off the rotation sensors. Caused a wrong reading if you let the program run through the readings more than once. The rotation sensor section should read like this: // with two rotation sensors enabled (...) (21 years ago, 14-Jan-03, to lugnet.robotics.rcx.legos)

19 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