mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Remove now-unused FSKConfiguration message.
This commit is contained in:
parent
981c2fbfbd
commit
791b2a9762
@ -180,10 +180,6 @@ void ReceiverModel::update_baseband_configuration() {
|
||||
BasebandConfigurationMessage message { baseband_configuration };
|
||||
shared_memory.baseband_queue.push(message);
|
||||
|
||||
if( baseband_configuration.mode == 3 ) {
|
||||
update_fsk_configuration();
|
||||
}
|
||||
|
||||
radio::streaming_enable();
|
||||
}
|
||||
|
||||
@ -193,26 +189,3 @@ void ReceiverModel::update_headphone_volume() {
|
||||
|
||||
audio_codec.set_headphone_volume(headphone_volume_);
|
||||
}
|
||||
|
||||
static constexpr FSKConfiguration fsk_configuration_ais = {
|
||||
.symbol_rate = 9600,
|
||||
.access_code = 0b0101010101111110,
|
||||
.access_code_length = 16,
|
||||
.access_code_tolerance = 0,
|
||||
.unstuffing_pattern = 0b111110,
|
||||
.unstuffing_length = 6,
|
||||
};
|
||||
|
||||
static constexpr FSKConfiguration fsk_configuration_tpms_a = {
|
||||
.symbol_rate = 19200,
|
||||
.access_code = 0b0101010101010101010101010110,
|
||||
.access_code_length = 28,
|
||||
.access_code_tolerance = 1,
|
||||
.unstuffing_pattern = 0,
|
||||
.unstuffing_length = 0,
|
||||
};
|
||||
|
||||
void ReceiverModel::update_fsk_configuration() {
|
||||
FSKConfigurationMessage message { fsk_configuration_ais };
|
||||
shared_memory.baseband_queue.push(message);
|
||||
}
|
||||
|
@ -97,8 +97,6 @@ private:
|
||||
void update_vga();
|
||||
void update_baseband_configuration();
|
||||
void update_headphone_volume();
|
||||
|
||||
void update_fsk_configuration();
|
||||
};
|
||||
|
||||
#endif/*__RECEIVER_MODEL_H__*/
|
||||
|
@ -43,7 +43,6 @@ public:
|
||||
ChannelSpectrum = 3,
|
||||
AudioStatistics = 4,
|
||||
BasebandConfiguration = 5,
|
||||
FSKConfiguration = 6,
|
||||
Shutdown = 8,
|
||||
AISPacket = 7,
|
||||
MAX
|
||||
@ -195,28 +194,6 @@ public:
|
||||
ChannelSpectrum spectrum;
|
||||
};
|
||||
|
||||
struct FSKConfiguration {
|
||||
uint32_t symbol_rate;
|
||||
uint32_t access_code;
|
||||
size_t access_code_length;
|
||||
size_t access_code_tolerance;
|
||||
uint32_t unstuffing_pattern;
|
||||
size_t unstuffing_length;
|
||||
};
|
||||
|
||||
static_assert(sizeof(FSKConfiguration) == (6 * 4), "sizeof(FSKConfiguration) is wild");
|
||||
|
||||
class FSKConfigurationMessage : public Message {
|
||||
constexpr FSKConfigurationMessage(
|
||||
FSKConfiguration configuration
|
||||
) : Message { ID::FSKConfiguration },
|
||||
configuration(configuration)
|
||||
{
|
||||
}
|
||||
|
||||
FSKConfiguration configuration;
|
||||
};
|
||||
|
||||
#include <bitset>
|
||||
|
||||
struct AISPacket {
|
||||
|
Loading…
Reference in New Issue
Block a user