mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-02 20:51:35 +08:00
flight termination mavlink outtput: limit rate
This commit is contained in:
@@ -1684,9 +1684,12 @@ int commander_thread_main(int argc, char *argv[])
|
|||||||
static bool flight_termination_printed = false;
|
static bool flight_termination_printed = false;
|
||||||
if (!flight_termination_printed) {
|
if (!flight_termination_printed) {
|
||||||
warnx("Flight termination because of data link loss && gps failure");
|
warnx("Flight termination because of data link loss && gps failure");
|
||||||
|
mavlink_log_critical(mavlink_fd, "DL and GPS lost: flight termination");
|
||||||
flight_termination_printed = true;
|
flight_termination_printed = true;
|
||||||
}
|
}
|
||||||
mavlink_log_critical(mavlink_fd, "DL and GPS lost: flight termination");
|
if (counter % (1000000 / COMMANDER_MONITORING_INTERVAL) == 0 ) {
|
||||||
|
mavlink_log_critical(mavlink_fd, "DL and GPS lost: flight termination");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* At this point the rc signal and the gps system have been checked
|
/* At this point the rc signal and the gps system have been checked
|
||||||
@@ -1705,7 +1708,9 @@ int commander_thread_main(int argc, char *argv[])
|
|||||||
warnx("Flight termination because of RC signal loss && gps failure");
|
warnx("Flight termination because of RC signal loss && gps failure");
|
||||||
flight_termination_printed = true;
|
flight_termination_printed = true;
|
||||||
}
|
}
|
||||||
mavlink_log_critical(mavlink_fd, "RC and GPS lost: flight termination");
|
if (counter % (1000000 / COMMANDER_MONITORING_INTERVAL) == 0 ) {
|
||||||
|
mavlink_log_critical(mavlink_fd, "RC and GPS lost: flight termination");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user