Browse Source

Check for null pointer to avoid crash.

QGC4.4
Rustom Jehangir 8 years ago
parent
commit
8f1aac18db
  1. 4
      src/uas/UAS.cc

4
src/uas/UAS.cc

@ -979,6 +979,10 @@ void UAS::setExternalControlSetpoint(float roll, float pitch, float yaw, float t @@ -979,6 +979,10 @@ void UAS::setExternalControlSetpoint(float roll, float pitch, float yaw, float t
return;
}
if (!_vehicle->priorityLink()) {
return;
}
// Store the previous manual commands
static float manualRollAngle = 0.0;
static float manualPitchAngle = 0.0;

Loading…
Cancel
Save