_cldmine


Value Type

boolean

Description

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

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

When a robot collides with a mine the collision variables _cldbearing, _cldenergy, _cldheading, _cldid, and _cldteamid contain additional information.

See Also

regcldmine, clear, _cldbearing, _cldenergy, _cldheading, _cldid, _cldteamid