|
mirs_esp
|
機体のピン、通信、制御に使う定数を定義する。 [詳解]
マクロ定義 | |
| #define | PIN_ENC_A_L 4 |
| #define | PIN_ENC_B_L 5 |
| #define | PIN_ENC_A_R 13 |
| #define | PIN_ENC_B_R 14 |
| #define | PIN_DIR_R 25 |
| #define | PIN_PWM_R 26 |
| #define | PIN_DIR_L 32 |
| #define | PIN_PWM_L 33 |
| #define | ROS_DOMAIN_ID 90 |
| #define | WATCHDOG_TIMEOUT 1000 |
| #define | PIN_BATT_1 27 |
| #define | PIN_BATT_2 28 |
| #define | COUNTS_PER_REV 4096.0 |
変数 | |
| double | RKP = 80.0 |
| double | RKI = 30.0 |
| double | RKD = 8.0 |
| double | LKP = 80.0 |
| double | LKI = 30.0 |
| double | LKD = 8.0 |
| double | WHEEL_RADIUS = 0.04 |
| double | WHEEL_BASE = 0.38 |
| const int32_t | r_Channel = 0 |
| const int32_t | l_Channel = 1 |
| const int32_t | pwmFrequency = 5000 |
| const int32_t | pwmResolution = 8 |
機体のピン、通信、制御に使う定数を定義する。
config.h に定義があります。