Comment#
The Comment block is used to make notes in a VEXcode project.
VEXcode blocks stack of code containing a comment block.#
[comment]
Type inside the block to make any comments.
In this example, the code will continuously check if the 6-Axis Arm can move +20 mm on the x axis. If the 6-Axis Arm can move for that distance, a message will be broadcasted to move that distance.
VEXcode blocks stack of code containing a comment block.#
when started :: hat events
forever
[Continuously check if the Arm can move +20 mm on the x axis.]
if <[arm v] increment position by x: (20) y: (0) z: (0) [mm v]?> then
[Every time the 6-Axis Arm can move, broadcast the message.]
broadcast [arm_can_move v]
end
end
VEXcode blocks stack of code containing a comment block.#
when I receive [arm_can_move v]
[When the message is received, move the Arm +20mm on the x axis.]
increment [arm v] position by x: (20) y: (0) z: (0) [mm v] ▶