X-Git-Url: http://git.droids-corp.org/?p=aversive.git;a=blobdiff_plain;f=projects%2Fmicrob2010%2Fmainboard%2Fmain.c;h=d0c9d14fd34eaf2b2d8d4dc5dd48e200d5c4dfd8;hp=d69d05841c710fb8ae8f45b2cd9e668e3311d828;hb=57b3e145f2ff46e1a7e7d522c85f3c56821dbf48;hpb=27b0a59ab1cb5eab29c6fc07476f5465dbd1f786 diff --git a/projects/microb2010/mainboard/main.c b/projects/microb2010/mainboard/main.c index d69d058..d0c9d14 100755 --- a/projects/microb2010/mainboard/main.c +++ b/projects/microb2010/mainboard/main.c @@ -37,7 +37,7 @@ #include #include #include -#include +#include #include #include @@ -67,10 +67,6 @@ #include "cs.h" #include "i2c_protocol.h" -#if __AVR_LIBC_VERSION__ == 10602UL -#error "won't work with this version" -#endif - /* 0 means "programmed" * ---- with 16 Mhz quartz * CKSEL 3-0 : 0111 @@ -85,8 +81,8 @@ struct genboard gen; struct mainboard mainboard; -struct mechboard mechboard; -struct sensorboard sensorboard; +struct cobboard cobboard; +struct ballboard ballboard; /***********************/ @@ -172,7 +168,6 @@ int main(void) memset(&mainboard, 0, sizeof(mainboard)); mainboard.flags = DO_ENCODERS | DO_RS | DO_POS | DO_POWER | DO_BD; - sensorboard.opponent_x = I2C_OPPONENT_NOT_THERE; /* UART */ uart_init(); @@ -244,10 +239,6 @@ int main(void) NULL, 0); PWM_NG_INIT16(&gen.servo4, 5, C, 10, PWM_NG_MODE_NORMAL, NULL, 0); - pwm_ng_set(&gen.servo2, 290); /* right */ - pwm_ng_set(&gen.servo3, 400); /* left */ - /* 2 lintels 180, 485 */ - /* 1 lintel 155, 520 */ /* SCHEDULER */ scheduler_init();