EKF: Add feature to use the mag to only update the mag states

This commit is contained in:
CarlOlsson
2017-05-26 11:29:21 +02:00
parent 05c3c46f83
commit be16406b35
4 changed files with 114 additions and 71 deletions
+3
View File
@@ -184,6 +184,9 @@ public:
// set flag if synthetic sideslip measurement should be fused
void set_fuse_beta_flag(bool fuse_beta) {_control_status.flags.fuse_beta = fuse_beta;}
// set flag if only only mag states should be updated by the magnetometer
void set_update_mag_states_only_flag(bool update_mag_states_only) {_control_status.flags.update_mag_states_only = update_mag_states_only;}
// set air density used by the multi-rotor specific drag force fusion
void set_air_density(float air_density) {_air_density = air_density;}