Skip to content

Commit

Permalink
control optimization through env var FAST
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeBusuttil committed Dec 30, 2024
1 parent e87b3e6 commit 9196532
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@ cd opendbc
./test.sh # all-in-one dependency installation, compiling, linting, and tests. It's what runs in CI
```

[`examples/`](examples/) contains small example programs that can read state from the car and control the steering, gas, and brakes.
[`examples/joystick.py`](examples/joystick.py) allows you to control a car with a joystick.
* [`examples/`](examples/) contains small example programs that can read state from the car and control the steering, gas, and brakes.
* [`examples/joystick.py`](examples/joystick.py) allows you to control a car with a joystick.
* running with `FAST=1` results in snappier build times (ie. `FAST=1 ./test.sh`)

### Project Structure
* [`opendbc/dbc/`](opendbc/dbc/) is a repository of [DBC](https://en.wikipedia.org/wiki/CAN_bus#DBC) files
Expand Down
2 changes: 1 addition & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ env = Environment(
CCFLAGS=[
"-g",
"-fPIC",
"-O0",
"-O0" if os.environ.get("FAST") else "-O2",
"-Wunused",
"-Werror",
"-Wshadow",
Expand Down

0 comments on commit 9196532

Please sign in to comment.