Skip to content

Commit

Permalink
updated accessors for encoders
Browse files Browse the repository at this point in the history
  • Loading branch information
ktvuwhs committed Jan 12, 2025
1 parent ebd964c commit 521d000
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 521d000

Please sign in to comment.