Browse Source

Copter: move MOUNT_STATUS lower in GCS_MAVLink

No functional change
master
Randy Mackay 10 years ago
parent
commit
c6e70179d2
  1. 12
      ArduCopter/GCS_Mavlink.pde

12
ArduCopter/GCS_Mavlink.pde

@ -628,6 +628,11 @@ bool GCS_MAVLINK::try_send_message(enum ap_message id)
#endif #endif
break; break;
case MSG_HWSTATUS:
CHECK_PAYLOAD_SIZE(HWSTATUS);
send_hwstatus(chan);
break;
case MSG_MOUNT_STATUS: case MSG_MOUNT_STATUS:
#if MOUNT == ENABLED #if MOUNT == ENABLED
CHECK_PAYLOAD_SIZE(MOUNT_STATUS); CHECK_PAYLOAD_SIZE(MOUNT_STATUS);
@ -635,11 +640,6 @@ bool GCS_MAVLINK::try_send_message(enum ap_message id)
#endif // MOUNT == ENABLED #endif // MOUNT == ENABLED
break; break;
case MSG_HWSTATUS:
CHECK_PAYLOAD_SIZE(HWSTATUS);
send_hwstatus(chan);
break;
case MSG_FENCE_STATUS: case MSG_FENCE_STATUS:
case MSG_WIND: case MSG_WIND:
// unused // unused
@ -862,10 +862,10 @@ GCS_MAVLINK::data_stream_send(void)
send_message(MSG_HWSTATUS); send_message(MSG_HWSTATUS);
send_message(MSG_SYSTEM_TIME); send_message(MSG_SYSTEM_TIME);
send_message(MSG_RANGEFINDER); send_message(MSG_RANGEFINDER);
send_message(MSG_MOUNT_STATUS);
#if AP_TERRAIN_AVAILABLE #if AP_TERRAIN_AVAILABLE
send_message(MSG_TERRAIN); send_message(MSG_TERRAIN);
#endif #endif
send_message(MSG_MOUNT_STATUS);
} }
} }

Loading…
Cancel
Save