fix(gnss): say GPS in the new pilot-facing messages

Pilots know "GPS"; only the code and parameters underneath move to GNSS. The position-lost reasons, the primary-offline warning and the receiver switch event now say GPS like the rest of the ground station text.

Assisted-by: Claude:claude-opus-5-5
This commit is contained in:
Jacob Dahl authored and Jacob Dahl committed 2026-11-19 09:28:25 -09:00
1 parent eef80e7fee
commit 81f33bb01f
3 files changed
+6 -6

No files matched your search

@@ -769,7 +769,7 @@ void EstimatorChecks::reportGnssReasonForPositionLoss(const Context &context, Re
* The receiver had stopped delivering samples when the local position estimate became invalid.
*/
events::send<uint8_t>(events::ID("check_estimator_position_lost_gnss_no_data"), events::Log::Error,
"Local position lost, no data from GNSS {1}", receiver);
"Local position lost, no data from GPS {1}", receiver);
} else if (state == estimator_status_flags_s::GNSS_FUSION_UNUSABLE) {
uint16_t failed_checks = 0;
@@ -790,7 +790,7 @@ void EstimatorChecks::reportGnssReasonForPositionLoss(const Context &context, Re
* </profile>
*/
events::send<uint8_t, events::px4::enums::gnss_check_fail_t>(events::ID("check_estimator_position_lost_gnss_reason"),
events::Log::Error, "Local position lost, GNSS {1} check failed: {2}", receiver,
events::Log::Error, "Local position lost, GPS {1} check failed: {2}", receiver,
static_cast<events::px4::enums::gnss_check_fail_t>(failed_checks));
} else if (rejected) {
@@ -800,7 +800,7 @@ void EstimatorChecks::reportGnssReasonForPositionLoss(const Context &context, Re
* reset to them while another source constrained the position.
*/
events::send<uint8_t>(events::ID("check_estimator_position_lost_gnss_rejected"), events::Log::Error,
"Local position lost, GNSS {1} rejected by the estimator", receiver);
"Local position lost, GPS {1} rejected by the estimator", receiver);
} else if (state == estimator_status_flags_s::GNSS_FUSION_VEL_LIMIT) {
/* EVENT
@@ -810,7 +810,7 @@ void EstimatorChecks::reportGnssReasonForPositionLoss(const Context &context, Re
* </profile>
*/
events::send<uint8_t>(events::ID("check_estimator_position_lost_gnss_vel_limit"), events::Log::Error,
"Local position lost, GNSS {1} velocity above the limit", receiver);
"Local position lost, GPS {1} velocity above the limit", receiver);
}
}
@@ -195,6 +195,6 @@ void GnssRedundancyChecks::checkAndReport(const Context &context, Report &report
* </profile>
*/
reporter.armingCheckFailure(NavModes::None, health_component_t::gps, events::ID("check_gnss_primary_offline"),
events::Log::Warning, "Primary GNSS receiver offline");
events::Log::Warning, "Primary GPS offline");
}
}
@@ -558,7 +558,7 @@ void VehicleGPSPosition::reportSwitch(int previous, int selected, uint8_t reason
*/
events::send<uint8_t, events::px4::enums::gnss_selection_reason_t, uint8_t>(events::ID("gnss_receiver_switched"),
{failure ? events::Log::Warning : events::Log::Info, events::LogInternal::Info},
"Switched from GNSS {3} to GNSS {1}: {2}", static_cast<uint8_t>(selected),
"Switched from GPS {3} to GPS {1}: {2}", static_cast<uint8_t>(selected),
static_cast<events::px4::enums::gnss_selection_reason_t>(reason), static_cast<uint8_t>(previous));
}