Feature/signal hunter (#3245)

This commit is contained in:
Matej Sochan
2026-07-06 05:05:49 +02:00
committed by GitHub
parent fe2ba80a10
commit b99cec5111
12 changed files with 998 additions and 0 deletions
+25
View File
@@ -165,6 +165,9 @@ class Message {
VorRxConfigure = 107,
VorRxStatusData = 108,
VorTxConfigure = 109,
HunterConfig = 110,
HunterTrigger = 111,
HunterStop = 112,
MAX
};
@@ -1984,4 +1987,26 @@ class FlexTosendMessage : public Message {
uint8_t msg[240] = {0};
};
class HunterConfigMessage : public Message {
public:
uint32_t energy_threshold{5000};
uint32_t hangtime_ms{500};
bool start{false};
constexpr HunterConfigMessage()
: Message{ID::HunterConfig} {}
};
class HunterTriggerMessage : public Message {
public:
uint32_t energy{0};
constexpr HunterTriggerMessage()
: Message{ID::HunterTrigger} {}
};
class HunterStopMessage : public Message {
public:
constexpr HunterStopMessage()
: Message{ID::HunterStop} {}
};
#endif /*__MESSAGE_H__*/
+2
View File
@@ -139,6 +139,8 @@ constexpr image_tag_t image_tag_noop{'P', 'N', 'O', 'P'};
constexpr image_tag_t image_tag_hackrf{'H', 'R', 'F', '1'};
constexpr image_tag_t image_tag_signal_hunter{'H', 'U', 'N', 'T'};
struct chunk_t {
const image_tag_t tag;
const uint32_t length;