Browse Source

Plane: add vibration DF logging and send to GCS

mission-4.1.18
Randy Mackay 10 years ago
parent
commit
814cb5ce18
  1. 3
      ArduPlane/ArduPlane.cpp
  2. 6
      ArduPlane/GCS_Mavlink.cpp

3
ArduPlane/ArduPlane.cpp

@ -250,6 +250,9 @@ void Plane::update_logging2(void) @@ -250,6 +250,9 @@ void Plane::update_logging2(void)
if (should_log(MASK_LOG_RC))
Log_Write_RC();
if (should_log(MASK_LOG_IMU))
DataFlash.Log_Write_Vibration(ins);
}

6
ArduPlane/GCS_Mavlink.cpp

@ -769,6 +769,11 @@ bool GCS_MAVLINK::try_send_message(enum ap_message id) @@ -769,6 +769,11 @@ bool GCS_MAVLINK::try_send_message(enum ap_message id)
CHECK_PAYLOAD_SIZE(PID_TUNING);
plane.send_pid_tuning(chan);
break;
case MSG_VIBRATION:
CHECK_PAYLOAD_SIZE(VIBRATION);
send_vibration(plane.ins);
break;
}
return true;
}
@ -1003,6 +1008,7 @@ GCS_MAVLINK::data_stream_send(void) @@ -1003,6 +1008,7 @@ GCS_MAVLINK::data_stream_send(void)
send_message(MSG_OPTICAL_FLOW);
send_message(MSG_EKF_STATUS_REPORT);
send_message(MSG_GIMBAL_REPORT);
send_message(MSG_VIBRATION);
}
}

Loading…
Cancel
Save