mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
TouchTunes TouchTunes New Feature QA
This commit is contained in:
parent
c2ff37a1c7
commit
c713d996ad
@ -85,18 +85,28 @@ void TouchTunesView::on_tx_progress(const uint32_t progress, const bool done) {
|
|||||||
// EW Mode works by transmitting a CW on 433.92MHz inbetween
|
// EW Mode works by transmitting a CW on 433.92MHz inbetween
|
||||||
// transmission events.
|
// transmission events.
|
||||||
void TouchTunesView::start_ew() {
|
void TouchTunesView::start_ew() {
|
||||||
|
// Radio
|
||||||
transmitter_model.set_tuning_frequency(433920000);
|
transmitter_model.set_tuning_frequency(433920000);
|
||||||
transmitter_model.set_sampling_rate(3072000U);
|
transmitter_model.set_sampling_rate(3072000U);
|
||||||
transmitter_model.set_rf_amp(true);
|
transmitter_model.set_rf_amp(true);
|
||||||
transmitter_model.set_baseband_bandwidth(3500000U);
|
transmitter_model.set_baseband_bandwidth(3500000U);
|
||||||
transmitter_model.set_tx_gain(47);
|
transmitter_model.set_tx_gain(47);
|
||||||
transmitter_model.enable();
|
transmitter_model.enable();
|
||||||
|
|
||||||
|
//UI
|
||||||
text_status.set("Jamming...");
|
text_status.set("Jamming...");
|
||||||
|
progressbar.set_max(1);
|
||||||
|
progressbar.set_value(1);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TouchTunesView::stop_ew() {
|
void TouchTunesView::stop_ew() {
|
||||||
|
// Radio
|
||||||
transmitter_model.disable();
|
transmitter_model.disable();
|
||||||
|
|
||||||
|
// UI
|
||||||
text_status.set("Ready");
|
text_status.set("Ready");
|
||||||
|
progressbar.set_value(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
void TouchTunesView::start_tx(const uint32_t button_index) {
|
void TouchTunesView::start_tx(const uint32_t button_index) {
|
||||||
|
Loading…
Reference in New Issue
Block a user