mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
[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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user