|
|
|
@ -849,6 +849,7 @@ GCS_MAVLINK::init(AP_HAL::UARTDriver* port)
@@ -849,6 +849,7 @@ GCS_MAVLINK::init(AP_HAL::UARTDriver* port)
|
|
|
|
|
chan = MAVLINK_COMM_1; |
|
|
|
|
} |
|
|
|
|
_queued_parameter = NULL; |
|
|
|
|
reset_cli_timeout(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void |
|
|
|
@ -867,7 +868,7 @@ GCS_MAVLINK::update(void)
@@ -867,7 +868,7 @@ GCS_MAVLINK::update(void)
|
|
|
|
|
#if CLI_ENABLED == ENABLED |
|
|
|
|
/* allow CLI to be started by hitting enter 3 times, if no |
|
|
|
|
* heartbeat packets have been received */ |
|
|
|
|
if (mavlink_active == false) { |
|
|
|
|
if (mavlink_active == 0 && (millis() - _cli_timeout) < 30000) { |
|
|
|
|
if (c == '\n' || c == '\r') { |
|
|
|
|
crlf_count++; |
|
|
|
|
} else { |
|
|
|
@ -2178,6 +2179,10 @@ GCS_MAVLINK::queued_waypoint_send()
@@ -2178,6 +2179,10 @@ GCS_MAVLINK::queued_waypoint_send()
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void GCS_MAVLINK::reset_cli_timeout() { |
|
|
|
|
_cli_timeout = millis(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
* a delay() callback that processes MAVLink packets. We set this as the |
|
|
|
|
* callback in long running library initialisation routines to allow |
|
|
|
|