Copter: enable AHRS2 mavlink message

This commit is contained in:
Andrew Tridgell 2014-01-04 11:30:55 +11:00
parent 4646682a31
commit 6a9189a6a5

View File

@ -681,6 +681,10 @@ static bool mavlink_try_send_message(mavlink_channel_t chan, enum ap_message id,
#if CONFIG_HAL_BOARD == HAL_BOARD_AVR_SITL
CHECK_PAYLOAD_SIZE(SIMSTATE);
send_simstate(chan);
#endif
#if AP_AHRS_NAVEKF_AVAILABLE
CHECK_PAYLOAD_SIZE(AHRS2);
gcs[chan-MAVLINK_COMM_0].send_ahrs2(ahrs);
#endif
break;