1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-03-15 07:29:15 +01:00

Fix nasty bug in guidance where I missed some breaks

This commit is contained in:
James Cotton 2012-04-16 08:59:25 -05:00
parent a7ba6d96c1
commit ad074aee4b

View File

@ -322,6 +322,7 @@ void updateVtolDesiredVelocity()
eastPos = nedPosition.East;
downPos = nedPosition.Down;
}
break;
default:
PIOS_Assert(0);
break;
@ -426,6 +427,7 @@ static void updateVtolDesiredAttitude()
eastVel = gpsVelocity.East;
downVel = gpsVelocity.Down;
}
break;
case GUIDANCESETTINGS_VELOCITYSOURCE_GPSPOS:
{
GPSPositionData gpsPosition;
@ -434,6 +436,7 @@ static void updateVtolDesiredAttitude()
eastVel = gpsPosition.Groundspeed * sinf(gpsPosition.Heading * F_PI / 180.0f);
downVel = velocityActual.Down;
}
break;
default:
PIOS_Assert(0);
break;