commit | 57fe4d6496ea8a667b00a82bf191578c66b61a56 | [log] [tgz] |
---|---|---|
author | Daniel Petti <djpetti@me.com> | Thu Aug 21 00:05:52 2014 -0700 |
committer | Daniel Petti <djpetti@me.com> | Sat Oct 25 20:05:49 2014 -0700 |
tree | 238a574b98db060dd1cd36578f6611ef45565491 | |
parent | d1a70f695cc36243d575523306de70c1e56033d3 [diff] |
initialize everything in the shooter Change-Id: I7779b4952d27106ed4ac35e6c33166ab82afa5ce
diff --git a/frc971/control_loops/shooter/shooter.h b/frc971/control_loops/shooter/shooter.h index 2cb688f..370f9e5 100755 --- a/frc971/control_loops/shooter/shooter.h +++ b/frc971/control_loops/shooter/shooter.h
@@ -76,6 +76,8 @@ double goal_velocity() const { return R(1, 0); } void InitializeState(double position) { mutable_X_hat(0, 0) = position - kPositionOffset; + mutable_X_hat(1, 0) = 0.0; + mutable_X_hat(2, 0) = 0.0; } void SetGoalPosition(double desired_position, double desired_velocity) {