Add TPMS initial demodulator implementation.

Right now, 2FSK, 19200 baud, +/-38400Hz deviation. No effort is made to check CRC/checksums or decode packets.
This commit is contained in:
Jared Boone 2015-11-10 15:19:56 -08:00
parent 6cdef7026d
commit 9f6c495fef
7 changed files with 227 additions and 0 deletions

View file

@ -43,6 +43,7 @@ public:
ChannelSpectrum = 3,
AudioStatistics = 4,
BasebandConfiguration = 5,
TPMSPacket = 6,
Shutdown = 8,
AISPacket = 7,
MAX
@ -216,6 +217,26 @@ public:
AISPacket packet;
};
struct TPMSPacket {
std::bitset<1024> payload;
size_t bits_received;
TPMSPacket(
) : bits_received { 0 }
{
}
};
class TPMSPacketMessage : public Message {
public:
TPMSPacketMessage(
) : Message { ID::TPMSPacket }
{
}
TPMSPacket packet;
};
class ShutdownMessage : public Message {
public:
constexpr ShutdownMessage(