MAVLink: Fix vibration message timestamp

This commit is contained in:
Lorenz Meier 2017-07-29 11:20:41 +02:00
parent 3f048e8a87
commit 6b17db35b0
1 changed files with 6 additions and 5 deletions

View File

@ -1922,11 +1922,12 @@ protected:
mavlink_msg_estimator_status_send_struct(_mavlink->get_channel(), &est_msg);
mavlink_vibration_t msg = {};
msg.vibration_x = est.vibe[0];
msg.vibration_y = est.vibe[1];
msg.vibration_z = est.vibe[2];
mavlink_vibration_t msg = {
.time_usec = est.timestamp,
.vibration_x = est.vibe[0],
.vibration_y = est.vibe[1],
.vibration_z = est.vibe[2]
};
mavlink_msg_vibration_send_struct(_mavlink->get_channel(), &msg);