-
Notifications
You must be signed in to change notification settings - Fork 57
Description
If RobotPy is to be included in frc-docs (see initial PR), then we need to have existing working examples that can be linked to from the documentation that match the WPILib examples closely. By running the following on frc-docs:
grep -r --no-filename remoteliteralinclude * | grep java | sort | uniq
I get the following examples required:
- addressableled
- armbot
- armbotoffboard
- drivedistanceoffboard
- elevatorprofiledpid
- elevatorsimulation
- elevatortrapezoidprofile
- frisbeebot
- gettingstarted
- gyrodrivecommands
- hatchbotinlined
- hatchbottraditional
- mecanumdrive
- mechanism2d
- ramsetecommand
- schedulereventlogging
- selectcommand
- statespaceflywheel
Here are additional examples that need to be created too:
- AprilTagsVision ([Rebase] add AprilTagVision example #107)
- Arcade Drive Xbox Controller (add arcade-drive-xbox-controller example #83)
- Axis Camera Sample
- DifferentialDriveBot
[ ] DMA- Duty Cycle Encoder(low hanging fruit #91)
- DutyCycleInput(low hanging fruit #91)
- Encoder
- Gyro Mecanum(low hanging fruit #91)
- HID Rumble(low hanging fruit #91)
- MecanumControllerCommand
- PotentiometerPID
- Power Distribution CAN Monitoring
- RamseteController(low hanging fruit #91)
- Relay
- RomiReference
- SimpleDifferentialDriveSimulation
- Solenoid (Solenoid #82)
- StateSpaceArm (Add & adapt State-Space examples #101)
- StateSpaceDriveSimulation
- StateSpaceElevator (Add & adapt State-Space examples #101)
- StateSpaceFlywheel(Add & adapt State-Space examples #101)
- StateSpaceFlywheelSysId(Add StateSpaceFlywheelSysId example #99)
- SwerveBot
- SwerveControllerCommand
- Tank Drive Xbox Controller (add tank-drive-xbox-controller example #84)
- Traditional Hatchbot
- Ultrasonic(Created Ultrasonic example #85)
- UltrasonicPID(Add ultrasonic-pid example #94)
I tried using ChatGPT to do automated translation of examples, and it's pretty good! Here's a prompt I started with that I got reasonable results with:
RobotPy code translator will translate code from WPILib Java to RobotPy python. The output python code is semantically the same as the original java code, and has identical comments. The output python code is complete and contains all of the code present in the original Java code. Here is the input code for the translator, output only the output code: