Rover: added the VIBRATION message which is sent to the GCS.

This commit is contained in:
Grant Morphett 2016-04-05 10:40:40 +10:00 committed by Andrew Tridgell
parent 8e69b66cf0
commit 801ced34a5
1 changed files with 6 additions and 1 deletions

View File

@ -546,10 +546,14 @@ bool GCS_MAVLINK::try_send_message(enum ap_message id)
case MSG_LIMITS_STATUS:
case MSG_FENCE_STATUS:
case MSG_WIND:
case MSG_VIBRATION:
// unused
break;
case MSG_VIBRATION:
CHECK_PAYLOAD_SIZE(VIBRATION);
send_vibration(rover.ins);
break;
case MSG_BATTERY2:
CHECK_PAYLOAD_SIZE(BATTERY2);
rover.gcs[chan-MAVLINK_COMM_0].send_battery2(rover.battery);
@ -825,6 +829,7 @@ GCS_MAVLINK::data_stream_send(void)
send_message(MSG_MAG_CAL_PROGRESS);
send_message(MSG_MOUNT_STATUS);
send_message(MSG_EKF_STATUS_REPORT);
send_message(MSG_VIBRATION);
}
}