diff --git a/simulation/SyntheSimJava/src/main/java/com/autodesk/synthesis/revrobotics/spark/SparkMax.java b/simulation/SyntheSimJava/src/main/java/com/autodesk/synthesis/revrobotics/spark/SparkMax.java index 0babed9bf..ad801e5f7 100644 --- a/simulation/SyntheSimJava/src/main/java/com/autodesk/synthesis/revrobotics/spark/SparkMax.java +++ b/simulation/SyntheSimJava/src/main/java/com/autodesk/synthesis/revrobotics/spark/SparkMax.java @@ -104,11 +104,11 @@ void setNeutralDeadband(double n) { * @return The simulation-supported SparkAbsoluteEncoder. */ public com.autodesk.synthesis.revrobotics.SparkAbsoluteEncoder getAbsoluteEncoderSim() { - return new SparkAbsoluteEncoder(super.getAbsoluteEncoder(), this.m_encoder); + return new SparkAbsoluteEncoder(super.getAbsoluteEncoder(), this.m_encoder, this.configAccessor.absoluteEncoder); } public com.autodesk.synthesis.revrobotics.RelativeEncoder getEncoderSim() { - return new RelativeEncoder(super.getEncoder(), this.m_encoder, this.configAccessor); + return new RelativeEncoder(super.getEncoder(), this.m_encoder, this.configAccessor.encoder); } public class FollowerInfo {