From a329bfdc8264334e934844a7d2d4f47a976afed3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nicol=C3=B2=20Caruso?= <nicolo.caruso@skywarder.eu>
Date: Tue, 8 Apr 2025 14:30:47 +0200
Subject: [PATCH] [ARPxPRF] Added parafoil messages to sniffed ones

- Hub.cpp: Now the sniffing is enabled also for the parafoil messages
---
 src/Groundstation/Automated/Hub.cpp | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/Groundstation/Automated/Hub.cpp b/src/Groundstation/Automated/Hub.cpp
index 205f0dc32..d3168a273 100644
--- a/src/Groundstation/Automated/Hub.cpp
+++ b/src/Groundstation/Automated/Hub.cpp
@@ -244,12 +244,13 @@ void Hub::dispatchOutgoingMsg(const mavlink_message_t& msg)
 
     // In case the message is spoofed from ethernet by another groundstation
     if (msg.msgid == MAVLINK_MSG_ID_ROCKET_FLIGHT_TM ||
-        msg.msgid == MAVLINK_MSG_ID_ROCKET_STATS_TM)
+        msg.msgid == MAVLINK_MSG_ID_ROCKET_STATS_TM ||
+        msg.msgid == MAVLINK_MSG_ID_PAYLOAD_FLIGHT_TM ||
+        msg.msgid == MAVLINK_MSG_ID_PAYLOAD_STATS_TM)
     {
         TRACE(
-            "[info][SNIFFING] Hub: A MAIN packet was received from ground "
-            "packet "
-            "(ethernet probably and NOT radio)\n");
+            "[info][SNIFFING] Hub: A MAIN/PAYLOAD packet was received from "
+            "ground packet (ethernet probably and NOT radio)\n");
         /* The message received by ethernet (outgoing) in reality is not a
          * command but the telemetry spoofed, therefore is then used as incoming
          */
-- 
GitLab