diff --git a/src/shared/algorithms/AirBrakes/TrajectoryPoint.h b/src/shared/algorithms/AirBrakes/TrajectoryPoint.h index 18e880d67efeddd34fc3456228392b6f184da7b7..da4adfb069e08f6d50691a1fd3e148f251ac3da1 100644 --- a/src/shared/algorithms/AirBrakes/TrajectoryPoint.h +++ b/src/shared/algorithms/AirBrakes/TrajectoryPoint.h @@ -78,7 +78,7 @@ public: TimedTrajectoryPoint() : TrajectoryPoint(), timestamp(0), vMod(0) {} explicit TimedTrajectoryPoint(NASState state) - : TrajectoryPoint(-state.d, -state.vn), timestamp(state.timestamp), + : TrajectoryPoint(-state.d, -state.vd), timestamp(state.timestamp), vMod(Eigen::Vector3f{state.vn, state.ve, state.vd}.norm()) { }