mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 06:51:36 +08:00
EKF: print to console when starting EV fusion
This commit is contained in:
@@ -62,6 +62,7 @@ void Ekf::controlFusionModes()
|
|||||||
if (_time_last_imu - _time_last_ext_vision < 2 * EV_MAX_INTERVAL) {
|
if (_time_last_imu - _time_last_ext_vision < 2 * EV_MAX_INTERVAL) {
|
||||||
// turn on use of external vision measurements for position and height
|
// turn on use of external vision measurements for position and height
|
||||||
_control_status.flags.ev_pos = true;
|
_control_status.flags.ev_pos = true;
|
||||||
|
printf("EKF switching to external vision position fusion");
|
||||||
// turn off other forms of height aiding
|
// turn off other forms of height aiding
|
||||||
_control_status.flags.baro_hgt = false;
|
_control_status.flags.baro_hgt = false;
|
||||||
_control_status.flags.gps_hgt = false;
|
_control_status.flags.gps_hgt = false;
|
||||||
@@ -97,6 +98,7 @@ void Ekf::controlFusionModes()
|
|||||||
|
|
||||||
// turn on fusion of external vision yaw measurements
|
// turn on fusion of external vision yaw measurements
|
||||||
_control_status.flags.ev_yaw = true;
|
_control_status.flags.ev_yaw = true;
|
||||||
|
printf("EKF switching to external vision yaw fusion");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user