Skip to content

Latest commit

 

History

History
46 lines (36 loc) · 1.3 KB

File metadata and controls

46 lines (36 loc) · 1.3 KB

VehicleControlUnit

Vehicle Control Unit (VCU) for the 2026 Longhorn Racing Solar car

CubeMX Picture

Getting Started

Cloning

Clone this repository using the following command

git clone git@github.com:lhr-solar/PS-VehicleControlUnit.git --recursive

Installation

Follow the installation instructions for your specific platform, found here.

Additionally, install the Arduino IDE

Command Usage

Compiling Firmware

All firmware is stored in the Firmware/ directory and must be run while in a nix shell. For the first time you will need to run

chmod +x ./run_nix.sh
./run_nix.sh

This will place you in a nix shell with all needed dependencies. After the first time, you only need to run the below command to enter the nix shell.

./run_nix.sh

To compile production firmware, simply run:

make

Compiling Tests

To compile a specific test file, run:

make TEST=[name of test excluding .c and test_]

Test files are located in test/ and must have the prefix test_ or else the test won't compile correctly. If you want to run the blinky test, which is located in tests/blinky_test.c you will run

make TEST=blinky