From ebd61803ec82cff6f3d333ba585a5ac86f201cb0 Mon Sep 17 00:00:00 2001 From: aychar <58487401+hrfarmer@users.noreply.github.com> Date: Mon, 14 Jul 2025 19:20:44 -0500 Subject: [PATCH 1/3] add message --- config.json | 2 +- src/flight-software/lib/proveskit_rp2040_v4/register.py | 1 + src/flight-software/main.py | 1 + src/ground-station/repl.py | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config.json b/config.json index 7c1a5e9..5893978 100644 --- a/config.json +++ b/config.json @@ -1,9 +1,9 @@ { - "battery_voltage": 5.2, "critical_battery_voltage": 6.6, "cubesat_name": "PROVES-MY_SATELLITE_NAME", "current_draw": 240.5, "debug": true, + "degraded_battery_voltage": 5.4, "detumble_enable_x": true, "detumble_enable_y": true, "detumble_enable_z": true, diff --git a/src/flight-software/lib/proveskit_rp2040_v4/register.py b/src/flight-software/lib/proveskit_rp2040_v4/register.py index ce5d29e..28801a7 100644 --- a/src/flight-software/lib/proveskit_rp2040_v4/register.py +++ b/src/flight-software/lib/proveskit_rp2040_v4/register.py @@ -1,3 +1,4 @@ class Register: boot_count = 0 error_count = 1 + message_count = 2 diff --git a/src/flight-software/main.py b/src/flight-software/main.py index 547ef06..b0bbdbf 100644 --- a/src/flight-software/main.py +++ b/src/flight-software/main.py @@ -89,6 +89,7 @@ logger, radio, config.radio.license, + Counter(Register.message_count), 0.2, ) diff --git a/src/ground-station/repl.py b/src/ground-station/repl.py index f34c821..061a7dd 100644 --- a/src/ground-station/repl.py +++ b/src/ground-station/repl.py @@ -41,6 +41,7 @@ logger, radio, config.radio.license, + Counter(2), 0.2, ) From bba0e68c26cfaba5472697dcc8d589516e32d1d9 Mon Sep 17 00:00:00 2001 From: aychar <58487401+hrfarmer@users.noreply.github.com> Date: Thu, 17 Jul 2025 17:33:45 -0500 Subject: [PATCH 2/3] bump pysquared version --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 973a788..d323468 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -PYSQUARED_VERSION ?= v2.0.0-alpha-25w26-2 +PYSQUARED_VERSION ?= v2.0.0-alpha-25w29 PYSQUARED ?= git+https://github.com/proveskit/pysquared@$(PYSQUARED_VERSION) BOARD_MOUNT_POINT ?= "" BOARD_TTY_PORT ?= "" From cabbaeebac6129cbce9c1d1ce8cddc823d777248 Mon Sep 17 00:00:00 2001 From: aychar <58487401+hrfarmer@users.noreply.github.com> Date: Thu, 17 Jul 2025 17:37:26 -0500 Subject: [PATCH 3/3] fix repl --- src/flight-software/repl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/flight-software/repl.py b/src/flight-software/repl.py index 7c6a522..4c1275a 100644 --- a/src/flight-software/repl.py +++ b/src/flight-software/repl.py @@ -75,6 +75,7 @@ logger, radio, config.radio.license, + Counter(Register.message_count), 0.2, )