mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
PIDController: setContinuous should only check input range if continuous is true (#896)
This commit is contained in:
committed by
Peter Johnson
parent
48ae6c954a
commit
738a1c015c
@@ -556,7 +556,7 @@ public class PIDController extends SendableBase implements PIDInterface, Sendabl
|
||||
* @param continuous Set to true turns on continuous, false turns off continuous
|
||||
*/
|
||||
public void setContinuous(boolean continuous) {
|
||||
if (m_inputRange <= 0) {
|
||||
if (continuous && m_inputRange <= 0) {
|
||||
throw new RuntimeException("No input range set when calling setContinuous().");
|
||||
}
|
||||
m_thisMutex.lock();
|
||||
|
||||
Reference in New Issue
Block a user