Commit 8f1aac18 authored by Rustom Jehangir's avatar Rustom Jehangir

Check for null pointer to avoid crash.

parent 36ce0c1d
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment