mirs_esp
読み取り中…
検索中…
一致する文字列を見つけられません
config.h
[詳解]
1//エンコーダ用
2#define PIN_ENC_A_L 4
3#define PIN_ENC_B_L 5
4#define PIN_ENC_A_R 13
5#define PIN_ENC_B_R 14
6
7//足回り用
8#define PIN_DIR_R 25
9#define PIN_PWM_R 26
10#define PIN_DIR_L 32
11#define PIN_PWM_L 33
12
13//ROS用設定
14#define ROS_DOMAIN_ID 90
15#define WATCHDOG_TIMEOUT 1000
16
17//バッテリー用
18#define PIN_BATT_1 27
19#define PIN_BATT_2 28
20
21//足回り速度制御用
22double RKP = 80.0;
23double RKI = 30.0;
24double RKD = 8.0;
25double LKP = 80.0;
26double LKI = 30.0;
27double LKD = 8.0;
28
29//車体パラメータ
30#define COUNTS_PER_REV 4096.0
31double WHEEL_RADIUS = 0.04; //ホイール径
32double WHEEL_BASE = 0.38; //車輪間幅
33
34// PWM設定
35const int32_t r_Channel = 0; // PWMチャンネル
36const int32_t l_Channel = 1;
37const int32_t pwmFrequency = 5000; // PWM周波数 (5kHz)
38const int32_t pwmResolution = 8; // PWM分解能 (8ビット = 0-255)
double RKP
double LKI
double RKI
double LKP
double RKD
const int32_t r_Channel
double LKD
const int32_t pwmResolution
double WHEEL_RADIUS
double WHEEL_BASE
const int32_t pwmFrequency
const int32_t l_Channel