Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #32

Merged
merged 80 commits into from
Jul 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
9e5f498
remove the test slider in license tab
tcfshcrw Apr 26, 2024
7219f8f
Added delay in serial communication task since otherwise ESP32 S3 sto…
ChrGri Apr 27, 2024
0405d0f
Remove force range slider to be pedal specific, since it resulted in …
ChrGri Apr 27, 2024
73a15c8
fix the bug that slider maximun change problem
tcfshcrw Apr 27, 2024
935a554
bug fix for I2C scan and MPC4725 module
tcfshcrw Apr 28, 2024
dd17c52
Added PlatformIO project
ChrGri Apr 30, 2024
35013f3
Switched from byte to uint8
ChrGri Apr 30, 2024
6bef42b
Switched from byte to uint8 - part 2
ChrGri Apr 30, 2024
a256ce9
fix a bug that effect naming in vscode
tcfshcrw Apr 30, 2024
d5902a3
Update platformio.ini
ChrGri Apr 30, 2024
2313d35
Common platformio.ini section
ChrGri Apr 30, 2024
64f7ce2
update platformio.ini
tcfshcrw Apr 30, 2024
037ee17
Update platformio.ini
tcfshcrw Apr 30, 2024
cddcb7e
Rudder first implement
tcfshcrw May 1, 2024
283804d
Revert "Rudder first implement"
tcfshcrw May 1, 2024
8c4f61e
combine axis for vjoy
tcfshcrw May 1, 2024
fde750f
More robust USB output
ChrGri May 1, 2024
bc41722
Added serial joystick test project
ChrGri May 2, 2024
768abe7
Disable USB MSC
ChrGri May 3, 2024
eb98cd4
Add serial monitor baudrate into platfromio.ini
tcfshcrw May 3, 2024
a99ca3f
Enable reboot flag added
ChrGri May 3, 2024
5170072
add speedcrafter PCB env
tcfshcrw May 4, 2024
c5093d5
add PCB version 7 for ESP32 S3 serial chip out
tcfshcrw May 5, 2024
3011ce4
Clear serial write errors
ChrGri May 5, 2024
39bd3ba
Merge branch 'develop' of https://github.com/ChrGri/DIY-Sim-Racing-FF…
ChrGri May 5, 2024
6f6af7a
Serial joystick test stable output
ChrGri May 6, 2024
70269aa
Reliable CDC and HID output from ESP32 S3
ChrGri May 6, 2024
62b8afc
Add RTS/DTR checkbox, make reboot enable false
tcfshcrw May 7, 2024
07540b1
MCP4725 fix/code cleanup
tcfshcrw May 8, 2024
4dea57f
Unique COM port list
ChrGri May 8, 2024
10e69d1
Auto connect is follow each pedal now
tcfshcrw May 8, 2024
3b43cbf
workaround for auto-connect for ESP32S3
tcfshcrw May 10, 2024
7332fc3
bug fix for auto connect
tcfshcrw May 10, 2024
ff37760
small fix for combined axis
tcfshcrw May 11, 2024
993ebaa
stop the serial timer before reconnect back
tcfshcrw May 11, 2024
51b714d
DTR/RTS reset when opeing serial port to fix autoconnect
ChrGri May 13, 2024
6532d3a
Add RTS/DTR false control when connecting
tcfshcrw May 18, 2024
a455d39
Update arduino.yml
tcfshcrw May 20, 2024
f50c672
Add plugin version info into plugin
tcfshcrw May 20, 2024
5889c45
Add plugin dev version tag
tcfshcrw May 20, 2024
d0d8524
Bugfix: buffersize
ChrGri May 23, 2024
bb681eb
change esp32 core to 2.0.17
tcfshcrw May 28, 2024
62e0590
UI improvement
tcfshcrw Jun 10, 2024
31b6399
Add power circuit with brake resistor repo in the readme
tcfshcrw Jun 11, 2024
e8ba885
Made pedal only travel as much as parameterized travel length from si…
ChrGri Jun 21, 2024
f5a7521
Increased KF speed to reduce filter latency
ChrGri Jun 23, 2024
9dc1260
change wheeel slip amp scale
tcfshcrw Jun 28, 2024
7d7feb3
Added build script for platformio
ChrGri Jul 12, 2024
684a2fb
Updated action
ChrGri Jul 12, 2024
59535a5
Changed working dir for github action
ChrGri Jul 12, 2024
58e02c0
Bugfix #1
ChrGri Jul 12, 2024
dd09e78
Change to run on windows server
ChrGri Jul 12, 2024
4f2b669
Unified all boards build process
ChrGri Jul 12, 2024
dba2dc7
Bugfix
ChrGri Jul 12, 2024
48bb3f5
Zip the build artifacts
ChrGri Jul 12, 2024
df0d445
Bugfix #1
ChrGri Jul 12, 2024
8ee3c9b
Bugfix #2
ChrGri Jul 12, 2024
c1e789a
Bugfix #3
ChrGri Jul 12, 2024
12cb263
bugfix #4
ChrGri Jul 12, 2024
57605d8
bugfix #5
ChrGri Jul 12, 2024
d55280f
bugfix #6
ChrGri Jul 12, 2024
aa34dfb
bugfix #7
ChrGri Jul 12, 2024
8af2b70
bugfix #7
ChrGri Jul 12, 2024
88c572f
bugfix #9
ChrGri Jul 12, 2024
5f71b2f
bugfix #9
ChrGri Jul 12, 2024
2aa93dd
bugfix #10
ChrGri Jul 12, 2024
eee78b9
bugfix #11
ChrGri Jul 12, 2024
7787de7
bugfix #12
ChrGri Jul 12, 2024
9b33ed5
bugfix #13
ChrGri Jul 12, 2024
e951943
bugfix #14
ChrGri Jul 12, 2024
13b463a
#16
ChrGri Jul 12, 2024
e7d4487
Add action file for simhub plugin build
ChrGri Jul 12, 2024
a45e758
bugfix #1
ChrGri Jul 12, 2024
5f57a6e
added seperate workflow to publish releases
ChrGri Jul 12, 2024
86f8095
bugfix #1
ChrGri Jul 12, 2024
ba2e28b
bugfix #3
ChrGri Jul 12, 2024
59198bd
bugfix #4
ChrGri Jul 12, 2024
313db3b
bugfix #5
ChrGri Jul 12, 2024
239ae78
#6
ChrGri Jul 12, 2024
4e79628
#7
ChrGri Jul 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/arduino.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ jobs:
#- name: List files in dir 2
# run: |
# ls ${{ github.workspace }}

