1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-24 16:55:29 +03:00

fixed compilation errors

This commit is contained in:
Pawel Spychalski (DzikuVx) 2018-05-26 14:27:51 +02:00
parent 46742997e4
commit fbb235489f

View file

@ -1999,7 +1999,7 @@ static bool adjustPositionFromRCInput(void)
* Set currnt position and target position
* Enabling NAV_CRUISE_BRAKING locks other routines from setting position!
*/
setDesiredPosition(&posControl.actualState.pos, 0, NAV_POS_UPDATE_XY);
setDesiredPosition(&navGetCurrentActualPositionAndVelocity()->pos, 0, NAV_POS_UPDATE_XY);
ENABLE_STATE(NAV_CRUISE_BRAKING_LOCKED);
DEBUG_SET(DEBUG_BRAKING, 2, 1);
@ -2077,7 +2077,7 @@ static bool adjustPositionFromRCInput(void)
* When braking is done, store current position as desired one
* We do not want to go back to the place where braking has started
*/
setDesiredPosition(&posControl.actualState.pos, 0, NAV_POS_UPDATE_XY);
setDesiredPosition(&navGetCurrentActualPositionAndVelocity()->pos, 0, NAV_POS_UPDATE_XY);
}
retValue = adjustMulticopterPositionFromRCInput(rcPitchAdjustment, rcRollAdjustment);