-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #135 from ad101-lab/ad-auton-upload
Add option to upload all autons to brain at once
- Loading branch information
Showing
5 changed files
with
44 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#define AUTON 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#define AUTON_STEAL_LEFT_LEFT_AWP 1 | ||
#define AUTON_STEAL_MID_LEFT_AWP 2 | ||
#define AUTON_STEAL_MID_RIGHT_AWP 3 | ||
#define AUTON_STEAL_RIGHT_RIGHT_AWP 4 | ||
#define AUTON_STEAL_RIGHT_RIGHT_RIGHT_AWP 5 | ||
#define AUTON_RIGHT_DOUBLE_STEAL 6 | ||
#define AUTON_NONE 7 | ||
#define AUTON_SKILLS 8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import os | ||
import time | ||
|
||
autons = ["SLeft LAWP", "SMid LAWP", "SMid RAWP", "SRight RAWP", "SRR RAWP", "Right Double Steal", "None", "Skills"] | ||
|
||
for i in range(len(autons)): | ||
f = open("include/auton.h", "w") | ||
f.write("#define AUTON " + str(i+1)); | ||
f.close() | ||
|
||
print ("pros mu --slot " + str(i+1) + " --name \"" + autons[i] + "\"") | ||
|
||
os.system("pros mu --slot " + str(i+1) + " --name \"" + autons[i] + "\"") |