X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=projects%2Fmicrob2010%2Fmainboard%2Fmain.h;h=4a9503d2ba0fd642b79fabfe566e876be9cc0e9b;hb=c20f7eb8460dd04e42f95d799f17d9b60b5ee8e4;hp=c38a234eda0c4de9c0574e366e36f6fee16c4eff;hpb=9d056416278ae5d772a0fc1f7d2d11a4461fb673;p=aversive.git diff --git a/projects/microb2010/mainboard/main.h b/projects/microb2010/mainboard/main.h index c38a234..4a9503d 100755 --- a/projects/microb2010/mainboard/main.h +++ b/projects/microb2010/mainboard/main.h @@ -19,7 +19,7 @@ * */ -/* was mechboard in 2009 */ +/* was sensorboard in 2009 */ #define LED_TOGGLE(port, bit) do { \ if (port & _BV(bit)) \ @@ -119,6 +119,7 @@ #define CS_PRIO 100 #define STRAT_PRIO 30 #define I2C_POLL_PRIO 20 +#define BEACON_PRIO 15 #define EEPROM_TIME_PRIO 10 #define CS_PERIOD 5000L /* in microsecond */ @@ -212,10 +213,22 @@ struct ballboard { uint8_t rcob; }; +/* state of beaconboard, sync'd through uart */ +struct beaconboard { + int16_t oppx; + int16_t oppy; + int16_t oppa; + int16_t oppd; + uint16_t posx; + uint16_t posy; + uint16_t posa; /* between 0 and 3600 */ +}; + extern struct genboard gen; extern struct mainboard mainboard; extern volatile struct cobboard cobboard; extern volatile struct ballboard ballboard; +extern volatile struct beaconboard beaconboard; /* start the bootloader */ void bootloader(void);