- name: Edit version
run: sed -i "s/\(AssemblyVersion(""\([0-9]\+\.\)\{3\}\)\([0-9]\+\)/\1${{github.run_number}}/" "SimHubPlugin/Properties/AssemblyInfo.cs"

- name: Restore Packages
run: nuget restore "SimHubPlugin/User.PluginSdkDemo.sln"

Expand Down
103 changes: 103 additions & 0 deletions .github/workflows/platformio.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
name: build_firmware

on: [push]


# see e.g. https://cgrotz.github.io/2020-08-24-esp32_ci_cd_part2/

jobs:
buildFirmware:
#runs-on: ubuntu-latest
runs-on: windows-latest

steps:

# Prepare environment
- uses: actions/checkout@main
- uses: actions/cache@v3
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install PlatformIO Core
run: pip install --upgrade platformio





# Build ESP code
- name: Build PlatformIO Project ESP32
working-directory: ./ESP32
run: |
pio system info
pio run --environment esp32
pio run --environment esp32s3usbotg
pio run --environment esp32-speedcrafter








# copy files to dir
- name: Copy files to packing dir
run: |
copy ${{ github.workspace }}/ESP32/.pio/build/esp32/firmware.bin ${{ github.workspace }}/Helper/bins/esp32
copy ${{ github.workspace }}/ESP32/.pio/build/esp32/bootloader.bin ${{ github.workspace }}/Helper/bins/esp32
copy ${{ github.workspace }}/ESP32/.pio/build/esp32/partitions.bin ${{ github.workspace }}/Helper/bins/esp32
copy ${{ github.workspace }}/ESP32/.pio/build/esp32s3usbotg/firmware.bin ${{ github.workspace }}/Helper/bins/esp32s3
copy ${{ github.workspace }}/ESP32/.pio/build/esp32s3usbotg/bootloader.bin ${{ github.workspace }}/Helper/bins/esp32s3
copy ${{ github.workspace }}/ESP32/.pio/build/esp32s3usbotg/partitions.bin ${{ github.workspace }}/Helper/bins/esp32s3
copy ${{ github.workspace }}/ESP32/.pio/build/esp32-speedcrafter/firmware.bin ${{ github.workspace }}/Helper/bins/esp32_speedcrafter_PCB_V1p4
copy ${{ github.workspace }}/ESP32/.pio/build/esp32-speedcrafter/bootloader.bin ${{ github.workspace }}/Helper/bins/esp32_speedcrafter_PCB_V1p4
copy ${{ github.workspace }}/ESP32/.pio/build/esp32-speedcrafter/partitions.bin ${{ github.workspace }}/Helper/bins/esp32_speedcrafter_PCB_V1p4







