_cldwall


Value Type

boolean

Description

Set to true when a robot collides with a wall. This variable triggers the section registered by the regcldwall command to handle wall collision events. Collision indicators are mutually exclusive. When _cldwall is true all other collision variables will be false.

This variable is reset to false automatically when the wall collision event handler completes. The _cldwall variable can also be manually reset with the clear command. If no section has been registered to handle wall collision events and the clear command is not used, _cldwall will remain true until a collision with a different obstacle type occurs.

When a robot hits a wall most of the collision variables _cldenergy, _cldheading, _cldid, and _cldteamid contain no useful information.

See Also

regcldwall, clear, _cldbearing