File tree 1 file changed +4
-0
lines changed
src/main/java/org/lasarobotics/hardware/revrobotics
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,7 @@ public static class SparkInputs {
122
122
private static final double SMOOTH_MOTION_DEBOUNCE_TIME = 0.1 ;
123
123
private static final String VALUE_LOG_ENTRY = "/OutputValue" ;
124
124
private static final String MODE_LOG_ENTRY = "/OutputMode" ;
125
+ private static final String IDLE_MODE_LOG_ENTRY = "/IdleMode" ;
125
126
private static final String CURRENT_LOG_ENTRY = "/Current" ;
126
127
private static final String TEMPERATURE_LOG_ENTRY = "/Temperature" ;
127
128
private static final String MOTION_LOG_ENTRY = "/SmoothMotion" ;
@@ -1075,6 +1076,9 @@ public REVLibError setIdleMode(IdleMode mode) {
1075
1076
() -> m_spark .getIdleMode () == mode ,
1076
1077
"Set idle mode failure!"
1077
1078
);
1079
+ // Log idle mode
1080
+ Logger .recordOutput (IDLE_MODE_LOG_ENTRY , m_spark .getIdleMode () == IdleMode .kCoast );
1081
+
1078
1082
return status ;
1079
1083
}
1080
1084
You can’t perform that action at this time.
0 commit comments