Commit d4b272eb authored by Don Gagne's avatar Don Gagne Committed by GitHub

Merge pull request #4315 from bluerobotics/nullpointerCrash

Null pointer issue
parents f7f80443 8f1aac18
......@@ -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