[82] | 1 | /*********************************************************************
|
---|
| 2 | // created: 2007/07/28 - 11:51
|
---|
| 3 | // filename: DbtPlyGgaManager.h
|
---|
| 4 | //
|
---|
| 5 | // author: Gerald Dherbomez
|
---|
| 6 | // Copyright Heudiasyc UMR UTC/CNRS 6599
|
---|
| 7 | //
|
---|
| 8 | // version: $Id: $
|
---|
| 9 | //
|
---|
| 10 | // purpose: Dbite Player GGA Manager
|
---|
| 11 | *********************************************************************/
|
---|
| 12 |
|
---|
| 13 | #ifndef DBTPLYGGAMANAGER_H
|
---|
| 14 | #define DBTPLYGGAMANAGER_H
|
---|
| 15 |
|
---|
| 16 | #include <qlcdnumber.h>
|
---|
| 17 | #include <qgroupbox.h>
|
---|
| 18 | #include <qlabel.h>
|
---|
| 19 | #include <qlayout.h>
|
---|
| 20 |
|
---|
[103] | 21 | #include <iostream>
|
---|
| 22 |
|
---|
[82] | 23 | #include "Pacpus/DbitePlayer/DbtPlyFileManager.h"
|
---|
[103] | 24 | //#include <Pacpus/structure/structure_gps.h>
|
---|
| 25 | #include "../Gps/structure_gps.h"
|
---|
[82] | 26 | #include "Pacpus/kernel/ComponentManager.h"//moved from .cpp
|
---|
[103] | 27 |
|
---|
| 28 | #include <Pacpus/kernel/InputOutputInterface.h>
|
---|
[82] | 29 | //#include "DbitePlayer/SensorTcpServer.h" //added
|
---|
[103] | 30 | //#include "Pacpus/PacpusTools/ShMem.h"
|
---|
[82] | 31 |
|
---|
| 32 | #include "DbtPlyGpsConfig.h"
|
---|
| 33 |
|
---|
| 34 | namespace pacpus {
|
---|
| 35 |
|
---|
[111] | 36 | class DBTPLYGPS_API DbtPlyGgaManager
|
---|
[82] | 37 | : public DbtPlyFileManager
|
---|
| 38 | {
|
---|
| 39 | Q_OBJECT
|
---|
| 40 |
|
---|
| 41 | public:
|
---|
| 42 | DbtPlyGgaManager(QString name);
|
---|
| 43 | ~DbtPlyGgaManager();
|
---|
[103] | 44 |
|
---|
| 45 | virtual void startActivity();
|
---|
| 46 | virtual void stopActivity();
|
---|
[82] | 47 | virtual ComponentBase::COMPONENT_CONFIGURATION configureComponent(XmlComponentConfig config);
|
---|
| 48 |
|
---|
[103] | 49 | virtual void addInputs();
|
---|
| 50 | virtual void addOutputs();
|
---|
[82] | 51 |
|
---|
| 52 | protected:
|
---|
| 53 | void processData(road_time_t t, road_timerange_t tr , void *buf);
|
---|
| 54 | void displayUI();
|
---|
| 55 |
|
---|
| 56 | private:
|
---|
[103] | 57 | // Local copy of GGA data with timestamp
|
---|
| 58 | TimestampedGgaFrame mGga;
|
---|
| 59 |
|
---|
| 60 | // Declaration of outputs
|
---|
| 61 | OutputInterface<TimestampedGgaFrame, DbtPlyGgaManager>* outGga;
|
---|
| 62 |
|
---|
| 63 | // Variables for GUI : TODO
|
---|
| 64 | /*QWidget *w;
|
---|
[82] | 65 | QLabel* lat;
|
---|
| 66 | QLCDNumber *latVal;
|
---|
| 67 | QLabel* lon;
|
---|
| 68 | QLCDNumber *lonVal;
|
---|
[103] | 69 | QGroupBox *prop;*/
|
---|
[82] | 70 |
|
---|
| 71 | };
|
---|
| 72 |
|
---|
| 73 | } // namespace pacpus
|
---|
| 74 |
|
---|
| 75 | #endif // DBTPLYGGAMANAGER_H
|
---|