Exemplo n.º 1
0
MavSerialPort::MavSerialPort(QObject* parent):
    QSerialPort(parent),system_id(0),component_id(0),
    target_system(1),target_component(0),
    x(0), y(0), z(0), r(0){

    m_timer = new QTimer(this);
    //connect(timer, SIGNAL(timeout()),this, SLOT(send_set_attitude_target()));
    connect(m_timer, SIGNAL(timeout()),this, SLOT(send_manual_control()));
    // timer->start(200); will move this to connect button
}
Exemplo n.º 2
0
MavSerialPort::MavSerialPort(QObject* parent):
    QSerialPort(parent),system_id(0),component_id(0),
    target_system(1),target_component(0),
    x(0), y(0), z(0), r(0),
    buttons(BUTTON_MANUAL)
{

    timer = new QTimer(this);
    //connect(timer, SIGNAL(timeout()),this, SLOT(send_set_attitude_target()));
    connect(timer, SIGNAL(timeout()),this, SLOT(send_manual_control()));
    //timer->start(200); // this has been moved to manual_control_handler
}