mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
Fix some compiler warnings in guidance code
This commit is contained in:
parent
1559eeb2e1
commit
08fd08deb8
@ -390,7 +390,7 @@ static void updateVtolDesiredAttitude()
|
||||
StabilizationSettingsGet(&stabSettings);
|
||||
NedAccelGet(&nedAccel);
|
||||
|
||||
float northVel, eastVel, downVel;
|
||||
float northVel = 0, eastVel = 0, downVel = 0;
|
||||
switch (guidanceSettings.VelocitySource) {
|
||||
case GUIDANCESETTINGS_VELOCITYSOURCE_EKF:
|
||||
northVel = velocityActual.North;
|
||||
@ -414,6 +414,7 @@ static void updateVtolDesiredAttitude()
|
||||
downVel = velocityActual.Down;
|
||||
}
|
||||
default:
|
||||
PIOS_Assert(0);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user