We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
R.mode
1 parent 4fdec15 commit 7d5066eCopy full SHA for 7d5066e
programming/sr/index.md
@@ -64,7 +64,17 @@ zone
64
: The number of the zone that the robot is associated with. Between `0` and `3`.
65
66
mode
67
-: Either "comp" or "dev". When in a competition match, this will be "comp", and at all other times this will be "dev".
+: Whether the robot is running in competition mode.
68
+ When in a competition match, this will be `RobotMode.COMP`, and at all other times this will be `RobotMode.DEV`.
69
+
70
+ ~~~~~ python
71
+ from sr.robot3 import *
72
73
+ R = Robot()
74
75
+ if R.mode == RobotMode.COMP:
76
+ print("This is the competition!")
77
+ ~~~~~
78
79
usbkey
80
: The path to the USB memory stick.
0 commit comments