Merge pull request 'feat: broadcast uaux (12V aux battery) on CAN 0x210 (SKUDAK-448)' (#1) from feat/uaux-can-broadcast into main
Build Firmware / Build stm32-teslacharger (push) Successful in 1m0s
Build Firmware / Build stm32-teslacharger (push) Successful in 1m0s
This commit was merged in pull request #1.
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
name: Build Firmware
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [main]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build stm32-teslacharger
|
||||
runs-on: fedora
|
||||
|
||||
steps:
|
||||
- name: Checkout with submodules
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: recursive
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Build libopencm3
|
||||
run: make get-deps
|
||||
|
||||
- name: Build firmware
|
||||
run: make directories && make images -j$(nproc)
|
||||
|
||||
- name: Show binary size
|
||||
run: ls -lh stm32_charger.bin
|
||||
|
||||
- name: Upload binary
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: stm32-teslacharger-${{ github.sha }}
|
||||
path: stm32_charger.bin
|
||||
retention-days: 30
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
[submodule "libopencm3"]
|
||||
path = libopencm3
|
||||
url = git@github.com:jsphuebner/libopencm3.git
|
||||
url = https://github.com/jsphuebner/libopencm3.git
|
||||
[submodule "libopeninv"]
|
||||
path = libopeninv
|
||||
url = git@github.com:jsphuebner/libopeninv.git
|
||||
url = https://github.com/jsphuebner/libopeninv.git
|
||||
|
||||
@@ -99,4 +99,7 @@ void ChargerCAN::MapMessages(CanMap* can)
|
||||
can->AddSend(Param::udc, 0x109, 8, 16, 1);
|
||||
can->AddSend(Param::idc, 0x109, 24, 16, 1);
|
||||
can->AddSend(Param::opmode, 0x109, 40, 3, 5); //Set charging and connlock at once
|
||||
|
||||
/***** Auxiliary TX *****/
|
||||
can->AddSend(Param::uaux, 0x210, 0, 8, 10); //12V aux battery: byte 0, gain=10 (0.1V/decivolts, SKUDAK-448)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user