diff --git a/ArduCopter/GCS_Mavlink.cpp b/ArduCopter/GCS_Mavlink.cpp index 62102804e2..91834919d9 100644 --- a/ArduCopter/GCS_Mavlink.cpp +++ b/ArduCopter/GCS_Mavlink.cpp @@ -173,6 +173,9 @@ void GCS_MAVLINK_Copter::send_nav_controller_output() const int16_t GCS_MAVLINK_Copter::vfr_hud_throttle() const { + if (copter.motors == nullptr) { + return 0; + } return (int16_t)(copter.motors->get_throttle() * 100); }