| | Re: time sampling under the rcx standard OS
|
|
(...) Well, in BrickOS, my loops usually execute at > 1kHz, so I usually just set it to check the sensor, and set the motor every 1ms. So it just keeps checking the clock. (...) Yes. There's an option that lets you download an "SREC" type of file. I (...) (19 years ago, 19-Sep-05, to lugnet.robotics.rcx.nqc)
|
|
| | Re: time sampling under the rcx standard OS
|
|
(...) Sorry, I didn't explain. This program only aims at checking the loop frequency capability of the rcx firmware, implementing a PWM. The rotation sensor is only used as a potentiometer knob, allowing me to determine by hand the PWM pulse as (...) (19 years ago, 19-Sep-05, to lugnet.robotics.rcx.nqc)
|
|
| | Re: time sampling under the rcx standard OS
|
|
Thank you Matt, the RCX loops much faster with your advices : about 10 loops per second. But as this frequency depends on the calculations included in the loop, Im afraid this will not be enough. So I tried to download (URL) but it just appears as (...) (19 years ago, 18-Sep-05, to lugnet.robotics.rcx.nqc)
|
|
| | Re: time sampling under the rcx standard OS
|
|
Thank you Dick, for advicing me to switch to the faster firmware, Im sure I need both a 1-millisecond basic clock, and the 128 power level capability. So I tried to download it from (URL) but it just appears as a text file, which I dont know how (...) (19 years ago, 18-Sep-05, to lugnet.robotics.rcx.nqc)
|
|
| | RE: time sampling under the rcx standard OS
|
|
Here are some comments on how to improve your code for real-time performance. 1. Move the "SetUserDisplay" out of the loop and put it just before the loop. 2. I think the "OnFwd" macro is actually two instructions: "Fwd" and then "On". Replace this (...) (19 years ago, 17-Sep-05, to lugnet.robotics.rcx.nqc)
|