File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -830,7 +830,7 @@ public void updateTelemetry()
830
830
{
831
831
if (absoluteEncoder != null )
832
832
{
833
- rawAbsoluteAnglePublisher .set (absolutePositionCache . getValue ());
833
+ rawAbsoluteAnglePublisher .set (absoluteEncoder . getAbsolutePosition ());
834
834
}
835
835
if (SwerveDriveTelemetry .isSimulation && SwerveDriveTelemetry .verbosity == TelemetryVerbosity .HIGH )
836
836
{
Original file line number Diff line number Diff line change @@ -345,10 +345,12 @@ public void configureIntegratedEncoder(double positionConversionFactor)
345
345
cfg .closedLoop .feedbackSensor (FeedbackSensor .kAnalogSensor );
346
346
347
347
cfg .signals
348
+ .analogVelocityAlwaysOn (true )
348
349
.analogVoltageAlwaysOn (true )
349
350
.analogPositionAlwaysOn (true )
350
351
.analogVoltagePeriodMs (20 )
351
- .analogPositionPeriodMs (20 );
352
+ .analogPositionPeriodMs (20 )
353
+ .analogVelocityPeriodMs (20 );
352
354
353
355
cfg .analogSensor
354
356
.positionConversionFactor (positionConversionFactor )
You can’t perform that action at this time.
0 commit comments