32 #include "ui_simulationconfiguration.h"
34 #include "hwsimulation.h"
52 void SimulationConfiguration::onLedStateUpdated(
UAVObject *obj)
54 HwSimulation *hwSim = qobject_cast<HwSimulation *>(obj);
56 if (hwSim->getLedState_Heartbeat() == HwSimulation::LEDSTATE_ON)
57 ui->lblHeartbeatLed->setPixmap(QPixmap(
":/dronin/images/led_heartbeat_on.png"));
59 ui->lblHeartbeatLed->setPixmap(QPixmap(
":/dronin/images/led_heartbeat_off.png"));
60 if (hwSim->getLedState_Alarm() == HwSimulation::LEDSTATE_ON)
61 ui->lblAlarmLed->setPixmap(QPixmap(
":/dronin/images/led_alarm_on.png"));
63 ui->lblAlarmLed->setPixmap(QPixmap(
":/dronin/images/led_alarm_off.png"));
~SimulationConfiguration()
void objectUpdated(UAVObject *obj)
Signal sent whenever any field of the object is updated.
SimulationConfiguration(QWidget *parent=nullptr)
UAVObject * getObject(const QString &name, quint32 instId=0)