结构优化
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user