X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=projects%2Fmicrob2010%2Fmainboard%2Fstrat.h;h=b4592c536d10eb89dd26af5b075322041db7fc96;hb=c20f7eb8460dd04e42f95d799f17d9b60b5ee8e4;hp=2be7651facf2b88fd9ea15c349f66542ce35a9bc;hpb=cc67fe587de07a329525c8f5c8ecfd1fabbf83b8;p=aversive.git diff --git a/projects/microb2010/mainboard/strat.h b/projects/microb2010/mainboard/strat.h index 2be7651..b4592c5 100644 --- a/projects/microb2010/mainboard/strat.h +++ b/projects/microb2010/mainboard/strat.h @@ -135,8 +135,8 @@ #define ACC_ANGLE 16. /* default speeds */ -#define SPEED_DIST_FAST 1500. -#define SPEED_ANGLE_FAST 1000. +#define SPEED_DIST_FAST 1200. +#define SPEED_ANGLE_FAST 800. #define SPEED_DIST_SLOW 500. #define SPEED_ANGLE_SLOW 500. #define SPEED_DIST_VERY_SLOW 200. @@ -150,7 +150,13 @@ struct strat_conf { uint8_t dump_enabled; -#define STRAT_CONF_XXX 0x01 + uint8_t opp_orange; + uint8_t orphan_tomato; + + int8_t prev_wait_obstacle; + +#define STRAT_CONF_OUR_ORANGE 0x01 +#define STRAT_CONF_WAIT_OBSTACLE 0x02 uint8_t flags; }; @@ -171,5 +177,8 @@ uint8_t strat_main(void); void strat_event(void *dummy); void strat_event_enable(void); void strat_event_disable(void); +uint8_t prepare_hill(uint8_t orange_color, int16_t posx); +uint8_t run_to_the_hills(uint8_t orange_color); +uint8_t get_orphan_tomatoes(void); #endif