Skip to content

Commit

Permalink
Merge pull request #11 from PurdueElectricRacing/feature/millan/simpl…
Browse files Browse the repository at this point in the history
…ePyTestAndTypeHints

Type hints + higher precision serial (+ simple Pytest which will be rewritten)
  • Loading branch information
LelsersLasers authored Jan 26, 2025
2 parents 1dd6a93 + d361046 commit 7306e96
Show file tree
Hide file tree
Showing 39 changed files with 4,719 additions and 1,041 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# HIL Tester for PER

## Running

- Code in `./TestBench` runs on the Arduino
- Basically it just reads commands over the serial port and either executs them or writes messages back over the serial port
- To flash it, use the Arduino IDE
- Code in `./scripts` runs on your laptop
- It uses all the Python files
- Each file in `./scripts` can run a Pytest script to test some board on the car
- Do `./test.sh [filename]` to run the script, or no filename to run all of them
- (Note: have to run from the `./scripts` directory)
- Make sure you correctly set `firmware_path` in `./hil_params.json` to the path of the primary PER firmware repo!

## Notes

### Input vs Output

- `AI`/`DI` = inputs to hil (reads from the car/other board -> Arduino -> laptop/Python)
- `AO`/`DO` = outputs from hil (writes from laptop/Python -> Arduino -> car/other board)
Loading

0 comments on commit 7306e96

Please sign in to comment.