155
returned.
(2) Returned value: Boolean
(3) Example: Clap to summon the robot
When a person stands one meter away from the robot and claps twice, the robot will approach. Both “Person”
and “Clap two times” are essential conditions, and thus use “AND."
Note:
"and,” “or,” and “not" are logical operations, and the returned result will be a Boolean value: “True,” or “False.”
Boolean values:
(1) Objective: Returns the condition “True” if either of a set of two conditions is met; “False” is returned if
neither condition is met.
(2) Returned value: Boolean
(3) Example: Turn toward an enemy robot after being attacked
The gimbal will rotate to the left to fight back when the left side armor is struck. Because the “left side” here
can be that of the gimbal or the chassis, the “OR” operation is used here.