Skip to content
Snippets Groups Projects
Commit e4f5710e authored by CarlOlsson's avatar CarlOlsson Committed by Lorenz Meier
Browse files

added logic for beta fusion

parent f00f6e6e
No related branches found
No related tags found
No related merge requests found
......@@ -628,6 +628,10 @@ void Ekf2::task_main()
_ekf.setAirspeedData(airspeed.timestamp, &airspeed.true_airspeed_m_s, &eas2tas);
}
// only fuse synthetic sideslip measurements if conditions are met
bool fuse_beta = !vehicle_status.is_rotary_wing && _fuseBeta.get();
_ekf.set_fuse_beta_flag(fuse_beta);
if (optical_flow_updated) {
flow_message flow;
flow.flowdata(0) = optical_flow.pixel_flow_x_integral;
......
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