This repository contains the code for the Subsystems program, which is responsible for sending CAN messages over UDP and vice-versa, integrating the Dashboard with the various subsystems.
The Dart code loads some shared C libraries at runtime. This means those libraries must be compiled and generated beforehand. These libraries only need to be compiled once on your system, unless they are modified.
In the src
folder, run make
to generate src/can.so
and libserialport.so
SocketCAN is not supported on Windows, so to compile libserialport.dll
, simply run winbuild
. This command must be run with cmake
on your PATH. The easiest way to do this is to run it with the Developer Command Prompt for Visual Studio
, which can be found in the Start menu if you've installed Visual Studio (not Visual Studio Code).
Simply run
dart run
If you'd like to run a different script in the bin
folder, just run dart run :script
.