112
Note:
The event trigger module has a higher priority, which means that no matter which step the main function
reaches, as long as the trigger condition is met, the robot will immediately jump out of the main function
and start running the programs in the event module.
(1) Description: Execute the next instruction only after the infrared sensors on both sides of the gimbal are
attacked by infrared beams; otherwise, continue to wait.
(2) Type: Execution, Blocking
(3) Example: Self-rotate for protection
After being attacked by infrared beams, the robot rotates in place to reduce the probability of being hit and
fights back.