# copy files to dir
- name: List files in dir
run: |
dir ${{ github.workspace }}/Helper/bins/esp32






# zip plugin binaries
- name: ZIP files
run: |
7z a ${{ github.workspace }}/Helper/zip/esp32.zip ${{ github.workspace }}/Helper/bins/esp32/
7z a ${{ github.workspace }}/Helper/zip/esp32s3.zip ${{ github.workspace }}/Helper/bins/esp32s3/
7z a ${{ github.workspace }}/Helper/zip/esp32_speedcrafter.zip ${{ github.workspace }}/Helper/bins/esp32_speedcrafter_PCB_V1p4/
# 7z a ./Helper/zip/esp32.zip @./Helper/zip/filelist_esp32.txt
# 7z a ./Helper/zip/esp32s3.zip @Helper/zip/filelist_esp32s3.txt
# 7z a./Helper/zip/esp32_speedcrafter.zip @Helper/zip/filelist_esp32_speedcrafter.txt





# Publish as build artifact
- name: Attach artifact
uses: actions/upload-artifact@v2
with:
name: firmware_esp32
path: |
./Helper/zip/esp32.zip
./Helper/zip/esp32s3.zip
./Helper/zip/esp32_speedcrafter.zip



29 changes: 29 additions & 0 deletions .github/workflows/publishRelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: build_release


# Only trigger, when the build workflow succeeded, see https://stackoverflow.com/questions/62750603/github-actions-trigger-another-action-after-one-action-is-completed
on:
workflow_run:
workflows: ["build_firmware","build_simhub_plugin"]
types:
- completed

#on: [push]

# This is the list of jobs that will be run concurrently.
# Since we use a build matrix, the actual number of jobs
# started depends on how many configurations the matrix
# will produce.

# https://docs.github.com/de/actions/using-workflows/storing-workflow-data-as-artifacts

jobs:
generateRelase:
runs-on: ubuntu-latest
steps:
- name: Download math result for job 2
uses: actions/download-artifact@v4
- name: Print the final result
shell: bash
run: |
echo The result is good
32 changes: 32 additions & 0 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: build_release


# Only trigger, when the build workflow succeeded, see https://stackoverflow.com/questions/62750603/github-actions-trigger-another-action-after-one-action-is-completed
on:
workflow_run:
workflows: ["build_firmware","build_simhub_plugin"]
types:
- completed



# This is the list of jobs that will be run concurrently.
# Since we use a build matrix, the actual number of jobs
# started depends on how many configurations the matrix
# will produce.

# https://docs.github.com/de/actions/using-workflows/storing-workflow-data-as-artifacts

jobs:
deploy:
name: deploy
runs-on: ubuntu-latest
steps:
- name: Download math result for job 2
uses: actions/download-artifact@v4
with:
name: ["simhub_plugin","firmware_esp32"]
- name: Print the final result
shell: bash
run: |
echo The result is good
86 changes: 86 additions & 0 deletions .github/workflows/simhubPlugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
name: build_simhub_plugin

