diff --git a/libraries/AP_NavEKF/AP_NavEKF_Source.cpp b/libraries/AP_NavEKF/AP_NavEKF_Source.cpp index 066a7c496a..909ee63c89 100644 --- a/libraries/AP_NavEKF/AP_NavEKF_Source.cpp +++ b/libraries/AP_NavEKF/AP_NavEKF_Source.cpp @@ -52,7 +52,7 @@ const AP_Param::GroupInfo AP_NavEKF_Source::var_info[] = { // @Param: 1_YAW // @DisplayName: Yaw Source // @Description: Yaw Source - // @Values: 0:None, 1:Compass, 2:External, 3:External with Compass Fallback, 6:ExternalNav, 8:GSF + // @Values: 0:None, 1:Compass, 2:GPS, 3:GPS with Compass Fallback, 6:ExternalNav, 8:GSF // @User: Advanced AP_GROUPINFO("1_YAW", 5, AP_NavEKF_Source, _source_set[0].yaw, (int8_t)AP_NavEKF_Source::SourceYaw::COMPASS), @@ -88,7 +88,7 @@ const AP_Param::GroupInfo AP_NavEKF_Source::var_info[] = { // @Param: 2_YAW // @DisplayName: Yaw Source (Secondary) // @Description: Yaw Source (Secondary) - // @Values: 0:None, 1:Compass, 2:External, 3:External with Compass Fallback, 6:ExternalNav, 8:GSF + // @Values: 0:None, 1:Compass, 2:GPS, 3:GPS with Compass Fallback, 6:ExternalNav, 8:GSF // @User: Advanced AP_GROUPINFO("2_YAW", 10, AP_NavEKF_Source, _source_set[1].yaw, (int8_t)AP_NavEKF_Source::SourceYaw::NONE), #endif @@ -125,7 +125,7 @@ const AP_Param::GroupInfo AP_NavEKF_Source::var_info[] = { // @Param: 3_YAW // @DisplayName: Yaw Source (Tertiary) // @Description: Yaw Source (Tertiary) - // @Values: 0:None, 1:Compass, 2:External, 3:External with Compass Fallback, 6:ExternalNav, 8:GSF + // @Values: 0:None, 1:Compass, 2:GPS, 3:GPS with Compass Fallback, 6:ExternalNav, 8:GSF // @User: Advanced AP_GROUPINFO("3_YAW", 15, AP_NavEKF_Source, _source_set[2].yaw, (int8_t)AP_NavEKF_Source::SourceYaw::NONE), #endif @@ -404,13 +404,13 @@ bool AP_NavEKF_Source::pre_arm_check(char *failure_msg, uint8_t failure_msg_len) // check yaw switch ((SourceYaw)_source_set[i].yaw.get()) { case SourceYaw::NONE: - case SourceYaw::EXTERNAL: + case SourceYaw::GPS: // valid yaw value break; case SourceYaw::COMPASS: // skip compass check for easier user setup of compass-less operation break; - case SourceYaw::EXTERNAL_COMPASS_FALLBACK: + case SourceYaw::GPS_COMPASS_FALLBACK: compass_required = true; break; case SourceYaw::EXTNAV: @@ -514,14 +514,14 @@ bool AP_NavEKF_Source::wheel_encoder_enabled(void) const return false; } -// return true if ext yaw is enabled on any source -bool AP_NavEKF_Source::ext_yaw_enabled(void) const +// return true if GPS yaw is enabled on any source +bool AP_NavEKF_Source::gps_yaw_enabled(void) const { for (uint8_t i=0; i