mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-01 03:51:35 +08:00
implemented use of optical flow for terrain estimation
Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
@@ -315,6 +315,7 @@ private:
|
||||
bool _flow_data_ready{false}; ///< true when the leading edge of the optical flow integration period has fallen behind the fusion time horizon
|
||||
bool _ev_data_ready{false}; ///< true when new external vision system data has fallen behind the fusion time horizon and is available to be fused
|
||||
bool _tas_data_ready{false}; ///< true when new true airspeed data has fallen behind the fusion time horizon and is available to be fused
|
||||
bool _flow_for_terrain_data_ready{false}; /// same flag as "_flow_data_ready" but used for separate terrain estimator
|
||||
|
||||
uint64_t _time_last_fake_gps{0}; ///< last time we faked GPS position measurements to constrain tilt errors during operation without external aiding (uSec)
|
||||
uint64_t _time_ins_deadreckon_start{0}; ///< amount of time we have been doing inertial only deadreckoning (uSec)
|
||||
@@ -544,6 +545,9 @@ private:
|
||||
// update the terrain vertical position estimate using a height above ground measurement from the range finder
|
||||
void fuseHagl();
|
||||
|
||||
// update the terrain vertical position estimate using an optical flow measurement
|
||||
void fuseFlowForTerrain();
|
||||
|
||||
// reset the heading and magnetic field states using the declination and magnetometer/external vision measurements
|
||||
// return true if successful
|
||||
bool resetMagHeading(Vector3f &mag_init, bool increase_yaw_var = true, bool update_buffer=true);
|
||||
|
||||
Reference in New Issue
Block a user