mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-30 11:50:34 +08:00
stop manually defining physical constants
This commit is contained in:
committed by
Lorenz Meier
parent
7538ea44e3
commit
d75fd72c02
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user