mirs_esp
Toggle main menu visibility
読み取り中…
検索中…
一致する文字列を見つけられません
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
//足回り速度制御用
22
double
RKP
= 80.0;
23
double
RKI
= 30.0;
24
double
RKD
= 8.0;
25
double
LKP
= 80.0;
26
double
LKI
= 30.0;
27
double
LKD
= 8.0;
28
29
//車体パラメータ
30
#define COUNTS_PER_REV 4096.0
31
double
WHEEL_RADIUS
= 0.04;
//ホイール径
32
double
WHEEL_BASE
= 0.38;
//車輪間幅
33
34
// PWM設定
35
const
int32_t
r_Channel
= 0;
// PWMチャンネル
36
const
int32_t
l_Channel
= 1;
37
const
int32_t
pwmFrequency
= 5000;
// PWM周波数 (5kHz)
38
const
int32_t
pwmResolution
= 8;
// PWM分解能 (8ビット = 0-255)
RKP
double RKP
定義
config.h:22
LKI
double LKI
定義
config.h:26
RKI
double RKI
定義
config.h:23
LKP
double LKP
定義
config.h:25
RKD
double RKD
定義
config.h:24
r_Channel
const int32_t r_Channel
定義
config.h:35
LKD
double LKD
定義
config.h:27
pwmResolution
const int32_t pwmResolution
定義
config.h:38
WHEEL_RADIUS
double WHEEL_RADIUS
定義
config.h:31
WHEEL_BASE
double WHEEL_BASE
定義
config.h:32
pwmFrequency
const int32_t pwmFrequency
定義
config.h:37
l_Channel
const int32_t l_Channel
定義
config.h:36
mirs26_esp
config.h
構築:
1.18.0