Skip to content

Commit 227f587

Browse files
authored
Add message_counter to packet manager init (#25)
1 parent 4998c5c commit 227f587

File tree

6 files changed

+6
-2
lines changed

6 files changed

+6
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PYSQUARED_VERSION ?= v2.0.0-alpha-25w26-2
1+
PYSQUARED_VERSION ?= v2.0.0-alpha-25w29
22
PYSQUARED ?= git+https://github.com/proveskit/pysquared@$(PYSQUARED_VERSION)
33
BOARD_MOUNT_POINT ?= ""
44
BOARD_TTY_PORT ?= ""

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"battery_voltage": 5.2,
32
"critical_battery_voltage": 6.6,
43
"cubesat_name": "PROVES-MY_SATELLITE_NAME",
54
"current_draw": 240.5,
65
"debug": true,
6+
"degraded_battery_voltage": 5.4,
77
"detumble_enable_x": true,
88
"detumble_enable_y": true,
99
"detumble_enable_z": true,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
class Register:
22
boot_count = 0
33
error_count = 1
4+
message_count = 2

src/flight-software/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
logger,
9090
radio,
9191
config.radio.license,
92+
Counter(Register.message_count),
9293
0.2,
9394
)
9495

src/flight-software/repl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
logger,
7676
radio,
7777
config.radio.license,
78+
Counter(Register.message_count),
7879
0.2,
7980
)
8081

src/ground-station/repl.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
logger,
4242
radio,
4343
config.radio.license,
44+
Counter(2),
4445
0.2,
4546
)
4647

0 commit comments

Comments
 (0)