[Simulator] TelemetrySimulator: Fix instance values not being populated with radio settings (also now reloads instance values with rest of radio data). (closes #4711)

This commit is contained in:
Max Paperno
2017-03-31 13:19:12 -04:00
parent 2aebcb842a
commit 9d3960f0f5
4 changed files with 13 additions and 2 deletions
+5 -2
View File
@@ -31,8 +31,6 @@ TelemetrySimulator::TelemetrySimulator(QWidget * parent, SimulatorInterface * si
{
ui->setupUi(this);
setupDataFields();
timer.setInterval(10);
connect(&timer, &QTimer::timeout, this, &TelemetrySimulator::generateTelemetryFrame);
@@ -70,6 +68,11 @@ TelemetrySimulator::~TelemetrySimulator()
delete ui;
}
void TelemetrySimulator::onSimulatorStarted()
{
setupDataFields();
}
void TelemetrySimulator::onSimulateToggled(bool isChecked)
{
if (isChecked) {