mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[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:
@@ -1,46 +1,28 @@
|
||||
EXAMPLE_FOLDERS = [
|
||||
"AddressableLED",
|
||||
"AprilTagsVision",
|
||||
"ArcadeDrive",
|
||||
"ArcadeDriveGamepad",
|
||||
"ArmSimulation",
|
||||
"CANPDP",
|
||||
"DifferentialDriveBot",
|
||||
"DifferentialDrivePoseEstimator",
|
||||
"DigitalCommunication",
|
||||
"DriveDistanceOffboard",
|
||||
"DutyCycleEncoder",
|
||||
"DutyCycleInput",
|
||||
"ElevatorExponentialProfile",
|
||||
"ElevatorExponentialSimulation",
|
||||
"ElevatorProfiledPID",
|
||||
"ElevatorSimulation",
|
||||
"ElevatorTrapezoidProfile",
|
||||
"Encoder",
|
||||
"EventLoop",
|
||||
"FlywheelBangBangController",
|
||||
"GettingStarted",
|
||||
"Gyro",
|
||||
"GyroMecanum",
|
||||
"HAL",
|
||||
"HatchbotInlined",
|
||||
"HatchbotTraditional",
|
||||
"HidRumble",
|
||||
"HttpCamera",
|
||||
"I2CCommunication",
|
||||
"IntermediateVision",
|
||||
"MecanumBot",
|
||||
"MecanumDrive",
|
||||
"MecanumDrivePoseEstimator",
|
||||
"Mechanism2d",
|
||||
"MotorControl",
|
||||
"PotentiometerPID",
|
||||
"QuickVision",
|
||||
"RapidReactCommandBot",
|
||||
"RomiReference",
|
||||
"SelectCommand",
|
||||
"SimpleDifferentialDriveSimulation",
|
||||
"Solenoid",
|
||||
"StateSpaceArm",
|
||||
"StateSpaceElevator",
|
||||
"StateSpaceFlywheel",
|
||||
@@ -48,7 +30,6 @@ EXAMPLE_FOLDERS = [
|
||||
"SwerveBot",
|
||||
"SwerveDrivePoseEstimator",
|
||||
"SysIdRoutine",
|
||||
"TankDrive",
|
||||
"TankDriveGamepad",
|
||||
"UnitTest",
|
||||
"XRPReference",
|
||||
@@ -66,25 +47,39 @@ COMMANDS_V2_FOLDERS = [
|
||||
"subsystem2",
|
||||
]
|
||||
|
||||
SNIPPETS_FOLDERS = [
|
||||
SNIPPET_FOLDERS = [
|
||||
"ADXLAccelerometers",
|
||||
"AccelerometerCollision",
|
||||
"AccelerometerFilter",
|
||||
"AddressableLED",
|
||||
"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",
|
||||
"opmode",
|
||||
@@ -95,11 +90,13 @@ TEMPLATES_FOLDERS = [
|
||||
"timesliceskeleton",
|
||||
]
|
||||
|
||||
TESTS_FOLDERS = [
|
||||
EXAMPLE_TESTS_FOLDERS = [
|
||||
"ArmSimulation",
|
||||
"DigitalCommunication",
|
||||
"ElevatorSimulation",
|
||||
"I2CCommunication",
|
||||
"PotentiometerPID",
|
||||
"UnitTest",
|
||||
]
|
||||
|
||||
SNIPPET_TESTS_FOLDERS = [
|
||||
"DigitalCommunication",
|
||||
"I2CCommunication",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user