Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Before starting, ensure you have the following installed:
- **PNPM** (v10.26.0+)
- **Node.js** (v20+)
- **Go** (for the backend)
- **Rust/Cargo** (for the packet-sender)

---

Expand All @@ -26,7 +25,6 @@ Our `pnpm-workspace.yaml` defines the following workspaces:
| `testing-view` | TS/React | Web interface for telemetry testing |
| `competition-view` | TS/React | UI for the competition |
| `backend` | Go | Data ingestion and pod communication server |
| `packet-sender` | Rust | Utility for simulating vehicle packets |
| `hyperloop-control-station` | JS | The main Control Station electron desktop application |
| `e2e` | TS | End-to-end tests for the whole app (Playwright) |
| `@workspace/ui` | TS/React | Shared UI component library (frontend-kit) |
Expand All @@ -44,7 +42,7 @@ These commands should be executed from the root directory (`/software`).

#### Global Development Scripts

- `pnpm dev` – Runs both frontends, the backend (with `dev-config.toml`), and the packet-sender in a single terminal window.
- `pnpm dev` – Runs both frontends and the backend (with `dev-config.toml`) in a single terminal window.
- `pnpm dev:main` – Runs frontends and the backend using the standard `config.toml`.

#### Turbo Filtering
Expand Down
37 changes: 0 additions & 37 deletions electron-app/build.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -53,43 +53,6 @@ const CONFIG = {
},
],
},
// "packet-sender": {
// type: "go",
// path: join(ROOT, "packet-sender"),
// output: join(__dirname, "binaries"),
// entry: ".",
// commands: ["pnpm run build:ci"],
// platforms: [
// {
// id: "win64",
// goos: "windows",
// goarch: "amd64",
// ext: ".exe",
// tags: ["win", "windows"],
// },
// {
// id: "linux64",
// goos: "linux",
// goarch: "amd64",
// ext: "",
// tags: ["linux"],
// },
// {
// id: "mac64",
// goos: "darwin",
// goarch: "amd64",
// ext: "",
// tags: ["mac", "macos"],
// },
// {
// id: "macArm",
// goos: "darwin",
// goarch: "arm64",
// ext: "",
// tags: ["mac", "macos"],
// },
// ],
// },
"testing-view": {
type: "frontend",
path: join(ROOT, "frontend/testing-view"),
Expand Down
3 changes: 1 addition & 2 deletions electron-app/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import pkg from "electron-updater";
import { getConfigManager } from "./src/config/configInstance.js";
import { setupIpcHandlers } from "./src/ipc/handlers.js";
import { startBackend, stopBackend } from "./src/processes/backend.js";
import { stopPacketSender } from "./src/processes/packetSender.js";
import { startBlcuProgramming, stopBlcuProgramming } from "./src/processes/blcuProgramming.js";
import { logger } from "./src/utils/logger.js";
import { createLogWindow } from "./src/windows/logWindow.js";
Expand Down Expand Up @@ -108,7 +107,7 @@ app.on("window-all-closed", () => {
// Cleanup before app quits
app.on("before-quit", (e) => {
e.preventDefault();
Promise.all([stopBackend(), stopPacketSender(), stopBlcuProgramming()])
Promise.all([stopBackend(), stopBlcuProgramming()])
.catch((error) => logger.electron.error("Error during shutdown:", error))
.finally(() => app.exit());
});
Expand Down
1 change: 0 additions & 1 deletion electron-app/src/menu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ Creates and sets the application menu bar. Takes the main window instance as par

## Dependencies

- `../processes/packetSender.js` - For starting/stopping packet sender
- `../utils/paths.js` - For resolving binary paths
- `electron` - For Menu, dialog, and app APIs

Expand Down
41 changes: 0 additions & 41 deletions electron-app/src/menu/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,6 @@
*/

import { Menu, app, dialog } from "electron";
import fs from "fs";
import {
getPacketSenderProcess,
startPacketSender,
stopPacketSender,
} from "../processes/packetSender.js";
import { getBinaryPath } from "../utils/paths.js";
import { loadView } from "../windows/mainWindow.js";

/**
Expand Down Expand Up @@ -73,40 +66,6 @@ function createMenu(mainWindow) {
},
],
},
{
label: "Tools",
submenu: [
{
label: "Start Packet Sender",
click: () => {
const packetSenderBin = getBinaryPath("packet-sender");
if (!fs.existsSync(packetSenderBin)) {
dialog.showMessageBox(mainWindow, {
type: "warning",
title: "Packet Sender Not Available",
message: "Packet sender binary not found",
detail: "This optional tool was not included in the build.",
});
return;
}
const packetSenderProcess = getPacketSenderProcess();
if (!packetSenderProcess || packetSenderProcess.killed) {
startPacketSender();
}
},
},
{
label: "Stop Packet Sender",
click: () => {
stopPacketSender();
const packetSenderProcess = getPacketSenderProcess();
if (packetSenderProcess && !packetSenderProcess.killed) {
stopPacketSender();
}
},
},
],
},
{
label: "Help",
submenu: [
Expand Down
18 changes: 0 additions & 18 deletions electron-app/src/processes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ Manages the lifecycle of external binary processes spawned by the Electron appli
## Files

- `backend.js` - Backend process management
- `packetSender.js` - Packet sender utility process management

## Backend Process (`backend.js`)

Expand All @@ -29,23 +28,6 @@ Manages the Go backend process that handles data processing.
- Shows error dialogs on startup failures or crashes
- Passes config file path via `--config` flag

## Packet Sender Process (`packetSender.js`)

Manages the packet sender utility tool for testing.

### Functions

- `startPacketSender(args)` - Spawns packet sender with optional arguments
- `stopPacketSender()` - Stops the packet sender process
- `restartPacketSender()` - Restarts the packet sender process
- `getPacketSenderProcess()` - Returns the current process instance

### Behavior

- Validates binary exists before starting
- Logs stdout/stderr to logger
- Returns `null` if binary not found (optional tool)
- Defaults to `--help` flag when restarted

## Dependencies

Expand Down
34 changes: 0 additions & 34 deletions packet-sender/go.mod

This file was deleted.

Loading
Loading