circuit strat, first version
[aversive.git] / projects / microb2010 / mainboard / strat_utils.h
index 85997c2..d6bea8f 100644 (file)
  */
 
 
-#define DEG(x) (((double)(x)) * (180.0 / M_PI))
-#define RAD(x) (((double)(x)) * (M_PI / 180.0))
-#define M_2PI (2*M_PI)
-
 struct xy_point {
        int16_t x;
        int16_t y;
@@ -62,3 +58,6 @@ int8_t get_opponent_xy(int16_t *x, int16_t *y);
 int8_t get_opponent_da(int16_t *d, int16_t *a);
 int8_t get_opponent_xyda(int16_t *x, int16_t *y, int16_t *d, int16_t *a);
 uint8_t opponent_is_behind(void);
+
+uint8_t get_ball_count(void);
+uint8_t get_cob_count(void);