Skip to content

Commit

Permalink
Re-add setSelectedSensorPosition()
Browse files Browse the repository at this point in the history
  • Loading branch information
edelmanjm committed Jan 8, 2019
1 parent aa1ba97 commit dfb3df6
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/main/java/org/team1540/rooster/wrappers/ChickenController.java
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,23 @@ ErrorCode configReverseLimitSwitchSource(RemoteLimitSwitchSource type,
*/
ErrorCode setIntegralAccumulator(double iaccum);

/**
* Sets the sensor position to the given value.
*
* @param sensorPos Position to set for the selected sensor (in Raw Sensor Units).
* @param pidIdx The PID IDX to use.
* @return Error Code generated by function. 0 indicates no error.
*/
ErrorCode setSelectedSensorPosition(int sensorPos, int pidIdx);

/**
* Sets the sensor position to the given value.
*
* @param sensorPos Position to set for the selected sensor (in Raw Sensor Units).
* @return Error Code generated by function. 0 indicates no error.
*/
ErrorCode setSelectedSensorPosition(int sensorPos);

/**
* Sets the period of the given status frame.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ public ErrorCode setIntegralAccumulator(double iaccum) {
return super.setIntegralAccumulator(iaccum, defaultPidIdx, defaultTimeoutMs);
}

@Override
public ErrorCode setSelectedSensorPosition(int sensorPos, int pidIdx) {
return super.setSelectedSensorPosition(sensorPos, pidIdx, defaultTimeoutMs);
}
Expand Down

0 comments on commit dfb3df6

Please sign in to comment.