[wpilib] Rename LinearSystemSim's ResetState() to SetState() (#2750)

This makes it more consistent with all other simulation classes,
including the differential drive simulation class.
This commit is contained in:
Tyler Veness
2020-09-27 15:26:50 -07:00
committed by GitHub
parent c3b3fb8b74
commit 693daafe29
4 changed files with 11 additions and 8 deletions

View File

@@ -121,7 +121,12 @@ public class LinearSystemSim<States extends Num, Inputs extends Num,
return m_y.get(row, 0);
}
public void resetState(Matrix<States, N1> state) {
/**
* Sets the system state.
*
* @param state The state.
*/
public void setState(Matrix<States, N1> state) {
m_x = state;
}