A development workspace for working on the whole Open Car Controls project at once: contracts, firmware and mobile-app side by side, in one dev container with every toolchain.
This repo holds no product code and pins no versions. The three repos stay independent, each with its own CI and releases. If you only work on one of them, clone it directly and use its own dev container.
- Clone this repo and open it in VS Code:
git clone https://github.com/OpenCarControls/workspace.git OpenCarControls code OpenCarControls
- Run Dev Containers: Reopen in Container. Before the container starts,
setup.shclones any missing repo next to this README.
VS Code's Source Control view lists each repo separately.
Fork the repos you want to push to, then run the setup yourself before opening the container:
./setup.sh --fork <your-github-user>Each repo is cloned from your fork as origin, with OpenCarControls/<repo> added as upstream. Use --ssh or --https to choose the protocol; by default it matches how you cloned this repo.
Firmware and the app both consume contracts as a git submodule. Inside the dev container, ./contracts is bind-mounted over firmware/contracts and mobile-app/contracts, so all three paths are the same working copy:
- Edit a
.protoor TOML file once; both the firmware and the app build against it immediately, with no commit or fetch. git statusin firmware or the app showscontracts (new commits)while./contractsdiffers from that repo's pin. Commitcontractsthere to bump the pin once the contracts change is pushed.- Don't run
git submodule updateinside firmware or the app: it would check out their pinned commit in the shared copy.
Outside the container the mounts don't exist, so the two submodule paths stay empty.
- Rust with every firmware target (PC, Raspberry Pi, ESP32 RISC-V and Xtensa),
protoc, espflash and probe-rs, plus USB access for flashing. - Flutter (the version in
mobile-app/.flutter-version), the Android SDK andprotoc-gen-dartfor the app. buffor the contracts, and Node for the app's model compression script (tool/compress_model.sh).
Which firmware board rust-analyzer analyses comes from firmware/config.toml. Switch it with cargo xtask ide in firmware/, or the Firmware IDE tasks. Here it writes the rust-analyzer settings and the Firmware: debug … config to this folder's .vscode/, since that's VS Code's workspace root (see the firmware README).
AGENTS.md (loaded by CLAUDE.md) describes the layout and the cross-repo workflow. Each repo's own AGENTS.md still applies inside that repo.