Enlarge packet payload size 256 -> 1024 bits.

This commit is contained in:
Jared Boone 2015-10-02 22:37:05 -07:00
parent 68250b4d30
commit 7a5100baf1
4 changed files with 6 additions and 4 deletions

View File

@ -31,7 +31,7 @@
class PacketBuilder {
public:
using PayloadType = std::bitset<256>;
using PayloadType = std::bitset<1024>;
using PayloadHandlerFunc = std::function<void(const PayloadType& payload, const size_t bits_received)>;
PacketBuilder(

View File

@ -109,7 +109,7 @@ void FSKProcessor::consume_symbol(
}
void FSKProcessor::payload_handler(
const std::bitset<256>& payload,
const std::bitset<1024>& payload,
const size_t bits_received
) {
FSKPacketMessage message;

View File

@ -55,6 +55,8 @@ constexpr std::array<std::complex<float>, 8> ais_taps_p { {
class FSKProcessor : public BasebandProcessor {
public:
using payload_t = std::bitset<1024>;
FSKProcessor(MessageHandlerMap& message_handlers);
~FSKProcessor();
@ -94,7 +96,7 @@ private:
MessageHandlerMap& message_handlers;
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__*/

View File

@ -217,7 +217,7 @@ public:
#include <bitset>
struct FSKPacket {
std::bitset<256> payload;
std::bitset<1024> payload;
size_t bits_received;
FSKPacket(