on: [push]


# see e.g. https://cgrotz.github.io/2020-08-24-esp32_ci_cd_part2/

jobs:
########################################################################
# Build SimHub plugin
########################################################################
buildSimhubPlugin:
runs-on: windows-2019

steps:
- uses: actions/checkout@v2
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v1

- name: Setup NuGet
uses: NuGet/[email protected]

- name: Setup MS Build Systems
uses: microsoft/[email protected]

- uses: actions/cache@v3
name: Restore Caches
id: cache
with:
path: |
innounp050.rar
SimHub.8.01.2.zip
key: SimHub.8.01.2

- name: Download Requirements # Used to download the SimHub DLLs - only if not in cache.
if: steps.cache.outputs.cache-hit != 'true'
run: |
aria2c -j1 -o innounp050.rar "https://sourceforge.net/projects/innounp/files/innounp/innounp%200.50/innounp050.rar/download"
aria2c -j1 -o SimHub.8.01.2.zip "https://github.com/SHWotever/SimHub/releases/download/9.1.22/SimHub.9.01.22.zip"

- name: Extract Requirements # Used to extract the SimHub DLLs
run: |
7z x innounp050.rar
7z x SimHub.8.01.2.zip
dir
mkdir "C:\Program Files (x86)\SimHub\"
${{ github.workspace }}\innounp.exe -v -x -b -e -d"C:\Program Files (x86)\SimHub\" SimHubSetup_9.1.22.exe
- name: List files in dir
run: |
ls "C:\Program Files (x86)\SimHub\"

#- name: List files in dir 2
# run: |
# ls ${{ github.workspace }}
- name: Edit version
run: sed -i "s/\(AssemblyVersion(""\([0-9]\+\.\)\{3\}\)\([0-9]\+\)/\1${{github.run_number}}/" "SimHubPlugin/Properties/AssemblyInfo.cs"

- name: Restore Packages
run: nuget restore "SimHubPlugin/User.PluginSdkDemo.sln"

- name: Build solution
run: msbuild "SimHubPlugin/User.PluginSdkDemo.sln" -t:rebuild -property:Configuration=Release






# zip plugin binaries
- name: ZIP files
run: |
7z a ./SimHubPlugin/bin/SimHub_plugin.zip ./SimHubPlugin/bin/*







# Publish as build artifact
- name: Attach artifact
uses: actions/upload-artifact@v2
with:
name: simhub_plugin
path: |
./SimHubPlugin/bin/SimHub_plugin.zip
8 changes: 7 additions & 1 deletion Arduino/Esp32/Main/Main.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@

#define BLUETOOTH_GAMEPAD
//#define USB_JOYSTICK
#define SERIAL_COOMUNICATION_TASK_DELAY_IN_MS 1
#endif


Expand All @@ -113,6 +114,7 @@

//#define BLUETOOTH_GAMEPAD
#define USB_JOYSTICK
#define SERIAL_COOMUNICATION_TASK_DELAY_IN_MS 1
#endif


Expand Down Expand Up @@ -146,7 +148,7 @@

#define BLUETOOTH_GAMEPAD
//#define USB_JOYSTICK

#define SERIAL_COOMUNICATION_TASK_DELAY_IN_MS 1
#endif


Expand Down Expand Up @@ -177,6 +179,7 @@
#define BLUETOOTH_GAMEPAD
//#define USB_JOYSTICK

#define SERIAL_COOMUNICATION_TASK_DELAY_IN_MS 1
#endif


Expand Down Expand Up @@ -207,6 +210,7 @@

#define BLUETOOTH_GAMEPAD
//#define USB_JOYSTICK
#define SERIAL_COOMUNICATION_TASK_DELAY_IN_MS 1
#endif


Expand Down Expand Up @@ -248,5 +252,7 @@

//#define BLUETOOTH_GAMEPAD
#define USB_JOYSTICK

#define SERIAL_COOMUNICATION_TASK_DELAY_IN_MS 15
#endif

Loading
Loading