Browse Source

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

master
Grant Morphett 9 years ago committed by Andrew Tridgell
parent
commit
801ced34a5
  1. 7
      APMrover2/GCS_Mavlink.cpp

7
APMrover2/GCS_Mavlink.cpp

@ -546,10 +546,14 @@ bool GCS_MAVLINK::try_send_message(enum ap_message id) @@ -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) @@ -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);
}
}

Loading…
Cancel
Save