|
In lugnet.robotics.rcx, Tobias Möller writes:
> In lugnet.robotics.rcx, David Leeper writes:
>
> I´m no computer programmer, but I´ve downloaded NQC but haven´t installed it
> yet.
>
> If I´ve understood this multi-tasking right, then it means that you can have
> one program running for the motors of a robot, and another for the sensors, but
> at the same time.
More than that.
You can (for instance) have a 'command' thread, which looks at a variable, and
decides according to the values on this whether to turn left/right or issue
some other response, and does this by changeing other values. You can then
have a seperate program for each motor that keeps each motor at a specific
speed, by monitoring the revolution counters, and also watches the
instructions from the command thread, telling it which way to go. This type of
writing allows you to keep the 'housekeeping' tasks seperate from the
'thought' processes. You can do the same using the standard software, but with
RCX, you can (for instance) elect to start a different process to handle
reversing, to the one for forward (often useful given the differences in the
steering responses), whereas the normal software does not allow this control -
the Dacta RoboLab software does, though with only a small number of variables
(5 I think), against the 32 available in NQC.
Best Wishes
|
|
Message is in Reply To:
11 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
Active threads in Robotics
|
|
|
|