Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: e90b39bebb
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (27 sloc) 0.771 kb
#include "MotorsSensorsWidget.h"
#include "ui_MotorsSensorsWidget.h"
#include "RootController.h"
#include <QDebug>
#include "CameraWidget.h"
#include "ServosWidget.h"
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->camera, SIGNAL(clicked()), SLOT(camera()));
}
MotorsSensorsWidget::~MotorsSensorsWidget()
{
delete ui;
}
void MotorsSensorsWidget::servos()
{
RootController::ref().presentWidget(new ServosWidget(m_device));
}
void MotorsSensorsWidget::camera()
{
RootController::ref().presentWidget(new CameraWidget(m_device));
}
Jump to Line
Something went wrong with that request. Please try again.