DataFlash: eliminate GCS_MAVLINK::send_statustext_all

This commit is contained in:
Peter Barker 2017-07-09 14:18:11 +10:00 committed by Francisco Ferreira
parent 33a974d7f5
commit f6a09d0657
2 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ const AP_Param::GroupInfo DataFlash_Class::var_info[] = {
void DataFlash_Class::Init(const struct LogStructure *structures, uint8_t num_types)
{
GCS_MAVLINK::send_statustext_all(MAV_SEVERITY_INFO, "Preparing log system");
gcs().send_text(MAV_SEVERITY_INFO, "Preparing log system");
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
validate_structures(structures, num_types);
dump_structures(structures, num_types);
@ -111,7 +111,7 @@ void DataFlash_Class::Init(const struct LogStructure *structures, uint8_t num_ty
EnableWrites(true);
GCS_MAVLINK::send_statustext_all(MAV_SEVERITY_INFO, "Prepared log system");
gcs().send_text(MAV_SEVERITY_INFO, "Prepared log system");
}
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL

View File

@ -187,7 +187,7 @@ void DataFlash_File::periodic_1Hz(const uint32_t now)
{
if (!io_thread_alive()) {
if (io_thread_warning_decimation_counter == 0) {
GCS_MAVLINK::send_statustext_all(MAV_SEVERITY_CRITICAL, "No IO Thread Heartbeat");
gcs().send_text(MAV_SEVERITY_CRITICAL, "No IO Thread Heartbeat");
}
if (io_thread_warning_decimation_counter++ > 57) {
io_thread_warning_decimation_counter = 0;