Skip to content

Commit 9579e5c

Browse files
authored
Merge pull request #4 from HMCL-UNIST/hj
test
2 parents e0513e1 + 18a87ee commit 9579e5c

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

_data/wiki/wiki.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
- title: "VESC와 배터리, 모터 연결하는 방법"
1414
url: "/posts/vesc-battery-motor-connection/"
1515

16-
- title: "VESC tool 다운로드 하기"
16+
- title: "VESC tool 다운로드 하기"
1717
url: "/posts/vesc-tool-download/"
1818

1919
- title: "VESC tool 기본 사용 방법"

_posts/2026-02-03-erpm-gain-calibration/2026-02-03-erpm-gain-calibration-en.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ When controlling a motor by speed rather than throttle, it is critical to find t
1818
VESC converts a speed command (m/s) into **ERPM (Electrical RPM)** and sends it to the motor. ERPM is the motor's RPM multiplied by the number of **pole pairs**.
1919

2020
$$
21-
ERPM = RPM \cdot pole\_pairs
21+
ERPM = RPM \cdot \text{pole_pairs}
2222
$$
2323

2424
The speed–ERPM relationship can be expressed with a gain and offset:
2525

2626
$$
27-
ERPM = speed \cdot speed\_to\_erpm\_gain + speed\_to\_erpm\_offset
27+
ERPM = speed \cdot \text{speed_to_erpm_gain} + \text{speed_to_erpm_offset}
2828
$$
2929

3030
VESC ROS packages use this relationship to convert speed commands into ERPM.
@@ -57,13 +57,13 @@ We calculate the theoretical ERPM gain for a Traxxas Fiesta with a Velineon moto
5757
The final gear ratio is the product of the pinion–spur ratio and the diff–shaft ratio.
5858

5959
$$
60-
\text{gear\_ratio} = \frac{83}{12} \times \frac{37}{13} \approx 19.69
60+
\text{gear_ratio} = \frac{83}{12} \times \frac{37}{13} \approx 19.69
6161
$$
6262

6363
### ERPM gain calculation
6464

6565
$$
66-
\text{speed\_to\_erpm\_gain} = \frac{\text{pole\_pairs} \cdot \text{gear\_ratio}}{2\pi \cdot \text{wheel\_radius}}
66+
\text{speed_to_erpm_gain} = \frac{\text{pole_pairs} \cdot \text{gear_ratio}}{2\pi \cdot \text{wheel_radius}}
6767
$$
6868

6969
Plugging in the values gives a theoretical speed_to_erpm_gain of **~7520** for the Traxxas Fiesta + Velineon setup. Update the value in `vesc.yaml` accordingly.

_posts/2026-02-03-erpm-gain-calibration/2026-02-03-erpm-gain-calibration.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ math: true
1818
VESC는 사용자의 속도 명령(m/s)을 모터가 이해하는 **ERPM(Electrical RPM)**으로 변환해 모터에 전달합니다. ERPM은 모터의 실제 RPM에 **극 쌍수(pole pairs)**를 곱한 값입니다.
1919

2020
$$
21-
ERPM = RPM \cdot pole\_pairs
21+
ERPM = RPM \cdot \text{pole_pairs}
2222
$$
2323

2424
속도와 ERPM의 관계는 다음과 같이 비례상수(gain과 offset)로 나타낼 수 있습니다.
2525

2626
$$
27-
ERPM = speed \cdot speed\_to\_erpm\_gain + speed\_to\_erpm\_offset
27+
ERPM = speed \cdot \text{speed_to_erpm_gain} + \text{speed_to_erpm_offset}
2828
$$
2929

3030
실제 VESC ROS 패키지에서도 위 관계식을 통해 사용자가 입력한 속도 명령을 ERPM으로 변환해 모터에 전달합니다.
@@ -57,13 +57,13 @@ Traxxas Fiesta 차량에 Velineon 모터 조합으로 이론적 ERPM 게인을
5757
최종 기어비는 피니언-스퍼 기어비와 디퍼런셜-샤프트 기어비를 곱해 구합니다.
5858

5959
$$
60-
\text{gear\_ratio} = \frac{83}{12} \times \frac{37}{13} \approx 19.69
60+
\text{gear_ratio} = \frac{83}{12} \times \frac{37}{13} \approx 19.69
6161
$$
6262

6363
### ERPM 게인 계산
6464

6565
$$
66-
\text{speed\_to\_erpm\_gain} = \frac{\text{pole\_pairs} \cdot \text{gear\_ratio}}{2\pi \cdot \text{wheel\_radius}}
66+
\text{speed_to_erpm_gain} = \frac{\text{pole_pairs} \cdot \text{gear_ratio}}{2\pi \cdot \text{wheel_radius}}
6767
$$
6868

6969
위 값을 대입하면 Traxxas Fiesta + Velineon 조합의 이론적 speed_to_erpm_gain 값은 **약 7520**입니다. `vesc.yaml`에 기록된 speed_to_erpm_gain 값을 변경해 사용하면 됩니다.

_posts/2026-02-03-servo-parameter/2026-02-03-servo-parameter-en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Gain is the ratio of servo value change to steering angle change. Measure the tu
9797
In Ackermann steering geometry, the relationship between steering angle and turning radius is as follows. The wheelbase is the distance between the front and rear axles, which can be measured directly with a ruler or referenced from manufacturer information.
9898

9999
$$
100-
turning\_radius = \frac{wheelbase}{\tan(steering\_angle)}
100+
\text{turning_radius} = \frac{\text{wheelbase}}{\tan(\text{steering_angle})}
101101
$$
102102

103103
Calculate the expected turning radius from the commanded steering angle and adjust the gain by comparing it with the actual measured turning radius.

_posts/2026-02-03-servo-parameter/2026-02-03-servo-parameter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ gain은 조향각 변화에 따른 서보 값 변화의 비율입니다. rviz에
9797
Ackermann steering geometry에서 조향각과 회전반경의 관계는 다음과 같습니다. wheelbase는 앞 차축과 뒷 차축 사이의 거리로, 자를 통해 직접 측정하거나, 제조사에 적혀있는 정보를 참고하면 됩니다.
9898

9999
$$
100-
turning\_radius = \frac{wheelbase}{\tan(steering\_angle)}
100+
\text{turning_radius} = \frac{\text{wheelbase}}{\tan(\text{steering_angle})}
101101
$$
102102

103103
명령한 조향각으로 예상 회전반경을 계산하고, 실제 측정된 회전반경과 비교하여 gain을 조정합니다.

0 commit comments

Comments
 (0)