[examples] Clean up examples (#8674)

Move various "examples" into snippets. Several examples that were less
than a full mechanism or robot were moved to snippets. `arcadedrive` and
`tankdrive` were removed in favor of their Gamepad variants. `hidrumble`
was removed due to being too simple. `potentiometerpid` was removed
because of low utility. `gyromecanum` replaced `mecanumdrive` for
deduplication and because very few teams run holonomic drivetrains
without gyros.
This commit is contained in:
Gold856
2026-03-14 17:13:45 -04:00
committed by GitHub
parent 62ce8944aa
commit f1adce4cf7
78 changed files with 569 additions and 1665 deletions

View File

@@ -1,45 +1,27 @@
EXAMPLES_FOLDERS = [
"addressableled",
"apriltagsvision",
"arcadedrive",
EXAMPLE_FOLDERS = [
"arcadedrivegamepad",
"armsimulation",
"canpdp",
"differentialdrivebot",
"differentialdriveposeestimator",
"digitalcommunication",
"drivedistanceoffboard",
"dutycycleencoder",
"dutycycleinput",
"elevatorexponentialprofile",
"elevatorexponentialsimulation",
"elevatorprofiledpid",
"elevatorsimulation",
"elevatortrapezoidprofile",
"encoder",
"eventloop",
"flywheelbangbangcontroller",
"gettingstarted",
"gyro",
"gyromecanum",
"hatchbotinlined",
"hatchbottraditional",
"hidrumble",
"httpcamera",
"i2ccommunication",
"intermediatevision",
"mecanumbot",
"mecanumdrive",
"mecanumdriveposeestimator",
"mechanism2d",
"motorcontrol",
"potentiometerpid",
"quickvision",
"rapidreactcommandbot",
"romireference",
"selectcommand",
"simpledifferentialdrivesimulation",
"solenoid",
"statespacearm",
"statespaceelevator",
"statespaceflywheel",
@@ -47,7 +29,6 @@ EXAMPLES_FOLDERS = [
"swervebot",
"swervedriveposeestimator",
"sysidroutine",
"tankdrive",
"tankdrivegamepad",
"unittest",
"xrpreference",
@@ -65,25 +46,39 @@ COMMANDS_V2_FOLDERS = [
"subsystem2",
]
SNIPPETS_FOLDERS = [
SNIPPET_FOLDERS = [
"accelerometercollision",
"accelerometerfilter",
"addressableled",
"adxlaccelerometers",
"analogaccelerometer",
"analogencoder",
"analoginput",
"analogpotentiometer",
"apriltagsvision",
"canpdp",
"digitalcommunication",
"digitalinput",
"dutycycleencoder",
"dutycycleinput",
"encoder",
"encoderdrive",
"encoderhoming",
"eventloop",
"flywheelbangbangcontroller",
"httpcamera",
"i2ccommunication",
"intermediatevision",
"limitswitch",
"motorcontrol",
"onboardimu",
"profiledpidfeedforward",
"quickvision",
"selectcommand",
"solenoid",
]
TEMPLATES_FOLDERS = [
TEMPLATE_FOLDERS = [
"commandv2",
"commandv2skeleton",
"educational",
@@ -101,11 +96,13 @@ TEMPLATES_FOLDERS = [
"xrptimed",
]
TEST_FOLDERS = [
EXAMPLE_TESTS_FOLDERS = [
"armsimulation",
"digitalcommunication",
"elevatorsimulation",
"i2ccommunication",
"potentiometerpid",
"unittest",
]
SNIPPET_TESTS_FOLDERS = [
"digitalcommunication",
"i2ccommunication",
]