Skip to content

Commit

Permalink
added logic for beta fusion
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlOlsson authored and LorenzMeier committed Nov 15, 2016
1 parent f00f6e6 commit e4f5710
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/modules/ekf2/ekf2_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e4f5710

Please sign in to comment.