forked from Archive/PX4-Autopilot
added getter function for wind states
This commit is contained in:
parent
73b8ac954d
commit
168d9add76
|
@ -202,3 +202,9 @@ void Ekf::fuseAirspeed()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Ekf::get_wind_velocity(float *wind)
|
||||||
|
{
|
||||||
|
wind[0] = _state.wind_vel(0);
|
||||||
|
wind[1] = _state.wind_vel(1);
|
||||||
|
}
|
||||||
|
|
|
@ -97,6 +97,9 @@ public:
|
||||||
// get the state vector at the delayed time horizon
|
// get the state vector at the delayed time horizon
|
||||||
void get_state_delayed(float *state);
|
void get_state_delayed(float *state);
|
||||||
|
|
||||||
|
// get the wind velocity in m/s
|
||||||
|
void get_wind_velocity(float *wind);
|
||||||
|
|
||||||
// get the diagonal elements of the covariance matrix
|
// get the diagonal elements of the covariance matrix
|
||||||
void get_covariances(float *covariances);
|
void get_covariances(float *covariances);
|
||||||
|
|
||||||
|
|
|
@ -84,6 +84,8 @@ public:
|
||||||
|
|
||||||
virtual void get_state_delayed(float *state) = 0;
|
virtual void get_state_delayed(float *state) = 0;
|
||||||
|
|
||||||
|
virtual void get_wind_velocity(float *wind) = 0;
|
||||||
|
|
||||||
virtual void get_covariances(float *covariances) = 0;
|
virtual void get_covariances(float *covariances) = 0;
|
||||||
|
|
||||||
// get the ekf WGS-84 origin position and height and the system time it was last set
|
// get the ekf WGS-84 origin position and height and the system time it was last set
|
||||||
|
|
Loading…
Reference in New Issue