负反馈模型测试成功
This commit is contained in:
@@ -25,8 +25,8 @@ static bool radio_show_performance_overlay() {
|
||||
static void configure_radio_plot_perf(renderive::Plot* plot) {
|
||||
if (!radio_mock_perf_mode())
|
||||
return;
|
||||
plot->set_render_check_fps(1000);
|
||||
plot->set_render_schedule_mode(renderive::Plot_Render_Schedule_Mode::Chase_Latest);
|
||||
plot->set_max_render_fps(1000);
|
||||
plot->set_render_schedule_mode(renderive::Plot_Render_Schedule_Mode::Feedback);
|
||||
if (radio_show_performance_overlay())
|
||||
plot->set_use_performance_shower(true);
|
||||
}
|
||||
|
||||
@@ -4,20 +4,17 @@
|
||||
#include <vector>
|
||||
#include <atomic>
|
||||
#include "../Global.h"
|
||||
|
||||
struct Tick{
|
||||
struct Tick {
|
||||
QString text;
|
||||
QColor color;
|
||||
double value = 0;
|
||||
Tick(QString text, QColor color) : text(std::move(text)), color(std::move(color)){
|
||||
QString that = (text[0] == '+' || text[0] == '-' || text[0] == '<' || text[0] == '>') ? text.mid(1) : text;
|
||||
Tick(QString text, QColor color) : text(std::move(text)), color(std::move(color)) {
|
||||
QString that = (this->text.startsWith('+') || this->text.startsWith('-') || this->text.startsWith('<') || this->text.startsWith('>')) ? this->text.mid(1) : this->text;
|
||||
value = that.toDouble();
|
||||
}
|
||||
Tick(QString text, QColor color, double value) : text(std::move(text)), color(std::move(color)), value(value){
|
||||
Tick(QString text, QColor color, double value) : text(std::move(text)), color(std::move(color)), value(value) {
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
class Progress_Bar : public QWidget {
|
||||
public:
|
||||
explicit Progress_Bar(const std::vector<Tick>& tick_list, QWidget *parent = nullptr);
|
||||
@@ -35,6 +32,3 @@ protected:
|
||||
std::vector<Tick> tick_list;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user