|
|
|
@ -260,6 +260,15 @@ bool GCS_MAVLINK::try_send_message(enum ap_message id)
@@ -260,6 +260,15 @@ bool GCS_MAVLINK::try_send_message(enum ap_message id)
|
|
|
|
|
CHECK_PAYLOAD_SIZE(HWSTATUS); |
|
|
|
|
tracker.send_hwstatus(chan); |
|
|
|
|
break; |
|
|
|
|
case MSG_MAG_CAL_PROGRESS: |
|
|
|
|
CHECK_PAYLOAD_SIZE(MAG_CAL_PROGRESS); |
|
|
|
|
tracker.compass.send_mag_cal_progress(chan); |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case MSG_MAG_CAL_REPORT: |
|
|
|
|
CHECK_PAYLOAD_SIZE(MAG_CAL_REPORT); |
|
|
|
|
tracker.compass.send_mag_cal_report(chan); |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
case MSG_SERVO_OUT: |
|
|
|
|
case MSG_EXTENDED_STATUS1: |
|
|
|
@ -459,6 +468,8 @@ GCS_MAVLINK::data_stream_send(void)
@@ -459,6 +468,8 @@ GCS_MAVLINK::data_stream_send(void)
|
|
|
|
|
send_message(MSG_AHRS); |
|
|
|
|
send_message(MSG_HWSTATUS); |
|
|
|
|
send_message(MSG_SIMSTATE); |
|
|
|
|
send_message(MSG_MAG_CAL_REPORT); |
|
|
|
|
send_message(MSG_MAG_CAL_PROGRESS); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -697,6 +708,12 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
@@ -697,6 +708,12 @@ void GCS_MAVLINK::handleMessage(mavlink_message_t* msg)
|
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
case MAV_CMD_DO_START_MAG_CAL: |
|
|
|
|
case MAV_CMD_DO_ACCEPT_MAG_CAL: |
|
|
|
|
case MAV_CMD_DO_CANCEL_MAG_CAL: |
|
|
|
|
result = tracker.compass.handle_mag_cal_command(packet); |
|
|
|
|
break; |
|
|
|
|
|
|
|
|
|
default: |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|