-
First create a new branch
-
Edit this readme file and enter your name (bottom of these instructions)
-
commit your changes
-
push your changes (to the new branch you just created)
-
Start working on the subsystems below
This branch belongs to: (your name here)
you can use the 2022 code as a reference however a lot of it is outdated and does not follow best practices. Please do not copy it verbatim. If you are ever unsure about anything please ask.
you can & will have more methods, objects, and variables than this. This is intended as a general outline
- Talon_FX
- Solenoid
- setPercentOut(double percent)
- setVoltage(double volts)
- setVelocity(double rpm)
- deploy()
- retract()
- stop()
- getRpm();
- isDeployed();
- IntakeDeployAndSpin(double rpm)
- IntakeRetractAndStop()
- IntakeDeployNoSpin()
- rightTrigger (while being held down) = deploy & spin at 3000 RPM
- rightBumper (while being held down) = just deploy
Please reference https://github.com/Mechanical-Advantage/AdvantageKit for help with this, they even have example robot code if needed
- get/set methods
- logging extra values
- tunable numbers
- pass all variables through to log and from log using toLog and fromLog:
public void toLog(LogTable table) {
table.put("name", value);
}
public void fromLog(LogTable table) {
value = table.get("name", defaultValue);
}
- write out default forms of methods
public default void methodName(double value) {}
- use methods you laid out in IO to reference motors
- update inputs
@Override
public void updateInputs(IntakeIOInputs inputs) {
inputs.value = motor.getValue();
}