结构优化

This commit is contained in:
2026-07-30 18:09:03 +08:00
parent a8b2d1202b
commit 78f42f892e
7 changed files with 123 additions and 110 deletions
+2 -4
View File
@@ -58,10 +58,9 @@ void push_radio_data(Radio_Widget* rw) {
rw->water_fall->give_data(QTime::currentTime(), make_random_data(rw->water_fall->power_range(), rw->water_fall->frequency_point_size(), renderive::Memory_Domain::Waterfall));
}
{
int tick = rw->time_power->time_axis()->give_data(QTime::currentTime());
renderive::Range r = rw->time_power->value_axis()->coord_range();
renderive::Range nr = {r.center() - r.length() / 4, r.center() + r.length() / 4};
rw->time_power->give_data(tick, make_random_value(nr));
rw->time_power->give_data(QTime::currentTime(), make_random_value(nr));
}
{
auto r = rw->audio_spectrogram_plot->power_axis()->coord_range();
@@ -84,8 +83,7 @@ void push_radio_data_perf(Radio_Widget* rw) {
rw->water_fall->give_data(QTime::currentTime(), make_random_data({0, 160}, 1024, renderive::Memory_Domain::Waterfall));
}
{
int tick = rw->time_power->time_axis()->give_data(QTime::currentTime());
rw->time_power->give_data(tick, make_random_value({-6000, 6000}));
rw->time_power->give_data(QTime::currentTime(), make_random_value({-6000, 6000}));
}
{
rw->audio_spectrogram_plot->give_data(make_random_data({-6000, 6000}, 512, renderive::Memory_Domain::Spectrum));