Skip to content

Commit

Permalink
getEncoderSim returns RelativeEncoder to match actual REVLib return v…
Browse files Browse the repository at this point in the history
…alue
  • Loading branch information
ktvuwhs committed Jan 12, 2025
1 parent 806e51f commit 88ae2f4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import com.autodesk.synthesis.CANEncoder;
import com.autodesk.synthesis.CANMotor;
import com.revrobotics.RelativeEncoder;
import com.revrobotics.REVLibError;
import com.revrobotics.spark.config.SparkBaseConfig;
import com.revrobotics.spark.config.SparkBaseConfig.IdleMode;
Expand Down Expand Up @@ -105,7 +106,7 @@ public com.autodesk.synthesis.revrobotics.spark.SparkAbsoluteEncoder getAbsolute
return new com.autodesk.synthesis.revrobotics.spark.SparkAbsoluteEncoder(super.getAbsoluteEncoder(), this.m_encoder, this.configAccessor.absoluteEncoder);
}

public com.autodesk.synthesis.revrobotics.spark.SparkRelativeEncoder getEncoderSim() {
public RelativeEncoder getEncoderSim() {
return new com.autodesk.synthesis.revrobotics.spark.SparkRelativeEncoder(super.getEncoder(), this.m_encoder, this.configAccessor.encoder);
}

Expand Down

0 comments on commit 88ae2f4

Please sign in to comment.