Skip to content
Snippets Groups Projects
Commit b3841e5e authored by Emmanuel Roussel's avatar Emmanuel Roussel Committed by Roman
Browse files

ran astyle

parent ec427f61
No related branches found
No related tags found
No related merge requests found
......@@ -128,8 +128,8 @@ bool MulticopterLandDetector::get_freefall_state()
const uint64_t now = hrt_absolute_time();
float acc_norm = _ctrl_state.x_acc * _ctrl_state.x_acc
+ _ctrl_state.y_acc * _ctrl_state.y_acc
+ _ctrl_state.z_acc * _ctrl_state.z_acc;
+ _ctrl_state.y_acc * _ctrl_state.y_acc
+ _ctrl_state.z_acc * _ctrl_state.z_acc;
acc_norm = sqrtf(acc_norm); //norm of specific force. Should be close to 9.8 m/s^2 when landed.
bool freefall = (acc_norm < _params.acc_threshold_m_s2); //true if we are currently falling
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment