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

OP-1350 simposix build fixes :( fix altitude calculation for RTB

This commit is contained in:
Alessio Morale 2014-05-19 22:21:32 +02:00
parent 3db6c3c86b
commit b2ecf23a07
2 changed files with 2 additions and 1 deletions

View File

@ -92,7 +92,7 @@ void plan_setup_returnToBase()
float destDown;
FlightModeSettingsReturnToBaseAltitudeOffsetGet(&destDown);
destDown -= MIN(positionStateDown, takeoffLocation.Down);
destDown = MIN(positionStateDown, takeoffLocation.Down) - destDown;
pathDesired.Start.North = takeoffLocation.North;
pathDesired.Start.East = takeoffLocation.East;

View File

@ -94,6 +94,7 @@ SRC += $(FLIGHTLIB)/fifo_buffer.c
SRC += $(FLIGHTLIB)/WorldMagModel.c
SRC += $(FLIGHTLIB)/insgps13state.c
SRC += $(FLIGHTLIB)/paths.c
SRC += $(FLIGHTLIB)/plans.c
SRC += $(FLIGHTLIB)/sanitycheck.c
SRC += $(MATHLIB)/sin_lookup.c