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:
parent
3db6c3c86b
commit
b2ecf23a07
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user