mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
[fix]reducing length of Geofence vilations to prevent STATUSTEXT message length overrun (#24719)
This commit is contained in:
parent
8e89906b9a
commit
94bbd2d69a
@ -61,7 +61,7 @@ void GeofenceChecks::checkAndReport(const Context &context, Report &reporter)
|
||||
events::Log::Error, "Geofence violation: exceeding maximum distance to Home");
|
||||
|
||||
if (reporter.mavlink_log_pub()) {
|
||||
mavlink_log_critical(reporter.mavlink_log_pub(), "Geofence violation: exceeding maximum distance to Home");
|
||||
mavlink_log_critical(reporter.mavlink_log_pub(), "Geofence: exceeding maximum distance to Home");
|
||||
}
|
||||
}
|
||||
|
||||
@ -77,7 +77,7 @@ void GeofenceChecks::checkAndReport(const Context &context, Report &reporter)
|
||||
events::Log::Error, "Geofence violation: exceeding maximum altitude above Home");
|
||||
|
||||
if (reporter.mavlink_log_pub()) {
|
||||
mavlink_log_critical(reporter.mavlink_log_pub(), "Geofence violation: exceeding maximum altitude above Home");
|
||||
mavlink_log_critical(reporter.mavlink_log_pub(), "Geofence: exceeding maximum altitude above Home");
|
||||
}
|
||||
}
|
||||
|
||||
@ -93,7 +93,7 @@ void GeofenceChecks::checkAndReport(const Context &context, Report &reporter)
|
||||
events::Log::Error, "Geofence violation: approaching or outside geofence");
|
||||
|
||||
if (reporter.mavlink_log_pub()) {
|
||||
mavlink_log_critical(reporter.mavlink_log_pub(), "Geofence violation: approaching or outside geofence");
|
||||
mavlink_log_critical(reporter.mavlink_log_pub(), "Geofence: approaching or outside geofence");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user