_ping
Value Type
| boolean |
Description
Set to true when a robot is detected by another robot's radar scan. Being detected by another robot's radar is also called being "pinged". The _ping variable triggers the section registered by the regping command to handle ping events.
This variable is reset to false automatically when the ping event handler completes. The _ping variable can also be manually reset with the clear command. If no section has been registered to handle ping events and the clear command is not used, _ping will remain true once a robot has been pinged.
When a robot is pinged, the ping variables _pingbearing, _pingheading, and _pingfriendly contain additional information.
See Also