/** *Default constructor of this class. */ GPSData::GPSData(Maemo5Location *maemo5location) { qDebug() << "__GPSData"; location = maemo5location; connect(location,SIGNAL(agnss()),this,SLOT(agnss())); connect(location,SIGNAL(awcp()),this,SLOT(awcp())); connect(location,SIGNAL(locationUpdated()),this,SLOT(locationUpdated())); connect(location,SIGNAL(gps_connected()),this,SLOT(gpsConnected())); connect(location,SIGNAL(gps_disconnected()),this,SLOT(gpsDisconnected())); connect(location,SIGNAL(gps_error(int)),this,SLOT(gpsError())); connect(location,SIGNAL(gpsd_running()),this,SLOT(gpsdRunning())); connect(location,SIGNAL(gpsd_stopped()),this,SLOT(gpsdStopped())); gpsDateTime = new QDateTime(); resetAll(); }
void MainWindow::_setShowMode() { setMenuBar(m_show_menuBar); /*--CentralWidget--*/ QObject::connect(m_show_droneList, SIGNAL(locationUpdated(uint,int32_t,int32_t,int32_t)), m_show_centralWidget, SLOT(updateLocation(uint,int32_t,int32_t,int32_t))); QObject::connect(m_show_centralWidget, SIGNAL(goTo(uint,int32_t,int32_t,int32_t)), m_show_droneList, SLOT(moveUAVTo(uint,int32_t,int32_t,int32_t))); setCentralWidget(m_show_centralWidget); /*----DroneList----*/ m_show_dockUAVList->setWidget(m_show_droneList); m_show_dockUAVList->setFeatures(QDockWidget::NoDockWidgetFeatures); m_show_dockUAVList->setFloating(false); m_show_dockUAVList->setMinimumWidth(400); addDockWidget(Qt::LeftDockWidgetArea, m_show_dockUAVList); QObject::connect(m_show_droneList, SIGNAL(connected(bool)), this, SLOT(_show_droneListConnected(bool))); QObject::connect(m_show_actionResearchUAVs, SIGNAL(triggered()), m_show_droneList, SLOT(searchUAVs())); _show_droneListConnected(false); /*--Connectivity---*/ for(unsigned int i = 0; i < 8; ++i) m_show_baudActionGroup->addAction(m_show_arrayBaudActions[i]); QObject::connect(m_show_baudActionGroup, SIGNAL(triggered(QAction*)), this, SLOT(_show_setSerialPortBaudRate(QAction *))); QObject::connect(m_show_serialPortActionGroup, SIGNAL(triggered(QAction*)), this, SLOT(_show_setSerialPortName(QAction*))); QObject::connect(m_show_actionConnect, SIGNAL(triggered()), this, SLOT(_show_connectLink())); /*---SerialPort----*/ _show_updatePortNames(); //auto-selecting the first serial port if(m_show_arraySerialPortActions.size() > 0) { m_show_arraySerialPortActions[0]->setChecked(true); _show_setSerialPortName(m_show_arraySerialPortActions[0]); } //auto-selecting 57600 bauds (telemetry default) m_show_arrayBaudActions[6]->setChecked(true); _show_setSerialPortBaudRate(m_show_arrayBaudActions[6]); }
void CBRLocationServiceCache::replicaLocationUpdated(const UUID& uuid, const TimedMotionVector3f& newval) { if (mWithReplicas) locationUpdated(uuid, false, newval); }
void CBRLocationServiceCache::localLocationUpdated(const UUID& uuid, bool agg, const TimedMotionVector3f& newval) { locationUpdated(uuid, agg, newval); }