Skip to content

Move sensor configs to per-board files, 1-Wire bus from the temp MW config - #558

Merged
Mateusz-Krajewski merged 6 commits into
board/2-actuatorsfrom
board/3-sensors
Nov 22, 2026
Merged

Mateusz-Krajewski merged 6 commits into
board/2-actuatorsfrom
board/3-sensors

Conversation

@Mateusz-Krajewski

@Mateusz-Krajewski Mateusz-Krajewski commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Stack płytek 3/5 (baza: board/2-actuators). Poprzedni: board/2-actuators, następny: board/4-i2c-bus.

Zmiana

  • Czujniki ciśnienia (kanały ADC + kalibracja a/b) i ID czujników 1-Wire w env_service EC → config_<Plytka>.json. FC i SEC_EC bez zmian (komputery do wycofania).
  • 1-Wire: core/temp nie ma już stałych /sys/bus/w1/devices/ i w1_bus_master1 — TempDriver(devices_path, bus_master) dostaje je w konstruktorze (sim: ignorowane). MW temp czyta je z nowego configu deployment/mw/temp/config_<Plytka>.json (w1_devices_path, w1_bus_master); brak/niepełny config → kInitializeError. MW jest wspólne, więc config trafia do pakietów wszystkich komputerów (wartości = dotychczasowe stałe).
  • README core/temp, mw/temp, env_service EC.

Test

build ec:pkg + fc:pkg (bbb-EB_V2) OK; UT całości na szczycie stacku.

Ryzyko i sprawdzenie na sprzęcie

Wartości configu = dotychczasowe stałe. Na BBB: temp_service startuje (log bez błędu configu) i widzi czujniki jak wcześniej.

…onfig

Pressure sensor ADC channels/calibration and 1-Wire sensor IDs of the EC, SEC_EC and FC env services move to config_<Board>.json. The 1-Wire sysfs directory and bus master name are no longer constants in core/temp: TempDriver takes them in its constructor and the temp MW reads them from its new config (deployment/mw/temp/config_<Board>.json).
@Mateusz-Krajewski
Mateusz-Krajewski marked this pull request as ready for review November 17, 2026 21:50
@Mateusz-Krajewski
Mateusz-Krajewski enabled stacked auto-merge November 17, 2026 21:55
Only the EC apps move to config_<Board>.json for now; FC and SEC_EC app configs and sources stay as on master, since those computers are going to be retired soon.
stacked auto-merge was automatically disabled November 22, 2026 17:12

Auto-merge was disabled for another pull request in the stack

Comment thread mw/temp/service/temp_service.cpp Resolved
@Mateusz-Krajewski
Mateusz-Krajewski enabled stacked auto-merge November 22, 2026 17:59
@Mateusz-Krajewski
Mateusz-Krajewski added this pull request to the merge queue Nov 22, 2026
Merged via the queue into master with commit d27faca Nov 22, 2026
2 of 4 checks passed
@Mateusz-Krajewski
Mateusz-Krajewski deleted the board/3-sensors branch November 22, 2026 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SW] Przystosowanie Konfiguracji aplikacji pod 2 różne projekty

2 participants