1
0
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:
James Cotton 2012-04-15 11:51:26 -05:00
parent 1559eeb2e1
commit 08fd08deb8

View File

@ -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;
}