Skip to content

Commit 7f762d1

Browse files
Removed safety constraint on NEOs (#116)
Signed-off-by: thenetworkgrinch <thenetworkgrinch@users.noreply.github.com> Co-authored-by: thenetworkgrinch <thenetworkgrinch@users.noreply.github.com>
1 parent acc45c6 commit 7f762d1

1 file changed

Lines changed: 0 additions & 16 deletions

File tree

yams/java/yams/motorcontrollers/SmartMotorController.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -192,22 +192,6 @@ public void checkConfigSafety()
192192
}
193193

194194
}
195-
if (isMotor(getDCMotor(), DCMotor.getNEO(1)))
196-
{
197-
if (m_config.getStatorStallCurrentLimit().isEmpty())
198-
{
199-
throw new SmartMotorControllerConfigurationException("Stator current limit is not defined for NEO!",
200-
"Safety check failed.",
201-
"withStatorCurrentLimit(Current)");
202-
} else if (m_config.getStatorStallCurrentLimit().getAsInt() > 60)
203-
{
204-
throw new SmartMotorControllerConfigurationException("Stator current limit is too high for NEO!",
205-
"Safety check failed.",
206-
"withStatorCurrentLimit(Current) where the Current is under 60A");
207-
208-
}
209-
210-
}
211195
}
212196

213197
/**

0 commit comments

Comments
 (0)