Skip to content

Commit 5bae13b

Browse files
aoki-rtYusukeKato
andauthored
micro step 1/4 -> 1/8 change (#4)
* micro step 1/4 -> 1/8 change * arduino-esp32のバージョンを2.0.17に固定する * arduino/compile-sketchesのplatformsでesp32のバージョンを指定 * actions/upload-artifactのバージョンを4に更新 * actions/download-artifactもバージョン4に更新 * reportに失敗してもtrueを返すように設定 --------- Co-authored-by: YusukeKato <yusuke.kato@rt-net.jp>
1 parent 35b4a85 commit 5bae13b

File tree

6 files changed

+9
-6
lines changed

6 files changed

+9
-6
lines changed

.DS_Store

10 KB
Binary file not shown.

.github/workflows/compile-sketches.yaml

+5-2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ jobs:
2828
platforms: | # ESP32公式のpackage indexを使用する
2929
- name: esp32:esp32
3030
source-url: https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
31+
version: 2.0.17
3132
sketch-paths: |
3233
- pico_v2_STEP1_LED
3334
- pico_v2_STEP2_SWITCH
@@ -40,7 +41,7 @@ jobs:
4041
4142
# This step is needed to pass the size data to the report job
4243
- name: Upload sketches report to workflow artifact
43-
uses: actions/upload-artifact@v3
44+
uses: actions/upload-artifact@v4
4445
with:
4546
name: ${{ env.SKETCHES_REPORTS_ARTIFACT_NAME }}
4647
path: ${{ env.SKETCHES_REPORTS_PATH }}
@@ -52,12 +53,14 @@ jobs:
5253
steps:
5354
# This step is needed to get the size data produced by the compile jobs
5455
- name: Download sketches reports artifact
55-
uses: actions/download-artifact@v3
56+
uses: actions/download-artifact@v4
5657
with:
5758
name: ${{ env.SKETCHES_REPORTS_ARTIFACT_NAME }}
5859
path: ${{ env.SKETCHES_REPORTS_PATH }}
60+
continue-on-error: true
5961

6062
- uses: arduino/report-size-deltas@v1
6163
with:
6264
sketches-reports-source: ${{ env.SKETCHES_REPORTS_PATH }}
6365
github-token: ${{ secrets.GITHUB_TOKEN }}
66+
continue-on-error: true

pico_v2_STEP5_Straight/pico_v2_STEP5_Straight.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
#define MIN_HZ 40
3030
#define TIRE_DIAMETER (24.70)
31-
#define PULSE (TIRE_DIAMETER * PI / (35.0 / 10.0 * 20.0 * 4.0))
31+
#define PULSE (TIRE_DIAMETER * PI / (35.0 / 10.0 * 20.0 * 8.0))
3232
#define MIN_SPEED (MIN_HZ * PULSE)
3333

3434
hw_timer_t * g_timer0 = NULL;

pico_v2_STEP6_rotate/pico_v2_STEP6_rotate.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
#define MIN_HZ 40
3030
#define TIRE_DIAMETER (24.70)
31-
#define PULSE (TIRE_DIAMETER * PI / (35.0 / 10.0 * 20.0 * 4.0))
31+
#define PULSE (TIRE_DIAMETER * PI / (35.0 / 10.0 * 20.0 * 8.0))
3232
#define MIN_SPEED (MIN_HZ * PULSE)
3333
#define TREAD_WIDTH (31.5)
3434

pico_v2_STEP7_P_control/pico_v2_STEP7_P_control.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737

3838
#define MIN_HZ 40
3939
#define TIRE_DIAMETER (24.70)
40-
#define PULSE (TIRE_DIAMETER * PI / (35.0 / 10.0 * 20.0 * 4.0))
40+
#define PULSE (TIRE_DIAMETER * PI / (35.0 / 10.0 * 20.0 * 8.0))
4141
#define MIN_SPEED (MIN_HZ * PULSE)
4242

4343
//環境に合わせて変更する

pico_v2_STEP8_micromouse/parameter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#define TIRE_DIAMETER (24.7)
55
#define TREAD_WIDTH (31.5)
66
#define TREAD_CIRCUIT (TREAD_WIDTH * PI / 4)
7-
#define PULSE (TIRE_DIAMETER * PI / (35.0 / 10.0 * 20.0 * 4.0))
7+
#define PULSE (TIRE_DIAMETER * PI / (35.0 / 10.0 * 20.0 * 8.0))
88
#define MIN_HZ 40
99

1010
#define WAITLOOP_SLED 10

0 commit comments

Comments
 (0)