|
ETrobocon2017 - 片山研究所モデルベース開発推進事業部
|
#include <stdio.h>#include <stdlib.h>#include <math.h>#include <string.h>
マクロ定義 | |
| #define | DRIVING_POWER 30 |
| #define | GYRO_OFFSET 0 /* WCZTItZbgl(px0[deg/sec]) */ |
| #define | LIGHT_WHITE 40 /* F̌ZTl */ |
| #define | LIGHT_BLACK 0 /* F̌ZTl */ |
| #define | SONAR_ALERT_DISTANCE 30 /* gZTɂQm[cm] */ |
| #define | TAIL_ANGLE_STAND_UP 93 /* S~̊px[x] */ |
| #define | TAIL_ANGLE_DRIVE 3 /* oXs̊px[x] */ |
| #define | P_GAIN 2.5F /* S~p[^W */ |
| #define | PWM_ABS_MAX 60 /* S~p[^PWMől */ |
| #define | CMD_START '1' /* [gX^[gR}h */ |
| #define | BLACK 2 |
| #define | WHITE 47 |
| #define | GREY (BLACK+WHITE)/2 |
| #define | CALIB_FONT (EV3_FONT_SMALL) |
| #define | CALIB_FONT_WIDTH (6/*TODO: magic number*/) |
| #define | CALIB_FONT_HEIGHT (8/*TODO: magic number*/) |
| #define | DRIVE_L EV3_PORT_C |
| #define | DRIVE_R EV3_PORT_B |
| #define | ARM EV3_PORT_A |
| #define | TAIL EV3_PORT_D |
| #define | ULTRASONIC EV3_PORT_3 |
| #define | TOUCH EV3_PORT_1 |
| #define | IR EV3_PORT_2 |
| #define | GYRO EV3_PORT_4 |
| #define | DEL 0.004 |
| #define ARM EV3_PORT_A |
common_definition.h の 35 行目に定義があります。
| #define BLACK 2 |
common_definition.h の 24 行目に定義があります。
| #define CALIB_FONT (EV3_FONT_SMALL) |
common_definition.h の 29 行目に定義があります。
| #define CALIB_FONT_HEIGHT (8/*TODO: magic number*/) |
common_definition.h の 31 行目に定義があります。
| #define CALIB_FONT_WIDTH (6/*TODO: magic number*/) |
common_definition.h の 30 行目に定義があります。
| #define CMD_START '1' /* [gX^[gR}h */ |
common_definition.h の 23 行目に定義があります。
| #define DEL 0.004 |
common_definition.h の 41 行目に定義があります。
| #define DRIVE_L EV3_PORT_C |
common_definition.h の 33 行目に定義があります。
| #define DRIVE_R EV3_PORT_B |
common_definition.h の 34 行目に定義があります。
| #define DRIVING_POWER 30 |
common_definition.h の 11 行目に定義があります。
common_definition.h の 26 行目に定義があります。
| #define GYRO EV3_PORT_4 |
common_definition.h の 40 行目に定義があります。
| #define GYRO_OFFSET 0 /* WCZTItZbgl(px0[deg/sec]) */ |
common_definition.h の 13 行目に定義があります。
| #define IR EV3_PORT_2 |
common_definition.h の 39 行目に定義があります。
| #define LIGHT_BLACK 0 /* F̌ZTl */ |
common_definition.h の 15 行目に定義があります。
| #define LIGHT_WHITE 40 /* F̌ZTl */ |
common_definition.h の 14 行目に定義があります。
| #define P_GAIN 2.5F /* S~p[^W */ |
common_definition.h の 19 行目に定義があります。
| #define PWM_ABS_MAX 60 /* S~p[^PWMől */ |
common_definition.h の 20 行目に定義があります。
| #define SONAR_ALERT_DISTANCE 30 /* gZTɂQm[cm] */ |
common_definition.h の 16 行目に定義があります。
| #define TAIL EV3_PORT_D |
common_definition.h の 36 行目に定義があります。
| #define TAIL_ANGLE_DRIVE 3 /* oXs̊px[x] */ |
common_definition.h の 18 行目に定義があります。
| #define TAIL_ANGLE_STAND_UP 93 /* S~̊px[x] */ |
common_definition.h の 17 行目に定義があります。
| #define TOUCH EV3_PORT_1 |
common_definition.h の 38 行目に定義があります。
| #define ULTRASONIC EV3_PORT_3 |
common_definition.h の 37 行目に定義があります。
| #define WHITE 47 |
common_definition.h の 25 行目に定義があります。
1.8.13