|
|
|
@ -594,7 +594,6 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
@@ -594,7 +594,6 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
|
|
|
|
|
if (this->base_mode != state.base_mode || this->custom_mode != state.custom_mode) |
|
|
|
|
{ |
|
|
|
|
modechanged = true; |
|
|
|
|
receivedMode = true; |
|
|
|
|
this->base_mode = state.base_mode; |
|
|
|
|
this->custom_mode = state.custom_mode; |
|
|
|
|
shortModeText = getShortModeTextFor(this->base_mode, this->custom_mode, this->autopilot); |
|
|
|
@ -604,6 +603,9 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
@@ -604,6 +603,9 @@ void UAS::receiveMessage(LinkInterface* link, mavlink_message_t message)
|
|
|
|
|
modeAudio = " is now in " + audiomodeText; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// We got the mode
|
|
|
|
|
receivedMode = true; |
|
|
|
|
|
|
|
|
|
// AUDIO
|
|
|
|
|
if (modechanged && statechanged) |
|
|
|
|
{ |
|
|
|
|