Skip to content

PurdueElectricRacing/HIL-Testing

Folders and files

NameName
Last commit message
Last commit date
Sep 12, 2024
Jan 25, 2025
Jan 22, 2025
Mar 18, 2024
Jan 29, 2025
Mar 14, 2024
Jan 18, 2024
Jan 23, 2025
Nov 2, 2023
Nov 9, 2024
Jan 29, 2025

Repository files navigation

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)