File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -241,7 +241,7 @@ public <T> Command run(Supplier<T> velocity)
241241 {
242242 m_config .getCircumference (); // Circumference check
243243 return Commands .startRun (m_smc ::startClosedLoopController ,
244- () -> m_config .getAngularVelocity ((LinearVelocity ) velocity .get ()),
244+ () -> m_smc . setVelocity ( m_config .getAngularVelocity ((LinearVelocity ) velocity .get () )),
245245 m_subsystem )
246246 .withName (cmdName );
247247 }
Original file line number Diff line number Diff line change @@ -1368,8 +1368,8 @@ public void setMechanismUpperLimit(Angle upperLimit)
13681368 m_config .getMechanismLowerLimit ().ifPresent (lowerLimit -> {
13691369 m_config .withSoftLimit (lowerLimit , upperLimit );
13701370 });
1371- m_talonConfig .SoftwareLimitSwitch .withForwardSoftLimitThreshold ( upperLimit )
1372- .withForwardSoftLimitEnable ( true );
1371+ m_talonConfig .SoftwareLimitSwitch .withForwardSoftLimitEnable ( true )
1372+ .withForwardSoftLimitThreshold ( upperLimit );
13731373 forceConfigApply ();
13741374 }
13751375
@@ -1379,8 +1379,8 @@ public void setMechanismLowerLimit(Angle lowerLimit)
13791379 m_config .getMechanismUpperLimit ().ifPresent (upperLimit -> {
13801380 m_config .withSoftLimit (lowerLimit , upperLimit );
13811381 });
1382- m_talonConfig .SoftwareLimitSwitch .withReverseSoftLimitThreshold ( lowerLimit )
1383- .withReverseSoftLimitEnable ( true );
1382+ m_talonConfig .SoftwareLimitSwitch .withReverseSoftLimitEnable ( true )
1383+ .withReverseSoftLimitThreshold ( lowerLimit );
13841384 forceConfigApply ();
13851385 }
13861386
You can’t perform that action at this time.
0 commit comments