FMS for the 2026 FRC game REBUILT, built by Team 2718.
This repository contains:
PossumFMS.Core: .NET 10 backend that manages match state, Driver Station communication, field hardware, and SignalR updates.PossumFMS.Web: Svelte web frontend used to operate and monitor the FMS.PossumFMS.Firmware: Arduino firmware for the ESP32 field hardware
- ASP.NET Core app targeting
net10.0. - SignalR hub endpoint:
/fmshub. - Core components:
Arena: authoritative match state machine and timing.GameLogic: game-specific scoring/data hooks.DriverStationManager: high-frequency FMS <-> DS networking.AccessPointManager: VH-113 AP configuration and status polling.FieldHardwareManager: TCP manager for ESP32 field devices.
- SvelteKit + Vite + Tailwind CSS.
- Uses SignalR client to connect to
/fmshub. - In dev mode, Vite proxies
/fmshubtohttp://localhost:5000. - Uses
@sveltejs/adapter-staticfor production static builds.
Install these tools on Windows:
- Git
- .NET 10 SDK
- [Node.js LTS with pnpm] (https://nodejs.org/en/download)
- Visual Studio Code
ms-dotnettools.csharpms-dotnettools.csdevkit(optional but useful)svelte.svelte-vscodebradlc.vscode-tailwindcssdbaeumer.vscode-eslintesbenp.prettier-vscode
From the repository root:
# Backend restore
dotnet restore PossumFMS.Core/PossumFMS.sln
# Frontend install
pnpm --prefix PossumFMS.Web installOr navigate into each directory individually:
cd PossumFMS.Core && dotnet restore PossumFMS.sln && cd ..
cd PossumFMS.Web && pnpm install && cd ..Build the frontend once, then run the backend:
# Build frontend
cd PossumFMS.Web && pnpm build && cd ..
# Run backend
cd PossumFMS.Core && dotnet runOpen the UI from the backend URL (typically http://localhost:5000 or http://10.0.100.5).
The backend automatically serves static files from PossumFMS.Web/build.
Use two terminals when actively editing Svelte UI:
# Terminal A (from PossumFMS.Core)
dotnet run
# Terminal B (from PossumFMS.Web)
pnpm devOpen the Vite URL shown in Terminal B (typically http://localhost:5173).
Unit tests live in PossumFMS.Core.Tests (xUnit, targeting net10.0).
# Run all tests (from repo root)
dotnet test PossumFMS.Core.Tests/PossumFMS.Core.Tests.csproj
# Run with detailed output
dotnet test PossumFMS.Core.Tests/PossumFMS.Core.Tests.csproj --logger "console;verbosity=normal"
# Run a specific test class
dotnet test PossumFMS.Core.Tests/PossumFMS.Core.Tests.csproj --filter "FullyQualifiedName~DriverStationManagerTests"
# Run with code coverage
dotnet test PossumFMS.Core.Tests/PossumFMS.Core.Tests.csproj --collect:"XPlat Code Coverage"Use the build.sh script inside PossumFMS.Core to build the Release configuration:
cd PossumFMS.Core
./build.shOn Windows (PowerShell):
cd PossumFMS.Core
dotnet build PossumFMS.sln -c Releasecd PossumFMS.Web
pnpm buildThe output is generated in PossumFMS.Web/build/, which is directly picked up by PossumFMS.Core.
On the field server, PossumFMS.Core runs as a systemd service (PossumFMS.Core.service).
If building directly on the Linux field computer:
# 1. Pull the latest changes
git pull
# 2. Build the frontend static assets
cd PossumFMS.Web
pnpm install
pnpm build
# 3. Build the backend using build.sh
cd ../PossumFMS.Core
./build.sh
# 4. Restart the systemd service
sudo systemctl restart PossumFMS.Core
# 5. Verify the service is running and inspect logs
sudo systemctl status PossumFMS.Core
journalctl -u PossumFMS.Core -fTo create standalone or framework-dependent published binaries:
# Windows x64 publish (from repo root)
dotnet publish PossumFMS.Core/PossumFMS.Core.csproj -c Release -r win-x64 --self-contained false -o ./publish/win-x64
# Linux x64 publish (from repo root)
dotnet publish PossumFMS.Core/PossumFMS.Core.csproj -c Release -r linux-x64 --self-contained false -o ./publish/linux-x64Copy the contents of publish/linux-x64/ to your target directory on fms and restart the PossumFMS.Core service.