mirror of https://github.com/ArduPilot/ardupilot
Plane: log GCS text messages to flash log
useful for seeing more complex actions
This commit is contained in:
parent
6cc9939891
commit
9f0a4dd553
|
@ -2140,6 +2140,7 @@ static void gcs_send_text_P(gcs_severity severity, const prog_char_t *str)
|
||||||
if (gcs3.initialised) {
|
if (gcs3.initialised) {
|
||||||
gcs3.send_text_P(severity, str);
|
gcs3.send_text_P(severity, str);
|
||||||
}
|
}
|
||||||
|
DataFlash.Log_Write_Message_P(str);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -2155,6 +2156,7 @@ void gcs_send_text_fmt(const prog_char_t *fmt, ...)
|
||||||
hal.util->vsnprintf_P((char *)gcs0.pending_status.text,
|
hal.util->vsnprintf_P((char *)gcs0.pending_status.text,
|
||||||
sizeof(gcs0.pending_status.text), fmt, arg_list);
|
sizeof(gcs0.pending_status.text), fmt, arg_list);
|
||||||
va_end(arg_list);
|
va_end(arg_list);
|
||||||
|
DataFlash.Log_Write_Message(gcs0.pending_status.text);
|
||||||
gcs3.pending_status = gcs0.pending_status;
|
gcs3.pending_status = gcs0.pending_status;
|
||||||
mavlink_send_message(MAVLINK_COMM_0, MSG_STATUSTEXT, 0);
|
mavlink_send_message(MAVLINK_COMM_0, MSG_STATUSTEXT, 0);
|
||||||
if (gcs3.initialised) {
|
if (gcs3.initialised) {
|
||||||
|
|
Loading…
Reference in New Issue