Revision | 73 (tree) |
---|---|
Zeit | 2017-11-12 14:08:46 |
Autor | yus_suzuki |
Lコースのベーシックエリアゲインやパワー、マイレージの距離を変更。
スタートの尻尾角度を61から59に変更(CロボットとBロボット)
@@ -6,7 +6,7 @@ | ||
6 | 6 | KERNELDIR = ../.. |
7 | 7 | TARGETDIR = $(KERNELDIR)/target/ev3_gcc |
8 | 8 | LOADERDIR = $(KERNELDIR)/target/ev3_gcc/dmloader |
9 | -APPLDIR = ../workspace/L_ETRobo2017_0916_suzuki | |
9 | +APPLDIR = ../workspace/R_ETRobo2017_0916_azuma | |
10 | 10 | APPL_DIR = $(APPLDIR) |
11 | 11 | SRCDIRS += $(APPL_DIR) $(KERNELDIR)/target/ev3_gcc/TLSF-2.4.6/src |
12 | 12 |
@@ -18,8 +18,8 @@ | ||
18 | 18 | # Compiler options |
19 | 19 | COPTS += -DBUILD_MODULE |
20 | 20 | GCC_TARGET = arm-none-eabi |
21 | -INCLUDES += -I../workspace/L_ETRobo2017_0916_suzuki \ | |
22 | - -I../workspace/L_ETRobo2017_0916_suzuki/../common \ | |
21 | +INCLUDES += -I../workspace/R_ETRobo2017_0916_azuma \ | |
22 | + -I../workspace/R_ETRobo2017_0916_azuma/../common \ | |
23 | 23 | -I$(LOADERDIR)/app \ |
24 | 24 | -I$(KERNELDIR)/target/ev3_gcc \ |
25 | 25 | -I$(KERNELDIR)/target/ev3_gcc/drivers/common/include \ |
@@ -39,7 +39,7 @@ | ||
39 | 39 | |
40 | 40 | MODOBJS += t_perror.o strerror.o vasyslog.o tlsf.o |
41 | 41 | |
42 | -MODCFG = ../workspace/L_ETRobo2017_0916_suzuki/app.cfg | |
42 | +MODCFG = ../workspace/R_ETRobo2017_0916_azuma/app.cfg | |
43 | 43 | |
44 | 44 | MODDIR = $(PWD) |
45 | 45 |
@@ -50,7 +50,7 @@ | ||
50 | 50 | # |
51 | 51 | BUILD_LOADABLE_MODULE = 1 |
52 | 52 | CONFIG_EV3RT_APPLICATION = 1 |
53 | -include ../workspace/L_ETRobo2017_0916_suzuki/Makefile.inc | |
53 | +include ../workspace/R_ETRobo2017_0916_azuma/Makefile.inc | |
54 | 54 | ifeq ($(SRCLANG),c++) |
55 | 55 | USE_CXX = true |
56 | 56 | APPL_CXXOBJS += app.o |
@@ -138,13 +138,13 @@ | ||
138 | 138 | CGyroSensor *m_CGyroSensor; |
139 | 139 | m_CGyroSensor = m_CSensorFactory->getGyroSensor(); |
140 | 140 | |
141 | + //ev3_lcd_fill_rect(0, 0, EV3_LCD_WIDTH, EV3_LCD_HEIGHT, EV3_LCD_WHITE); | |
142 | + //ev3_lcd_draw_string("Factory Created! ", 0, CALIB_FONT_HEIGHT*2); | |
143 | + //tslp_tsk(500); /* 10msecウェイト */ | |
144 | + | |
141 | 145 | ev3_lcd_fill_rect(0, 0, EV3_LCD_WIDTH, EV3_LCD_HEIGHT, EV3_LCD_WHITE); |
142 | - ev3_lcd_draw_string("Factory Created! ", 0, CALIB_FONT_HEIGHT*2); | |
146 | + ev3_lcd_draw_string("AreaSwitching Get! ", 0, CALIB_FONT_HEIGHT*2); | |
143 | 147 | tslp_tsk(1000); /* 1000msecウェイト */ |
144 | - | |
145 | -// ev3_lcd_fill_rect(0, 0, EV3_LCD_WIDTH, EV3_LCD_HEIGHT, EV3_LCD_WHITE); | |
146 | -// ev3_lcd_draw_string("AreaSwitching Get! ", 0, CALIB_FONT_HEIGHT*2); | |
147 | -// tslp_tsk(500); /* 10msecウェイト */ | |
148 | 148 | |
149 | 149 | // ジャイロと倒立振子を初期化. |
150 | 150 | m_CGyroSensor->reset(); |
@@ -154,9 +154,9 @@ | ||
154 | 154 | m_CLRMotorPowerControl->LRControl(0, 0, 0); |
155 | 155 | //m_CTailMotorOutput->Output(0); |
156 | 156 | |
157 | - ev3_lcd_fill_rect(0, 0, EV3_LCD_WIDTH, EV3_LCD_HEIGHT, EV3_LCD_WHITE); | |
158 | - ev3_lcd_draw_string("Reset Complete! ", 0, CALIB_FONT_HEIGHT*2); | |
159 | - tslp_tsk(500); /* 10msecウェイト */ | |
157 | + //ev3_lcd_fill_rect(0, 0, EV3_LCD_WIDTH, EV3_LCD_HEIGHT, EV3_LCD_WHITE); | |
158 | + //ev3_lcd_draw_string("Reset Complete! ", 0, CALIB_FONT_HEIGHT*2); | |
159 | + //tslp_tsk(500); /* 10msecウェイト */ | |
160 | 160 | |
161 | 161 | // Bluetooth起動. |
162 | 162 | CGlobalVariable::getInstance()->global_bluetooth = ev3_serial_open_file(EV3_SERIAL_BT); |
@@ -269,7 +269,7 @@ | ||
269 | 269 | ev3_lcd_fill_rect(0, 0, EV3_LCD_WIDTH, EV3_LCD_HEIGHT, EV3_LCD_WHITE); |
270 | 270 | ev3_lcd_draw_string("return false", 0, 24); |
271 | 271 | tslp_tsk(500); /* 10msecウェイト */ |
272 | - ev3_speaker_set_volume(50); | |
272 | + ev3_speaker_set_volume(150); | |
273 | 273 | ev3_speaker_play_tone(261.63, 1000); |
274 | 274 | break; |
275 | 275 |
@@ -1538,233 +1538,236 @@ | ||
1538 | 1538 | #ifndef TOPPERS_cfg_valueof_TDOM_APP_DEFINED |
1539 | 1539 | #define TOPPERS_cfg_valueof_TDOM_APP_DEFINED 1 |
1540 | 1540 | |
1541 | -#line 5 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1541 | +#line 5 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1542 | 1542 | const unsigned_t TOPPERS_cfg_valueof_TDOM_APP = TDOM_APP; |
1543 | 1543 | |
1544 | 1544 | #endif |
1545 | 1545 | #define TOPPERS_cfg_inside_of_TDOM_APP |
1546 | 1546 | const unsigned_t TOPPERS_cfg_valueof_DOMAIN_256 = ( unsigned_t ) ( TDOM_APP ); |
1547 | -#line 6 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1547 | +#line 6 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1548 | 1548 | const unsigned_t TOPPERS_cfg_static_api_256 = 256; |
1549 | 1549 | #define INIT_TASK (<>) |
1550 | 1550 | |
1551 | -#line 6 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1552 | -const unsigned_t TOPPERS_cfg_valueof_tskatr_256 = ( unsigned_t )( TA_ACT ); const signed_t TOPPERS_cfg_valueof_itskpri_256 = ( signed_t )( TMIN_APP_TPRI + 1 ); const unsigned_t TOPPERS_cfg_valueof_stksz_256 = ( unsigned_t )( STACK_SIZE ); const unsigned_t TOPPERS_cfg_valueof_DOMAIN_257 = ( unsigned_t ) ( TDOM_APP ); | |
1553 | -#line 7 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1551 | +#line 6 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1552 | +const unsigned_t TOPPERS_cfg_valueof_tskatr_256 = ( unsigned_t )( TA_ACT ); const signed_t TOPPERS_cfg_valueof_itskpri_256 = ( signed_t )( TMIN_APP_TPRI+1 ); const unsigned_t TOPPERS_cfg_valueof_stksz_256 = ( unsigned_t )( STACK_SIZE ); const unsigned_t TOPPERS_cfg_valueof_DOMAIN_257 = ( unsigned_t ) ( TDOM_APP ); | |
1553 | +#line 7 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1554 | 1554 | const unsigned_t TOPPERS_cfg_static_api_257 = 257; |
1555 | 1555 | #define MAIN_TASK (<>) |
1556 | 1556 | |
1557 | -#line 7 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1557 | +#line 7 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1558 | 1558 | const unsigned_t TOPPERS_cfg_valueof_tskatr_257 = ( unsigned_t )( TA_NULL ); const signed_t TOPPERS_cfg_valueof_itskpri_257 = ( signed_t )( TMIN_APP_TPRI+3 ); const unsigned_t TOPPERS_cfg_valueof_stksz_257 = ( unsigned_t )( STACK_SIZE ); const unsigned_t TOPPERS_cfg_valueof_DOMAIN_258 = ( unsigned_t ) ( TDOM_APP ); |
1559 | -#line 8 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1559 | +#line 8 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1560 | 1560 | const unsigned_t TOPPERS_cfg_static_api_258 = 258; |
1561 | 1561 | #define SAVE_RGB_FILTER_RESULT_TASK (<>) |
1562 | 1562 | |
1563 | -#line 8 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1563 | +#line 8 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1564 | 1564 | const unsigned_t TOPPERS_cfg_valueof_tskatr_258 = ( unsigned_t )( TA_NULL ); const signed_t TOPPERS_cfg_valueof_itskpri_258 = ( signed_t )( TMIN_APP_TPRI+2 ); const unsigned_t TOPPERS_cfg_valueof_stksz_258 = ( unsigned_t )( STACK_SIZE ); const unsigned_t TOPPERS_cfg_valueof_DOMAIN_259 = ( unsigned_t ) ( TDOM_APP ); |
1565 | -#line 9 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1565 | +#line 9 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1566 | 1566 | const unsigned_t TOPPERS_cfg_static_api_259 = 259; |
1567 | 1567 | #define BLUETOOTH_RECEIVE_TASK (<>) |
1568 | 1568 | |
1569 | -#line 9 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1569 | +#line 9 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1570 | 1570 | const unsigned_t TOPPERS_cfg_valueof_tskatr_259 = ( unsigned_t )( TA_NULL ); const signed_t TOPPERS_cfg_valueof_itskpri_259 = ( signed_t )( TMIN_APP_TPRI+4 ); const unsigned_t TOPPERS_cfg_valueof_stksz_259 = ( unsigned_t )( STACK_SIZE ); const unsigned_t TOPPERS_cfg_valueof_DOMAIN_260 = ( unsigned_t ) ( TDOM_APP ); |
1571 | -#line 13 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1571 | +#line 13 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1572 | 1572 | const unsigned_t TOPPERS_cfg_static_api_260 = 260; |
1573 | 1573 | #define MAIN_CYCLE_TASK (<>) |
1574 | 1574 | |
1575 | -#line 13 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1575 | +#line 13 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1576 | 1576 | const unsigned_t TOPPERS_cfg_valueof_cycatr_260 = ( unsigned_t )( TA_NULL ); const unsigned_t TOPPERS_cfg_valueof_cyctim_260 = ( unsigned_t )( 5 ); const unsigned_t TOPPERS_cfg_valueof_cycphs_260 = ( unsigned_t )( 1 ); const unsigned_t TOPPERS_cfg_valueof_DOMAIN_261 = ( unsigned_t ) ( TDOM_APP ); |
1577 | -#line 14 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1577 | +#line 14 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1578 | 1578 | const unsigned_t TOPPERS_cfg_static_api_261 = 261; |
1579 | 1579 | #define SAVE_RGB_FILTER_RESULT_CYCLE_TASK (<>) |
1580 | 1580 | |
1581 | -#line 14 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1581 | +#line 14 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1582 | 1582 | const unsigned_t TOPPERS_cfg_valueof_cycatr_261 = ( unsigned_t )( TA_NULL ); const unsigned_t TOPPERS_cfg_valueof_cyctim_261 = ( unsigned_t )( 1 ); const unsigned_t TOPPERS_cfg_valueof_cycphs_261 = ( unsigned_t )( 0 ); const unsigned_t TOPPERS_cfg_valueof_DOMAIN_262 = ( unsigned_t ) ( TDOM_APP ); |
1583 | -#line 15 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1583 | +#line 15 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1584 | 1584 | const unsigned_t TOPPERS_cfg_static_api_262 = 262; |
1585 | 1585 | #define BLUETOOTH_RECIEVE_CYCLE_TASK (<>) |
1586 | 1586 | |
1587 | -#line 15 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1587 | +#line 15 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1588 | 1588 | const unsigned_t TOPPERS_cfg_valueof_cycatr_262 = ( unsigned_t )( TA_NULL ); const unsigned_t TOPPERS_cfg_valueof_cyctim_262 = ( unsigned_t )( 1 ); const unsigned_t TOPPERS_cfg_valueof_cycphs_262 = ( unsigned_t )( 0 ); |
1589 | 1589 | #ifndef TOPPERS_cfg_inside_of_TDOM_APP |
1590 | 1590 | |
1591 | -#line 18 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1591 | +#line 17 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1592 | 1592 | #error syntax error |
1593 | 1593 | #endif |
1594 | 1594 | #undef TOPPERS_cfg_inside_of_TDOM_APP |
1595 | 1595 | |
1596 | 1596 | |
1597 | -#line 20 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1597 | +#line 22 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1598 | 1598 | const unsigned_t TOPPERS_cfg_static_api_263 = 263; |
1599 | 1599 | const char TOPPERS_cfg_valueof_module_263[] = "app.o"; |
1600 | -#line 21 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1600 | +#line 23 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1601 | 1601 | const unsigned_t TOPPERS_cfg_static_api_264 = 264; |
1602 | 1602 | const char TOPPERS_cfg_valueof_module_264[] = "GlobalVariable.o"; |
1603 | -#line 22 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1603 | +#line 24 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1604 | 1604 | const unsigned_t TOPPERS_cfg_static_api_265 = 265; |
1605 | 1605 | const char TOPPERS_cfg_valueof_module_265[] = "balancer.o"; |
1606 | -#line 23 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1606 | +#line 25 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1607 | 1607 | const unsigned_t TOPPERS_cfg_static_api_266 = 266; |
1608 | 1608 | const char TOPPERS_cfg_valueof_module_266[] = "balancer_param.o"; |
1609 | -#line 24 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1609 | +#line 26 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1610 | 1610 | const unsigned_t TOPPERS_cfg_static_api_267 = 267; |
1611 | 1611 | const char TOPPERS_cfg_valueof_module_267[] = "AFactory.o"; |
1612 | -#line 25 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1612 | +#line 27 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1613 | 1613 | const unsigned_t TOPPERS_cfg_static_api_268 = 268; |
1614 | 1614 | const char TOPPERS_cfg_valueof_module_268[] = "DataLog.o"; |
1615 | -#line 26 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1615 | +#line 28 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1616 | 1616 | const unsigned_t TOPPERS_cfg_static_api_269 = 269; |
1617 | 1617 | const char TOPPERS_cfg_valueof_module_269[] = "CMonitoringMotorPower.o"; |
1618 | -#line 27 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1618 | +#line 29 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1619 | 1619 | const unsigned_t TOPPERS_cfg_static_api_270 = 270; |
1620 | 1620 | const char TOPPERS_cfg_valueof_module_270[] = "AArea.o"; |
1621 | -#line 28 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1621 | +#line 30 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1622 | 1622 | const unsigned_t TOPPERS_cfg_static_api_271 = 271; |
1623 | 1623 | const char TOPPERS_cfg_valueof_module_271[] = "CAreaFactory.o"; |
1624 | -#line 29 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1624 | +#line 31 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1625 | 1625 | const unsigned_t TOPPERS_cfg_static_api_272 = 272; |
1626 | 1626 | const char TOPPERS_cfg_valueof_module_272[] = "CAreaSwitching.o"; |
1627 | -#line 30 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1627 | +#line 32 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1628 | 1628 | const unsigned_t TOPPERS_cfg_static_api_273 = 273; |
1629 | 1629 | const char TOPPERS_cfg_valueof_module_273[] = "CCalibrationArea.o"; |
1630 | -#line 31 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1630 | +#line 33 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1631 | 1631 | const unsigned_t TOPPERS_cfg_static_api_274 = 274; |
1632 | 1632 | const char TOPPERS_cfg_valueof_module_274[] = "CDrivingArea.o"; |
1633 | -#line 32 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1633 | +#line 34 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1634 | 1634 | const unsigned_t TOPPERS_cfg_static_api_275 = 275; |
1635 | 1635 | const char TOPPERS_cfg_valueof_module_275[] = "CStopArea.o"; |
1636 | -#line 33 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1636 | +#line 35 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1637 | 1637 | const unsigned_t TOPPERS_cfg_static_api_276 = 276; |
1638 | 1638 | const char TOPPERS_cfg_valueof_module_276[] = "AMotor.o"; |
1639 | -#line 34 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1639 | +#line 36 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1640 | 1640 | const unsigned_t TOPPERS_cfg_static_api_277 = 277; |
1641 | 1641 | const char TOPPERS_cfg_valueof_module_277[] = "CMotorOutput.o"; |
1642 | -#line 35 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1642 | +#line 37 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1643 | 1643 | const unsigned_t TOPPERS_cfg_static_api_278 = 278; |
1644 | 1644 | const char TOPPERS_cfg_valueof_module_278[] = "CMotorOutputFactory.o"; |
1645 | -#line 36 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1645 | +#line 38 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1646 | 1646 | const unsigned_t TOPPERS_cfg_static_api_279 = 279; |
1647 | 1647 | const char TOPPERS_cfg_valueof_module_279[] = "CMotorValueGet.o"; |
1648 | -#line 37 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1648 | +#line 39 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1649 | 1649 | const unsigned_t TOPPERS_cfg_static_api_280 = 280; |
1650 | 1650 | const char TOPPERS_cfg_valueof_module_280[] = "CMotorValueGetFactory.o"; |
1651 | -#line 38 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1651 | +#line 40 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1652 | 1652 | const unsigned_t TOPPERS_cfg_static_api_281 = 281; |
1653 | 1653 | const char TOPPERS_cfg_valueof_module_281[] = "ASensor.o"; |
1654 | -#line 39 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1654 | +#line 41 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1655 | 1655 | const unsigned_t TOPPERS_cfg_static_api_282 = 282; |
1656 | 1656 | const char TOPPERS_cfg_valueof_module_282[] = "CColorSensor.o"; |
1657 | -#line 40 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1657 | +#line 42 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1658 | 1658 | const unsigned_t TOPPERS_cfg_static_api_283 = 283; |
1659 | 1659 | const char TOPPERS_cfg_valueof_module_283[] = "CGyroSensor.o"; |
1660 | -#line 41 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1660 | +#line 43 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1661 | 1661 | const unsigned_t TOPPERS_cfg_static_api_284 = 284; |
1662 | 1662 | const char TOPPERS_cfg_valueof_module_284[] = "CSensorFactory.o"; |
1663 | -#line 42 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1663 | +#line 44 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1664 | 1664 | const unsigned_t TOPPERS_cfg_static_api_285 = 285; |
1665 | 1665 | const char TOPPERS_cfg_valueof_module_285[] = "CSonarSensor.o"; |
1666 | -#line 43 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1666 | +#line 45 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1667 | 1667 | const unsigned_t TOPPERS_cfg_static_api_286 = 286; |
1668 | 1668 | const char TOPPERS_cfg_valueof_module_286[] = "CTouchSensor.o"; |
1669 | -#line 44 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1669 | +#line 46 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1670 | 1670 | const unsigned_t TOPPERS_cfg_static_api_287 = 287; |
1671 | 1671 | const char TOPPERS_cfg_valueof_module_287[] = "ACorrectControl.o"; |
1672 | -#line 45 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1672 | +#line 47 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1673 | 1673 | const unsigned_t TOPPERS_cfg_static_api_288 = 288; |
1674 | 1674 | const char TOPPERS_cfg_valueof_module_288[] = "ALRMotorControl.o"; |
1675 | -#line 46 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1675 | +#line 48 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1676 | 1676 | const unsigned_t TOPPERS_cfg_static_api_289 = 289; |
1677 | 1677 | const char TOPPERS_cfg_valueof_module_289[] = "CDirectionCorrectControl.o"; |
1678 | -#line 47 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1678 | +#line 49 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1679 | 1679 | const unsigned_t TOPPERS_cfg_static_api_290 = 290; |
1680 | 1680 | const char TOPPERS_cfg_valueof_module_290[] = "CDirectionCorrectControlFactory.o"; |
1681 | -#line 48 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1681 | +#line 50 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1682 | 1682 | const unsigned_t TOPPERS_cfg_static_api_291 = 291; |
1683 | 1683 | const char TOPPERS_cfg_valueof_module_291[] = "CLightPIDControl.o"; |
1684 | -#line 49 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1684 | +#line 51 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1685 | 1685 | const unsigned_t TOPPERS_cfg_static_api_292 = 292; |
1686 | 1686 | const char TOPPERS_cfg_valueof_module_292[] = "CLightPIDControlFactory.o"; |
1687 | -#line 50 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1687 | +#line 52 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1688 | 1688 | const unsigned_t TOPPERS_cfg_static_api_293 = 293; |
1689 | 1689 | const char TOPPERS_cfg_valueof_module_293[] = "CLRMotorPowerControl.o"; |
1690 | -#line 51 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1690 | +#line 53 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1691 | 1691 | const unsigned_t TOPPERS_cfg_static_api_294 = 294; |
1692 | -const char TOPPERS_cfg_valueof_module_294[] = "CLRMotorPowerControlFactory.o"; | |
1693 | -#line 52 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1692 | +const char TOPPERS_cfg_valueof_module_294[] = "CLRMotorPowerLineControl.o"; | |
1693 | +#line 54 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1694 | 1694 | const unsigned_t TOPPERS_cfg_static_api_295 = 295; |
1695 | -const char TOPPERS_cfg_valueof_module_295[] = "ATailMotorControl.o"; | |
1696 | -#line 53 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1695 | +const char TOPPERS_cfg_valueof_module_295[] = "CLRMotorPowerControlFactory.o"; | |
1696 | +#line 55 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1697 | 1697 | const unsigned_t TOPPERS_cfg_static_api_296 = 296; |
1698 | -const char TOPPERS_cfg_valueof_module_296[] = "CTailMotorControl.o"; | |
1699 | -#line 54 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1698 | +const char TOPPERS_cfg_valueof_module_296[] = "ATailMotorControl.o"; | |
1699 | +#line 56 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1700 | 1700 | const unsigned_t TOPPERS_cfg_static_api_297 = 297; |
1701 | -const char TOPPERS_cfg_valueof_module_297[] = "CTailMotorControlFactory.o"; | |
1702 | -#line 55 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1701 | +const char TOPPERS_cfg_valueof_module_297[] = "CTailMotorControl.o"; | |
1702 | +#line 57 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1703 | 1703 | const unsigned_t TOPPERS_cfg_static_api_298 = 298; |
1704 | -const char TOPPERS_cfg_valueof_module_298[] = "CTailBrakeControl.o"; | |
1705 | -#line 56 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1704 | +const char TOPPERS_cfg_valueof_module_298[] = "CTailMotorControlFactory.o"; | |
1705 | +#line 58 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1706 | 1706 | const unsigned_t TOPPERS_cfg_static_api_299 = 299; |
1707 | -const char TOPPERS_cfg_valueof_module_299[] = "CTailBrakeControlFactory.o"; | |
1708 | -#line 57 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1707 | +const char TOPPERS_cfg_valueof_module_299[] = "CTailBrakeControl.o"; | |
1708 | +#line 59 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1709 | 1709 | const unsigned_t TOPPERS_cfg_static_api_300 = 300; |
1710 | -const char TOPPERS_cfg_valueof_module_300[] = "CTailRocketControl.o"; | |
1711 | -#line 58 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1710 | +const char TOPPERS_cfg_valueof_module_300[] = "CTailBrakeControlFactory.o"; | |
1711 | +#line 60 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1712 | 1712 | const unsigned_t TOPPERS_cfg_static_api_301 = 301; |
1713 | -const char TOPPERS_cfg_valueof_module_301[] = "CTailRocketControlFactory.o"; | |
1714 | -#line 59 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1713 | +const char TOPPERS_cfg_valueof_module_301[] = "CTailRocketControl.o"; | |
1714 | +#line 61 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1715 | 1715 | const unsigned_t TOPPERS_cfg_static_api_302 = 302; |
1716 | -const char TOPPERS_cfg_valueof_module_302[] = "CTwoWheelBalanceControl.o"; | |
1717 | -#line 60 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1716 | +const char TOPPERS_cfg_valueof_module_302[] = "CTailRocketControlFactory.o"; | |
1717 | +#line 62 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1718 | 1718 | const unsigned_t TOPPERS_cfg_static_api_303 = 303; |
1719 | -const char TOPPERS_cfg_valueof_module_303[] = "CTwoWheelBalanceControlFactory.o"; | |
1720 | -#line 61 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1719 | +const char TOPPERS_cfg_valueof_module_303[] = "CTwoWheelBalanceControl.o"; | |
1720 | +#line 63 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1721 | 1721 | const unsigned_t TOPPERS_cfg_static_api_304 = 304; |
1722 | -const char TOPPERS_cfg_valueof_module_304[] = "ADetection.o"; | |
1723 | -#line 62 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1722 | +const char TOPPERS_cfg_valueof_module_304[] = "CTwoWheelBalanceControlFactory.o"; | |
1723 | +#line 64 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1724 | 1724 | const unsigned_t TOPPERS_cfg_static_api_305 = 305; |
1725 | -const char TOPPERS_cfg_valueof_module_305[] = "CMotorPowerDetection.o"; | |
1726 | -#line 63 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1725 | +const char TOPPERS_cfg_valueof_module_305[] = "ADetection.o"; | |
1726 | +#line 65 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1727 | 1727 | const unsigned_t TOPPERS_cfg_static_api_306 = 306; |
1728 | -const char TOPPERS_cfg_valueof_module_306[] = "CMileageDetection.o"; | |
1729 | -#line 64 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1728 | +const char TOPPERS_cfg_valueof_module_306[] = "CMotorPowerDetection.o"; | |
1729 | +#line 66 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1730 | 1730 | const unsigned_t TOPPERS_cfg_static_api_307 = 307; |
1731 | -const char TOPPERS_cfg_valueof_module_307[] = "CDirectionDetection.o"; | |
1732 | -#line 65 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1731 | +const char TOPPERS_cfg_valueof_module_307[] = "CMileageDetection.o"; | |
1732 | +#line 67 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1733 | 1733 | const unsigned_t TOPPERS_cfg_static_api_308 = 308; |
1734 | -const char TOPPERS_cfg_valueof_module_308[] = "CMotorDetectionFactory.o"; | |
1735 | -#line 66 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1734 | +const char TOPPERS_cfg_valueof_module_308[] = "CDirectionDetection.o"; | |
1735 | +#line 68 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1736 | 1736 | const unsigned_t TOPPERS_cfg_static_api_309 = 309; |
1737 | -const char TOPPERS_cfg_valueof_module_309[] = "CTailAngleDetection.o"; | |
1738 | -#line 67 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1737 | +const char TOPPERS_cfg_valueof_module_309[] = "CMotorDetectionFactory.o"; | |
1738 | +#line 69 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1739 | 1739 | const unsigned_t TOPPERS_cfg_static_api_310 = 310; |
1740 | -const char TOPPERS_cfg_valueof_module_310[] = "CCourseOutDetection.o"; | |
1741 | -#line 68 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1740 | +const char TOPPERS_cfg_valueof_module_310[] = "CTailAngleDetection.o"; | |
1741 | +#line 70 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1742 | 1742 | const unsigned_t TOPPERS_cfg_static_api_311 = 311; |
1743 | -const char TOPPERS_cfg_valueof_module_311[] = "CFallDetection.o"; | |
1744 | -#line 69 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1743 | +const char TOPPERS_cfg_valueof_module_311[] = "CCourseOutDetection.o"; | |
1744 | +#line 71 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1745 | 1745 | const unsigned_t TOPPERS_cfg_static_api_312 = 312; |
1746 | -const char TOPPERS_cfg_valueof_module_312[] = "CGrayDetection.o"; | |
1747 | -#line 70 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1746 | +const char TOPPERS_cfg_valueof_module_312[] = "CFallDetection.o"; | |
1747 | +#line 72 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1748 | 1748 | const unsigned_t TOPPERS_cfg_static_api_313 = 313; |
1749 | -const char TOPPERS_cfg_valueof_module_313[] = "CImpactDetection.o"; | |
1750 | -#line 71 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1749 | +const char TOPPERS_cfg_valueof_module_313[] = "CGrayDetection.o"; | |
1750 | +#line 73 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1751 | 1751 | const unsigned_t TOPPERS_cfg_static_api_314 = 314; |
1752 | -const char TOPPERS_cfg_valueof_module_314[] = "CObstacleDetection.o"; | |
1753 | -#line 72 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1752 | +const char TOPPERS_cfg_valueof_module_314[] = "CImpactDetection.o"; | |
1753 | +#line 74 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1754 | 1754 | const unsigned_t TOPPERS_cfg_static_api_315 = 315; |
1755 | -const char TOPPERS_cfg_valueof_module_315[] = "CSensorDetectionFactory.o"; | |
1756 | -#line 73 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1755 | +const char TOPPERS_cfg_valueof_module_315[] = "CObstacleDetection.o"; | |
1756 | +#line 75 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1757 | 1757 | const unsigned_t TOPPERS_cfg_static_api_316 = 316; |
1758 | -const char TOPPERS_cfg_valueof_module_316[] = "CStepDetection.o"; | |
1759 | -#line 74 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1758 | +const char TOPPERS_cfg_valueof_module_316[] = "CSensorDetectionFactory.o"; | |
1759 | +#line 76 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1760 | 1760 | const unsigned_t TOPPERS_cfg_static_api_317 = 317; |
1761 | -const char TOPPERS_cfg_valueof_module_317[] = "CTouchSensorDetection.o"; | |
1762 | -#line 75 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1761 | +const char TOPPERS_cfg_valueof_module_317[] = "CStepDetection.o"; | |
1762 | +#line 77 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1763 | 1763 | const unsigned_t TOPPERS_cfg_static_api_318 = 318; |
1764 | -const char TOPPERS_cfg_valueof_module_318[] = "CTimeDetection.o"; | |
1765 | -#line 76 "../workspace/L_ETRobo2017_0916_suzuki/app.cfg" | |
1764 | +const char TOPPERS_cfg_valueof_module_318[] = "CTouchSensorDetection.o"; | |
1765 | +#line 78 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1766 | 1766 | const unsigned_t TOPPERS_cfg_static_api_319 = 319; |
1767 | -const char TOPPERS_cfg_valueof_module_319[] = "CTimeDetectionFactory.o"; | |
1767 | +const char TOPPERS_cfg_valueof_module_319[] = "CTimeDetection.o"; | |
1768 | +#line 79 "../workspace/R_ETRobo2017_0916_azuma/app.cfg" | |
1769 | +const unsigned_t TOPPERS_cfg_static_api_320 = 320; | |
1770 | +const char TOPPERS_cfg_valueof_module_320[] = "CTimeDetectionFactory.o"; | |
1768 | 1771 | #ifdef TOPPERS_cfg_inside_of_TDOM_KERNEL |
1769 | 1772 | #error missing '}' |
1770 | 1773 | #endif |
@@ -30,7 +30,7 @@ | ||
30 | 30 | |
31 | 31 | static const T_CTSK _module_ctsk_tab[5] = { |
32 | 32 | { TA_ACT, 0, _app_init_task, TPRI_APP_INIT_TASK, ROUND_STK_T(STACK_SIZE), _module_ustack_APP_INIT_TASK, DEFAULT_SSTKSZ, NULL }, |
33 | - { TA_ACT, 0, init_task, TMIN_APP_TPRI + 1, ROUND_STK_T(STACK_SIZE), _module_ustack_INIT_TASK, DEFAULT_SSTKSZ, NULL }, | |
33 | + { TA_ACT, 0, init_task, TMIN_APP_TPRI+1, ROUND_STK_T(STACK_SIZE), _module_ustack_INIT_TASK, DEFAULT_SSTKSZ, NULL }, | |
34 | 34 | { TA_NULL, 0, main_task, TMIN_APP_TPRI+3, ROUND_STK_T(STACK_SIZE), _module_ustack_MAIN_TASK, DEFAULT_SSTKSZ, NULL }, |
35 | 35 | { TA_NULL, 0, save_rgb_filter_result_task, TMIN_APP_TPRI+2, ROUND_STK_T(STACK_SIZE), _module_ustack_SAVE_RGB_FILTER_RESULT_TASK, DEFAULT_SSTKSZ, NULL }, |
36 | 36 | { TA_NULL, 0, bluetooth_receive_task, TMIN_APP_TPRI+4, ROUND_STK_T(STACK_SIZE), _module_ustack_BLUETOOTH_RECEIVE_TASK, DEFAULT_SSTKSZ, NULL }, |
@@ -25,7 +25,7 @@ | ||
25 | 25 | #define OBSTACLE_LOG 1 //ログ出力用のデータ格納数. |
26 | 26 | //#define OBSTACLE_LOG 1 |
27 | 27 | |
28 | -#define FALL_ANGLE 200000 //転倒時角度の閾値. | |
28 | +#define FALL_ANGLE 150000 //転倒時角度の閾値. | |
29 | 29 | #define DETECT_ANGLE 10 //起立時角度の閾値. |
30 | 30 | //#define FALL_LOG 45000 //ログ出力用のデータ格納数. |
31 | 31 | #define FALL_LOG 10000 |
@@ -59,8 +59,8 @@ | ||
59 | 59 | #define B6_MILEAGE 3125 //外カーブ. |
60 | 60 | #define B7_MILEAGE 1000 //内カーブ. |
61 | 61 | #define B8_MILEAGE 800 //内急カーブ. |
62 | -#define B9_MILEAGE 1295 //外カーブ. | |
63 | -#define B10_MILEAGE 1650//直線. | |
62 | +#define B9_MILEAGE 1395 //外カーブ. //1295 | |
63 | +#define B10_MILEAGE 1550//直線. //1650 | |
64 | 64 | |
65 | 65 | //ベーシックゴールからゲートまで移動 |
66 | 66 | #define LG01_MILEAGE 285 |
@@ -125,7 +125,7 @@ | ||
125 | 125 | //#define P2_POWER 3 |
126 | 126 | |
127 | 127 | //尻尾角度検知で使う、エリアごとの設定角度. |
128 | -#define B2_ANGLE 59 | |
128 | +#define B2_ANGLE 57 | |
129 | 129 | //#define P3_ANGLE 73 |
130 | 130 | //#define D1_ANGLE 90 |
131 | 131 | ////#define D1_ANGLE 74 |
@@ -233,7 +233,7 @@ | ||
233 | 233 | //スタート待ちエリア. |
234 | 234 | //B1区間. |
235 | 235 | //RUN_information m_RUN_information = {左モータパワー, 右モータパワー, 尻尾角度, 旋回角度};. |
236 | - struct RUN_information B1_RUN_information = {BRAKE_POWER, BRAKE_POWER, 61, 0}; | |
236 | + struct RUN_information B1_RUN_information = {BRAKE_POWER, BRAKE_POWER, 59, 0}; | |
237 | 237 | m_CDrivingTailMoveArea = new CDrivingArea(B1_RUN_information, LightPID_Gain, m_StopDetection, |
238 | 238 | m_B2AreaTailAngleDetection, m_CTailMotorControl, m_C180DirectionCorrectControl, m_CLRMotorPowerControl); |
239 | 239 |
@@ -277,7 +277,7 @@ | ||
277 | 277 | |
278 | 278 | //B3区間. |
279 | 279 | //RUN_information m_RUN_information = {左モータパワー, 右モータパワー, 尻尾角度, 旋回角度};. |
280 | - struct PID_Gain B3_2_LightPID_Gain = {0.25, 0.001, 0.4}; | |
280 | + struct PID_Gain B3_2_LightPID_Gain = {0.07, 0.001, 0.3}; | |
281 | 281 | //struct RUN_information B3_RUN_information = {40, 45, 10, 0}; |
282 | 282 | struct RUN_information B3_2_RUN_information = {50, 50, 10, 0}; |
283 | 283 | // struct RUN_information B3_2_RUN_information = {22, 22, 10, 0}; |
@@ -289,7 +289,7 @@ | ||
289 | 289 | //加速. |
290 | 290 | //B4区間. |
291 | 291 | //RUN_information m_RUN_information = {左モータパワー, 右モータパワー, 尻尾角度, 旋回角度};. |
292 | - struct PID_Gain B4_LightPID_Gain = {0.15, 0.001, 0.3}; | |
292 | + struct PID_Gain B4_LightPID_Gain = {0.04, 0.001, 0.5}; | |
293 | 293 | // struct RUN_information B4_RUN_information = {65, 70, 10, 0}; |
294 | 294 | struct RUN_information B4_RUN_information = {75, 75, 10, 0}; |
295 | 295 | m_CDrivingB4Area = new CDrivingArea(B4_RUN_information, B4_LightPID_Gain, m_StopDetection, |
@@ -298,7 +298,7 @@ | ||
298 | 298 | //直線. |
299 | 299 | //B5区間. |
300 | 300 | //RUN_information m_RUN_information = {左モータパワー, 右モータパワー, 尻尾角度, 旋回角度};. |
301 | - struct PID_Gain B5_LightPID_Gain = {0.1, 0.003, 0.4}; | |
301 | + struct PID_Gain B5_LightPID_Gain = {0.10, 0.003, 0.4}; | |
302 | 302 | struct RUN_information B5_RUN_information = {140, 140, 10, 0}; |
303 | 303 | //struct RUN_information B5_RUN_information = {80, 76, 10, 0}; |
304 | 304 | m_CDrivingB5Area = new CDrivingArea(B5_RUN_information, B5_LightPID_Gain, m_StopDetection, |
@@ -326,7 +326,8 @@ | ||
326 | 326 | //B8区間. |
327 | 327 | //RUN_information m_RUN_information = {左モータパワー, 右モータパワー, 尻尾角度, 旋回角度};. |
328 | 328 | struct PID_Gain B8_LightPID_Gain = {0.35, 0.001, 3.5}; |
329 | - struct RUN_information B8_RUN_information = {40, 80, 10, 0}; | |
329 | +// struct RUN_information B8_RUN_information = {40, 80, 10, 0}; | |
330 | + struct RUN_information B8_RUN_information = {50, 80, 10, 0}; | |
330 | 331 | // struct RUN_information B8_RUN_information = {48, 80, 10, 0}; |
331 | 332 | m_CDrivingB8Area = new CDrivingArea(B8_RUN_information, B8_LightPID_Gain, m_StopDetection, |
332 | 333 | m_B8AreaMileageDetection, m_CTailBrakeControl, m_CLightPIDControl, m_CTwoWheelBalanceControl); |
@@ -343,7 +344,7 @@ | ||
343 | 344 | //直線(ベーシックラスト). |
344 | 345 | //B10区間. |
345 | 346 | //RUN_information m_RUN_information = {左モータパワー, 右モータパワー, 尻尾角度, 旋回角度};. |
346 | - struct PID_Gain B10_LightPID_Gain = {0.05, 0.005, 0.6}; | |
347 | + struct PID_Gain B10_LightPID_Gain = {0.05, 0.001, 0.3}; | |
347 | 348 | struct RUN_information B10_RUN_information = {140, 140, 10, 0}; |
348 | 349 | // struct RUN_information B10_RUN_information = {80, 76, 10, 0}; |
349 | 350 | m_CDrivingB10Area = new CDrivingArea(B10_RUN_information, B10_LightPID_Gain, m_StopDetection, |
@@ -773,9 +774,9 @@ | ||
773 | 774 | ev3_speaker_set_volume(50); |
774 | 775 | ev3_speaker_play_tone(261.63, 1000); |
775 | 776 | //m_AArea[area_count++] = m_CTailMotorCalibrationArea; |
776 | - m_AArea[area_count++] = m_CLightPIDCalibrationArea; // タッチ待ち→White | |
777 | - m_AArea[area_count++] = m_CLightPIDCalibrationArea; // タッチ待ち→Black | |
778 | - m_AArea[area_count++] = m_CLightPIDCalibrationArea; // タッチ待ち→Gray | |
777 | + //m_AArea[area_count++] = m_CLightPIDCalibrationArea; // タッチ待ち→White | |
778 | + //m_AArea[area_count++] = m_CLightPIDCalibrationArea; // タッチ待ち→Black | |
779 | + //m_AArea[area_count++] = m_CLightPIDCalibrationArea; // タッチ待ち→Gray | |
779 | 780 | m_AArea[area_count++] = m_CDrivingTailMoveArea1PointHarf; |
780 | 781 | m_AArea[area_count++] = m_CDrivingTailBrakeArea1; // 尻尾を固定する. |
781 | 782 | m_AArea[area_count++] = m_CLightPIDTiltCalibrationArea; // タッチ待ち→White |
@@ -8,11 +8,13 @@ | ||
8 | 8 | #include "ev3api.h" |
9 | 9 | #include "CLightPIDControl.h" |
10 | 10 | |
11 | -rgb_raw_t CLightPIDControl::rgb_tmpLight = {0, 0, 158}; | |
11 | +rgb_raw_t CLightPIDControl::rgb_tmpLight = {0, 0, 52}; | |
12 | +//rgb_raw_t CLightPIDControl::rgb_tmpLight = {0, 0, 158}; | |
12 | 13 | //rgb_raw_t CLightPIDControl::rgb_tmpLight.g = 0; |
13 | 14 | //rgb_raw_t CLightPIDControl::rgb_tmpLight.b = 0; |
14 | 15 | |
15 | -rgb_raw_t CLightPIDControl::rgb_GraytmpLight = {0, 0, 84}; | |
16 | +rgb_raw_t CLightPIDControl::rgb_GraytmpLight = {0, 0, 70}; | |
17 | +//rgb_raw_t CLightPIDControl::rgb_GraytmpLight = {0, 0, 84}; | |
16 | 18 | //rgb_raw_t CLightPIDControl::rgb_P1tmpLight.g = 0; |
17 | 19 | //rgb_raw_t CLightPIDControl::rgb_P1tmpLight.b = 0; |
18 | 20 |