Skip to content

Commit 07e2215

Browse files
authored
Merge pull request #159 from PeterJCLaw/territory-claim
Add documentation on claiming territories
2 parents d55c0fa + d8741f4 commit 07e2215

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

programming/sr/radio/index.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,20 @@ while True:
5151
))
5252
~~~~~
5353

54-
<!-- TODO: radio tranmission here -->
54+
## [Claiming Territories](#claiming-territories) {#claiming-territories}
55+
56+
When your radio's antenna is within a territory, you are within range to claim it.
57+
You can claim that territory using your robot's radio:
58+
59+
~~~~ python
60+
R.radio.claim_territory()
61+
~~~~
62+
63+
This function takes a couple of seconds to complete and you must stay within
64+
range of the territory for the whole duration it is running for your claim to
65+
succeed.
66+
67+
No information is returned from `claim_territory`.
5568

5669
## [Objects of the Radio System](#radio_objects) {#radio_objects}
5770

0 commit comments

Comments
 (0)