X-Git-Url: http://git.droids-corp.org/?p=aversive.git;a=blobdiff_plain;f=projects%2Fmicrob2010%2Ftests%2Ftest_board2008%2Fstrat_utils.c;h=2816744e85373d609172e08bee1b908ad078acf2;hp=edd795a2791d38e217e652687897f635ddf66934;hb=a6b3ca9418e9fb69a32ed2ac81e5fe8b2d439ca7;hpb=8df33bfcc2cf6b9887c975b83a80ea80777683cc diff --git a/projects/microb2010/tests/test_board2008/strat_utils.c b/projects/microb2010/tests/test_board2008/strat_utils.c index edd795a..2816744 100644 --- a/projects/microb2010/tests/test_board2008/strat_utils.c +++ b/projects/microb2010/tests/test_board2008/strat_utils.c @@ -29,7 +29,7 @@ #include #include -#include +#include #include #include @@ -77,17 +77,17 @@ int16_t simple_modulo_360(int16_t a) return a; } -/** do a modulo 2.pi -> [-Pi,+Pi], knowing that 'a' is in [-3Pi,+3Pi] */ -double simple_modulo_2pi(double a) -{ - if (a < -M_PI) { - a += M_2PI; - } - else if (a > M_PI) { - a -= M_2PI; - } - return a; -} +/* /\** do a modulo 2.pi -> [-Pi,+Pi], knowing that 'a' is in [-3Pi,+3Pi] *\/ */ +/* double simple_modulo_2pi(double a) */ +/* { */ +/* if (a < -M_PI) { */ +/* a += M_2PI; */ +/* } */ +/* else if (a > M_PI) { */ +/* a -= M_2PI; */ +/* } */ +/* return a; */ +/* } */ /* return the distance to a point in the area */ int16_t angle_abs_to_rel(int16_t a_abs)