From 8a584c23ce56fe13aeec8dcce98ee8afdf70516f Mon Sep 17 00:00:00 2001 From: Christophe De Wagter Date: Tue, 7 Nov 2017 18:04:55 +0100 Subject: [PATCH] [modules] fix orange_avoider --- sw/airborne/modules/orange_avoider/orange_avoider.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sw/airborne/modules/orange_avoider/orange_avoider.c b/sw/airborne/modules/orange_avoider/orange_avoider.c index 8cd9eaf771..00f84d4d0b 100644 --- a/sw/airborne/modules/orange_avoider/orange_avoider.c +++ b/sw/airborne/modules/orange_avoider/orange_avoider.c @@ -92,7 +92,7 @@ uint8_t increase_nav_heading(int32_t *heading, float incrementDegrees) // Check if your turn made it go out of bounds... INT32_ANGLE_NORMALIZE(newHeading); // HEADING HAS INT32_ANGLE_FRAC.... *heading = newHeading; - VERBOSE_PRINT("Increasing heading to %f\n", DegOfRad(ANGLE_FLOAT_OF_BFP(*heading)); + VERBOSE_PRINT("Increasing heading to %f\n", DegOfRad(ANGLE_FLOAT_OF_BFP(*heading))); return false; } @@ -111,7 +111,7 @@ static uint8_t calculateForwards(struct EnuCoor_i *new_coor, float distanceMeter new_coor->y = pos->y + POS_BFP_OF_REAL(cos_heading * (distanceMeters)); VERBOSE_PRINT("Calculated %f m forward position. x: %f y: %f based on pos(%f, %f) and heading(%f)\n", distanceMeters, POS_FLOAT_OF_BFP(new_coor->x), POS_FLOAT_OF_BFP(new_coor->y), POS_FLOAT_OF_BFP(pos->x), POS_FLOAT_OF_BFP(pos->y), - DegOfRad(ANGLE_FLOAT_OF_BFP(eulerAngles->psi)); + DegOfRad(ANGLE_FLOAT_OF_BFP(eulerAngles->psi)) ); return false; }