ActivMedia Robotics Operating System
sonar array number one; numbers nine through 16 get added to the sequence for sonar array number two;
Note that for compatibility with earlier ActivMedia robot operating systems, if the string is empty, all the sonar get disabled, but their polling sequences remain unaltered, just as if you had sent the SONAR command with an argument value of zero.
In earlier versions of AROS and P2OS, the sonar polling rate is fixed: one sonar per array gets polled every 40 milliseconds. That common cycle timing accommodates ranging out to the maximum of the sonar of several meters for general applications, including features recognition and localization. For other applications, such as
Hence, we introduce in AROS v1.8 the SonarCycle FLASH parameter which lets you set, through AROScf, the default sonar cycle time, in milliseconds. Use the SONAR_CYCLE client command #48 to change the cycle timing on the fly to the command integer's argument value in milliseconds.
STALLS AND EMERGENCIES
With a robot equipped with forward and/or rear bumpers, by default AROS immediately stops the robot and notifies the client of a stall if any one or more of the contact sensors get triggered and the robot is going in the direction of the bump (forward/front or backward/rear). Send the BUMPSTALL command #44 with an integer argument of zero to disable that
Change AROS’
In an emergency, your client may want the robot to stop quickly, not subject to normal deceleration. In that case, send the
E_STOP command (#55).
Like BUMPSTALL, use AROS’
Unlike other stalls, E_STALL also disables the motors. You must either
BIT | CONDITION IF SET |
0 | Motors enabled |
1 | Sonar array #1 enabled |
2 | Sonar array #2 enabled |
3 | Sonar array #3 enabled |
4 | Sonar array #4 enabled |
5 | STOP button pressed |
6 | E_stall engaged |
7 | Far ledge detected (IR) |
8 | Near ledge detected (IR) |
9 | Joystick button 1 pressed |
10 | Recharging |
| Reserved |
The E_STALL server notifies your client software through the stall bytes and in bit 5 of the FLAGS byte in the standard so that your client may respond to a STOP E_STALL differently than a regular stall.
21Available only on some robots.
42