Skip to content

Commit

Permalink
forgot this in converting wp logic to float
Browse files Browse the repository at this point in the history
  • Loading branch information
EwoudSmeur committed Sep 25, 2016
1 parent e23801c commit df736f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sw/airborne/firmwares/rotorcraft/navigation.c
Expand Up @@ -342,7 +342,7 @@ bool nav_approaching_from(struct EnuCoor_i *wp, struct EnuCoor_i *from, int16_t
/* return TRUE if normal line at the end of the segment is crossed */
struct Int32Vect2 from_diff;
VECT2_DIFF(from_diff, *wp, *from);
INT32_VECT2_RSHIFT(from_diff, from_diff, INT32_POS_FRAC / 2);
struct FloatVect2 from_diff_f = {POS_FLOAT_OF_BFP(from_diff_f.x), POS_FLOAT_OF_BFP(from_diff_f.y)};
return (diff_f.x * from_diff.x + diff_f.y * from_diff.y < 0);
}

Expand Down

0 comments on commit df736f0

Please sign in to comment.