@@ -394,7 +394,7 @@ void Navigation::UpdateNavigation()
394394 // Update state estimates with available measurements
395395
396396 // Debug pseudo-measurement: softly anchor horizontal position to launch-frame origin.
397- debugZeroXYPositionUpdate ();
397+ // debugZeroXYPositionUpdate();
398398
399399 // Update magnetometer on fixed cadence
400400 ++magnetometer_update_counter;
@@ -548,15 +548,15 @@ void Navigation::gpsVelocityUpdate(const Eigen::Vector2d &gpsVelocity)
548548
549549void Navigation::debugZeroXYPositionUpdate ()
550550{
551- Eigen::MatrixXd H = Eigen::MatrixXd::Zero (3 , 15 );
552- H.block <3 , 3 >(0 , 0 ) = Eigen::Matrix3d ::Identity ();
551+ Eigen::MatrixXd H = Eigen::MatrixXd::Zero (2 , 15 );
552+ H.block <2 , 2 >(0 , 0 ) = Eigen::Matrix2d ::Identity ();
553553
554- Eigen::VectorXd y = Eigen::VectorXd::Zero (3 );
555- Eigen::VectorXd y_pred = Eigen::VectorXd::Zero (3 );
556- y_pred << x_e (0 ), x_e (1 ), x_e ( 2 ) ;
554+ Eigen::VectorXd y = Eigen::VectorXd::Zero (2 );
555+ Eigen::VectorXd y_pred = Eigen::VectorXd::Zero (2 );
556+ y_pred << x_e (0 ), x_e (1 );
557557
558558 const double variance = MissionConstants::kNavDebugXYZeroPositionVariance ;
559- Eigen::MatrixXd V = variance * Eigen::Matrix3d ::Identity ();
559+ Eigen::MatrixXd V = variance * Eigen::Matrix2d ::Identity ();
560560
561561 kalmanUpdate (H, V, y, y_pred);
562562}
0 commit comments