stop manually defining physical constants

This commit is contained in:
Daniel Agar
2018-04-10 13:50:57 -04:00
committed by Lorenz Meier
parent 7538ea44e3
commit d75fd72c02
27 changed files with 66 additions and 84 deletions
@@ -775,7 +775,7 @@ void BlockLocalPositionEstimator::predict()
Vector3f a(_sub_sensor.get().accelerometer_m_s2);
// note, bias is removed in dynamics function
_u = _R_att * a;
_u(U_az) += 9.81f; // add g
_u(U_az) += CONSTANTS_ONE_G; // add g
// update state space based on new states
updateSSStates();