FH_DONT_TURN,
FH_CW, /* Clockwise */
FH_CCW, /* Counter-clockwise */
- FH_SHORTEST /* Shortest turn */
+ FH_SHORTEST, /* Shortest turn */
};
struct final_heading {
enum turn_type turn_type;
- double heading; /* Heading in rad */
+ float heading; /* Heading in rad */
};
-static inline struct final_heading *__turn(enum turn_type tt, double heading)
-{
- static struct final_heading fh;
- fh.turn_type = tt;
- fh.heading = heading;
- return &fh;
-}
-
-/* FIXME: Use GCC extension for this */
-#define TURN(heading) __turn(FH_SHORTEST, (heading))
-#define TURN_CW(heading) __turn(FH_CW, (heading))
-#define TURN_CCW(heading) __turn(FH_CCW, (heading))
-#define NO_TURN() __turn(FH_DONT_TURN, 0)
-
#endif