mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Enlarge packet payload size 256 -> 1024 bits.
This commit is contained in:
parent
68250b4d30
commit
7a5100baf1
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
class PacketBuilder {
|
class PacketBuilder {
|
||||||
public:
|
public:
|
||||||
using PayloadType = std::bitset<256>;
|
using PayloadType = std::bitset<1024>;
|
||||||
using PayloadHandlerFunc = std::function<void(const PayloadType& payload, const size_t bits_received)>;
|
using PayloadHandlerFunc = std::function<void(const PayloadType& payload, const size_t bits_received)>;
|
||||||
|
|
||||||
PacketBuilder(
|
PacketBuilder(
|
||||||
|
@ -109,7 +109,7 @@ void FSKProcessor::consume_symbol(
|
|||||||
}
|
}
|
||||||
|
|
||||||
void FSKProcessor::payload_handler(
|
void FSKProcessor::payload_handler(
|
||||||
const std::bitset<256>& payload,
|
const std::bitset<1024>& payload,
|
||||||
const size_t bits_received
|
const size_t bits_received
|
||||||
) {
|
) {
|
||||||
FSKPacketMessage message;
|
FSKPacketMessage message;
|
||||||
|
@ -55,6 +55,8 @@ constexpr std::array<std::complex<float>, 8> ais_taps_p { {
|
|||||||
|
|
||||||
class FSKProcessor : public BasebandProcessor {
|
class FSKProcessor : public BasebandProcessor {
|
||||||
public:
|
public:
|
||||||
|
using payload_t = std::bitset<1024>;
|
||||||
|
|
||||||
FSKProcessor(MessageHandlerMap& message_handlers);
|
FSKProcessor(MessageHandlerMap& message_handlers);
|
||||||
~FSKProcessor();
|
~FSKProcessor();
|
||||||
|
|
||||||
@ -94,7 +96,7 @@ private:
|
|||||||
MessageHandlerMap& message_handlers;
|
MessageHandlerMap& message_handlers;
|
||||||
|
|
||||||
void consume_symbol(const float symbol);
|
void consume_symbol(const float symbol);
|
||||||
void payload_handler(const std::bitset<256>& payload, const size_t bits_received);
|
void payload_handler(const payload_t& payload, const size_t bits_received);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif/*__PROC_FSK_H__*/
|
#endif/*__PROC_FSK_H__*/
|
||||||
|
@ -217,7 +217,7 @@ public:
|
|||||||
#include <bitset>
|
#include <bitset>
|
||||||
|
|
||||||
struct FSKPacket {
|
struct FSKPacket {
|
||||||
std::bitset<256> payload;
|
std::bitset<1024> payload;
|
||||||
size_t bits_received;
|
size_t bits_received;
|
||||||
|
|
||||||
FSKPacket(
|
FSKPacket(
|
||||||
|
Loading…
Reference in New Issue
Block a user