Skip to content

Commit

Permalink
Add Koors40 Motor Controller support
Browse files Browse the repository at this point in the history
  • Loading branch information
sciencewhiz committed Jan 9, 2025
1 parent 649ccb6 commit 49cb1b8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/resources/PaletteDescription.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ Palette:
properties:
- !ChoicesProperty
name: Type
choices: ["Victor", "Jaguar", "Talon", "VictorSP", "PWMTalonSRX", "Spark", "SD540", "PWMVictorSPX", "DMC60", "PWMSparkMax", "PWMTalonFX", "PWMVenom", "PWMSparkFlex"]
choices: ["Victor", "Jaguar", "Talon", "VictorSP", "PWMTalonSRX", "Spark", "SD540", "PWMVictorSPX", "DMC60", "PWMSparkMax", "PWMTalonFX", "PWMVenom", "PWMSparkFlex", "Koors40"]
default: "PWMVictorSPX"
#PWMOutput("Output")
- !BooleanProperty
Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/help/Motor Controller.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ <h2>See Also</h2>
<li><a href=
"https://www.playingwithfusion.com/productview.php?pdid=99">Venom</a></li>
<li><a href=
"https://www.revrobotics.com/rev-11-2159/">Spark Flex</a></li>
<li><a href=
"https://www.andymark.com/products/koors-40-brushed-dc-motor-controller">Koors40</a></li>
<li><a href=
"https://docs.wpilib.org/en/stable/docs/software/actuators/pwm-controllers.html">
Motor Controllers on frc-docs</a></li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/robotbuilder/TestUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public static RobotTree generateTestTree() {
RobotComponent dd1 = new RobotComponent("DD1", "Motor Controller", tree);
dd1.setProperty("Type", "VictorSP");
RobotComponent dd2 = new RobotComponent("DD2", "Motor Controller", tree);
dd2.setProperty("Type", "VictorSP");
dd2.setProperty("Type", "Koors40");
RobotComponent diffDrive = new RobotComponent("Diff Drive", "Differential Drive", tree);
diffDrive.add(dd1);
diffDrive.add(dd2);
Expand Down

0 comments on commit 49cb1b8

Please sign in to comment.