[wpilib] Add link to MotorSafety article (#4720)

This commit is contained in:
Starlight220
2022-11-28 02:23:06 +02:00
committed by GitHub
parent f40de0c120
commit e4ac09077c
2 changed files with 7 additions and 2 deletions

View File

@@ -159,7 +159,9 @@ void MotorSafety::Check() {
}
if (stopTime < Timer::GetFPGATimestamp()) {
FRC_ReportError(err::Timeout, "{}... Output not updated often enough",
FRC_ReportError(err::Timeout,
"{}... Output not updated often enough. See "
"https://docs.wpilib.org/motorsafety for more information.",
GetDescription());
try {

View File

@@ -96,7 +96,10 @@ public abstract class MotorSafety {
}
if (stopTime < Timer.getFPGATimestamp()) {
DriverStation.reportError(getDescription() + "... Output not updated often enough.", false);
DriverStation.reportError(
getDescription()
+ "... Output not updated often enough. See https://docs.wpilib.org/motorsafety for more information.",
false);
stopMotor();
}