AudioTX, fixed about screen and an LCR address list bug

This commit is contained in:
furrtek
2016-08-17 04:17:24 +02:00
parent 6c0102abd4
commit c2fbc0c8d5
9 changed files with 31 additions and 26 deletions

View File

@@ -106,6 +106,13 @@ void set_audiotx_data(const uint32_t bw) {
send_message(&message);
}
void set_fifo_data(const int8_t * data) {
const FIFODataMessage message {
data
};
send_message(&message);
}
void set_pwmrssi(int32_t avg, bool enabled) {
const PWMRSSIConfigureMessage message {
enabled,

View File

@@ -54,6 +54,7 @@ struct WFMConfig {
void set_ccir_data( const uint32_t samples_per_tone, const uint16_t tone_count);
void set_audiotx_data(const uint32_t bw);
void set_fifo_data(const int8_t * data);
void set_pwmrssi(int32_t avg, bool enabled);
void set_afsk_data(const uint32_t afsk_samples_per_bit, const uint32_t afsk_phase_inc_mark, const uint32_t afsk_phase_inc_space,
const uint8_t afsk_repeat, const uint32_t afsk_bw, const bool afsk_alt_format);

View File

@@ -29,7 +29,6 @@
#include "portapack.hpp"
#include "audio.hpp"
#include "event_m0.hpp"
#include "baseband_api.hpp"
#include "ui_about.hpp"
#include "touch.hpp"
@@ -318,7 +317,7 @@ void AboutView::render_audio() {
}
}
ym_buffer[ym_render_cnt] = (ym_out * 2) - 93;
ym_buffer[ym_render_cnt] = (ym_out * 2) - 45;
if (ym_sample_cnt < 960) {
ym_sample_cnt++;

View File

@@ -27,6 +27,7 @@
#include "ui_menu.hpp"
#include "ui_navigation.hpp"
#include "transmitter_model.hpp"
#include "baseband_api.hpp"
#include <cstdint>
@@ -156,12 +157,10 @@ private:
MessageHandlerRegistration message_handler_fifo_signal {
Message::ID::FIFOSignal,
[this](const Message* const p) {
FIFODataMessage datamessage;
const auto message = static_cast<const FIFOSignalMessage*>(p);
if (message->signaltype == 1) {
this->render_audio();
datamessage.data = ym_buffer;
EventDispatcher::send_message(datamessage);
baseband::set_fifo_data(ym_buffer);
}
}
};

View File

@@ -46,7 +46,7 @@ private:
const scan_list_t scan_list[2] = {
{ 36, &RGSB_list_Lille[0][0] },
{ 23, &RGSB_list_Reims[0][0] }
{ 20, &RGSB_list_Reims[0][0] }
};
const char RGSB_list_Lille[36][5] = {
@@ -62,7 +62,7 @@ private:
"EbS0"
};
const char RGSB_list_Reims[23][5] = {
const char RGSB_list_Reims[20][5] = {
"AI10", "AI20", "AI30", "AI40",
"AI50", "AI60", "AI70",
"AJ10", "AJ20", "AJ30", "AJ40",