This repository was archived by the owner on Oct 20, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +17
-6
lines changed
src/main/java/com/nerdherd/lib/motor/motorcontrollers Expand file tree Collapse file tree 4 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,10 @@ public default void configFollowers(CANMotorController[] followers) {
8888 }
8989
9090 public abstract void configDeadband (double deadband );
91-
91+
92+ public abstract void configCurrentLimitPeak (double current );
93+
94+ public abstract void configCurrentLimitContinuous (double current );
9295
9396
9497}
Original file line number Diff line number Diff line change @@ -215,7 +215,7 @@ public double getVelocity() {
215215 * Only works with CTRE Motor Controllers
216216 */
217217 public void followCANMotorController (CANMotorController master ) {
218- if (master instanceof NerdyTalon || master instanceof NerdyVictorSPX ) {
218+ if (master instanceof NerdyTalon || master instanceof NerdyVictorSPX || master instanceof NerdyFalcon ) {
219219 super .follow ( (IMotorController ) master );
220220 }
221221 }
Original file line number Diff line number Diff line change @@ -100,4 +100,16 @@ public void configDeadband(double deadband) {
100100 super .configNeutralDeadband (deadband );
101101
102102 }
103+
104+ @ Override
105+ public void configCurrentLimitPeak (double current ) {
106+ // TODO Auto-generated method stub
107+
108+ }
109+
110+ @ Override
111+ public void configCurrentLimitContinuous (double current ) {
112+ // TODO Auto-generated method stub
113+
114+ }
103115}
Original file line number Diff line number Diff line change @@ -39,10 +39,6 @@ public interface SmartCANMotorController extends CANMotorController{
3939
4040 public abstract void configMotionMagic (int accel , int vel );
4141
42- public abstract void configCurrentLimitPeak (double current );
43-
44- public abstract void configCurrentLimitContinuous (double current );
45-
4642 public abstract void resetEncoder ();
4743
4844 public abstract double getPosition ();
You can’t perform that action at this time.
0 commit comments