Skip to content

Commit 5dc44df

Browse files
authored
Merge pull request #121 from CarletonURocketry/refactor_modules
using actual modules intead of path resolution
2 parents 8f183e6 + 0df012b commit 5dc44df

39 files changed

+66
-43
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,25 @@ contributions are currently limited to *Carleton University students or CUInSpac
3434
[ground-station-board]: https://github.com/CarletonURocketry/avionics-hardware/pull/18
3535
[ground-station-ui]: https://github.com/CarletonURocketry/ground-station-ui
3636
[wiki]: https://github.com/CarletonURocketry/ground-station/wiki
37+
38+
# Installation
39+
```
40+
python3 -m venv .venv
41+
```
42+
43+
```
44+
source .venv/bin/activate
45+
```
46+
47+
```
48+
pip install -r requirements.txt
49+
```
50+
51+
```
52+
pip install -e .
53+
```
54+
55+
# Run the project
56+
```
57+
python main.py
58+
```

main.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
from re import sub
1010
import logging
1111
from typing import TypeAlias, Any
12-
from modules.misc.config import load_config
12+
from ground_station.misc.config import load_config
1313

14-
from modules.misc.messages import print_cu_rocket
15-
from modules.serial.serial_manager import SerialManager
16-
from modules.telemetry.telemetry import Telemetry
17-
from modules.websocket.websocket import WebSocketHandler
18-
from modules.misc.cli import parser
14+
from ground_station.misc.messages import print_cu_rocket
15+
from ground_station.serial.serial_manager import SerialManager
16+
from ground_station.telemetry.telemetry import Telemetry
17+
from ground_station.websocket.websocket import WebSocketHandler
18+
from ground_station.misc.cli import parser
1919

2020
JSON: TypeAlias = dict[str, Any]
2121
STR_TO_LOGGING_MODE: dict[str, int] = {

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[project]
2-
name = "Telemetry Server"
2+
name = "ground_station"
3+
version = "1.0.0"
34
description = "The CUInSpace ground station telemetry server for parsing and distributing rocket telemetry."
45
license = {text = "MIT"}
56
authors = [

requirements.txt

-500 Bytes
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)