|
|
|
@ -266,7 +266,7 @@ void NavEKF2_core::setAidingMode()
@@ -266,7 +266,7 @@ void NavEKF2_core::setAidingMode()
|
|
|
|
|
switch (PV_AidingMode) { |
|
|
|
|
case AID_NONE: |
|
|
|
|
// We have ceased aiding
|
|
|
|
|
gcs().send_text(MAV_SEVERITY_WARNING, "EKF2 IMU%u 停止协助",(unsigned)imu_index);//EKF2 IMU%u has stopped aiding
|
|
|
|
|
gcs().send_text(MAV_SEVERITY_WARNING, "EKF2 IMU%u 停止定位",(unsigned)imu_index);//EKF2 IMU%u has stopped aiding
|
|
|
|
|
// When not aiding, estimate orientation & height fusing synthetic constant position and zero velocity measurement to constrain tilt errors
|
|
|
|
|
posTimeout = true; |
|
|
|
|
velTimeout = true;
|
|
|
|
@ -285,7 +285,8 @@ void NavEKF2_core::setAidingMode()
@@ -285,7 +285,8 @@ void NavEKF2_core::setAidingMode()
|
|
|
|
|
|
|
|
|
|
case AID_RELATIVE: |
|
|
|
|
// We have commenced aiding, but GPS usage has been prohibited so use optical flow only
|
|
|
|
|
gcs().send_text(MAV_SEVERITY_INFO, "EKF2 IMU%u is using optical flow",(unsigned)imu_index); |
|
|
|
|
// gcs().send_text(MAV_SEVERITY_INFO, "NOTICE:光流定位成功",(unsigned)imu_index); // EKF2 IMU%u is using optical flow
|
|
|
|
|
gcs().send_text(MAV_SEVERITY_INFO, "NOTICE:光流定位成功"); // EKF2 IMU%u is using optical flow
|
|
|
|
|
posTimeout = true; |
|
|
|
|
velTimeout = true; |
|
|
|
|
// Reset the last valid flow measurement time
|
|
|
|
@ -300,7 +301,8 @@ void NavEKF2_core::setAidingMode()
@@ -300,7 +301,8 @@ void NavEKF2_core::setAidingMode()
|
|
|
|
|
bool canUseExtNav = readyToUseExtNav(); |
|
|
|
|
// We have commenced aiding and GPS usage is allowed
|
|
|
|
|
if (canUseGPS) { |
|
|
|
|
gcs().send_text(MAV_SEVERITY_INFO, "EKF2 IMU%u is using GPS",(unsigned)imu_index); |
|
|
|
|
// gcs().send_text(MAV_SEVERITY_INFO, "NOTICE:GPS定位成功",(unsigned)imu_index); // EKF2 IMU%u is using GPS
|
|
|
|
|
gcs().send_text(MAV_SEVERITY_INFO, "NOTICE:GPS定位成功"); // EKF2 IMU%u is using GPS
|
|
|
|
|
} |
|
|
|
|
posTimeout = false; |
|
|
|
|
velTimeout = false; |
|
|
|
|