MotorsSensorsWidget::MotorsSensorsWidget(Device *device, QWidget *parent) : StandardWidget(device, parent), ui(new Ui::MotorsSensorsWidget) { ui->setupUi(this); performStandardSetup(tr("Motors and Sensors")); connect(ui->servos, SIGNAL(clicked()), SLOT(servos())); connect(ui->motors, SIGNAL(clicked()), SLOT(motors())); connect(ui->sensorGraph, SIGNAL(clicked()), SLOT(sensorGraph())); connect(ui->sensorList, SIGNAL(clicked()), SLOT(sensorList())); connect(ui->camera, SIGNAL(clicked()), SLOT(camera())); connect(ui->pidTuner, SIGNAL(clicked()), SLOT(pidTuner())); }
MotorsSensorsWidget::MotorsSensorsWidget(Device *device, QWidget *parent) : StandardWidget(device, parent), ui(new Ui::MotorsSensorsWidget) { ui->setupUi(this); performStandardSetup(tr("Motors and Sensors")); connect(ui->servos, SIGNAL(clicked()), SLOT(servos())); connect(ui->motors, SIGNAL(clicked()), SLOT(motors())); connect(ui->sensorGraph, SIGNAL(clicked()), SLOT(sensorGraph())); connect(ui->sensorList, SIGNAL(clicked()), SLOT(sensorList())); connect(ui->camera, SIGNAL(clicked()), SLOT(camera())); connect(ui->pidTuner, SIGNAL(clicked()), SLOT(pidTuner())); connect(ui->depth, SIGNAL(clicked()), SLOT(depth())); // TODO: remove these once the widgets work on the Wallaby ui->pidTuner->setVisible(false); ui->depth->setVisible(false); }