[wpilib] Rename SysIdRoutineLog constants to all caps

This commit is contained in:
Peter Johnson
2026-03-17 16:39:10 -07:00
parent 8fa6976cb2
commit 6559d78658
9 changed files with 54 additions and 54 deletions

View File

@@ -53,15 +53,15 @@ void SysIdRoutineLog::RecordState(State state) {
std::string SysIdRoutineLog::StateEnumToString(State state) {
switch (state) {
case State::kQuasistaticForward:
case State::QUASISTATIC_FORWARD:
return "quasistatic-forward";
case State::kQuasistaticReverse:
case State::QUASISTATIC_REVERSE:
return "quasistatic-reverse";
case State::kDynamicForward:
case State::DYNAMIC_FORWARD:
return "dynamic-forward";
case State::kDynamicReverse:
case State::DYNAMIC_REVERSE:
return "dynamic-reverse";
case State::kNone:
case State::NONE:
return "none";
default:
return "none";

View File

@@ -24,15 +24,15 @@ namespace wpi::sysid {
*/
enum class State {
/// Quasistatic forward test.
kQuasistaticForward,
QUASISTATIC_FORWARD,
/// Quasistatic reverse test.
kQuasistaticReverse,
QUASISTATIC_REVERSE,
/// Dynamic forward test.
kDynamicForward,
DYNAMIC_FORWARD,
/// Dynamic reverse test.
kDynamicReverse,
DYNAMIC_REVERSE,
/// No test.
kNone
NONE
};
/**