mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +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:
@@ -99,13 +99,11 @@ class LinearSystemSim {
|
||||
void SetInput(const Eigen::Matrix<double, Inputs, 1>& u) { m_u = u; }
|
||||
|
||||
/**
|
||||
* Resets the system state.
|
||||
* Sets the system state.
|
||||
*
|
||||
* @param state The state to reset to.
|
||||
* @param state The state.
|
||||
*/
|
||||
void ResetState(const Eigen::Matrix<double, States, 1>& state) {
|
||||
m_x = state;
|
||||
}
|
||||
void SetState(const Eigen::Matrix<double, States, 1>& state) { m_x = state; }
|
||||
|
||||
protected:
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user