In addition to constants, TRIK Studio has reserved variables that store the values of readings of the sensors connected to the corresponding ports.
These values can be assigned to variables and used in mathematical expressions.
Encoder readings on ports A, B, or C, respectively.
Sensor readings on ports 1, 2, 3, 4 respectively.
State of the buttons on the robot body: "Enter", "Cancel", "Left", "Right" respectively.
0 - button is not pressed.
1 - button is pressed.
Warning! Only "Enter" and "Right" buttons are available in generation mode in C.