Class SettingsCheck
java.lang.Object
frc.spectrumLib.checks.SettingsCheck
- All Implemented Interfaces:
Check
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(Supplier<String> changed, CheckResult.Status status) Adds a setting.evaluate(double now) Judges the robot now.Sets a line shown when everything is at its default, e.g.
-
Constructor Details
-
SettingsCheck
public SettingsCheck()
-
-
Method Details
-
add
Adds a setting.- Parameters:
changed- what is not at its default, as a short phrase (e.g."Orin practice profile ON"), or null when it is at its defaultstatus- how bad a change is
-
info
Sets a line shown when everything is at its default, e.g. which field layout is loaded.- Parameters:
info- the line
-
evaluate
Description copied from interface:CheckJudges the robot now. Called only while disabled, and not every loop:PreMatchChecksspreads the checks across loops.
-