source: pacpussensors/trunk/Gps/ui/polarxmainwindow.hpp@ 149

Last change on this file since 149 was 99, checked in by nguyenhu, 9 years ago

compilation under linux with 0.2.X framework

File size: 2.1 KB
Line 
1#ifndef __POLARXMAINWINDOW__
2#define __POLARXMAINWINDOW__
3
4//#include <QtGui>
5#include <QtWidgets>
6#include <bitset>
7#include "../structure_gps.h"
8#include "../SeptentrioSocket.h"
9#include "PacpusTools/BinaryDecoder.h"
10
11class PolarxMainWindow : public QWidget
12{
13 Q_OBJECT
14
15 public :
16 PolarxMainWindow() ;
17 ~PolarxMainWindow() {} ;
18
19 void setData( unsigned char * data , int buf_size ) ;
20 /*void setReceiverStatus( SbfDataReceiverStatus * msg ) ;
21 void setTrackingStatus( SbfDataTrackingStatus * msg ) ;
22 void setPVTGeodetic( SbfDataPVTGeodetic * msg ) ;*/
23 void setSocket( SeptentrioSocket * socket ) ;
24
25 protected slots :
26
27
28 private :
29 int ipID ;
30 int elevMask_set ;
31 std::vector<unsigned char> buffer ;
32 QLabel * TOW ;
33 QLabel * WNC ;
34 QLabel * RXLOAD ;
35 QLabel * UPTIME ;
36 QLabel * CHAN_USED ;
37 QLabel * PVT_USED ;
38 QLabel * PVT_lat ;
39 QLabel * PVT_lon ;
40 QLabel * PVT_elv ;
41 QLabel * SYSTEM ;
42 QLabel * SYSTEM2 ;
43 QLabel * SYSTEM3 ;
44 QLabel * MODE ;
45 QStandardItemModel * TRACKINGSTATUS ;
46 SeptentrioSocket * socketIf_ ;
47 QStringList avFrame ;
48 QPushButton * upFrame ;
49 QPushButton * upSetup ;
50
51 QMap< QString , QCheckBox * > sbfBlock_disp ;
52 QMap< QString , QCheckBox * > pvtMode ;
53 QComboBox * pvtInterval ;
54 QComboBox * measInterval ;
55 QComboBox * trkMode ;
56 QSpinBox * elevMask ;
57 QString pvtInt_set ;
58 QString measInt_set ;
59 QString trkMode_set ;
60
61 void pvtError( QString err );
62 void getAvailableFrame( QString cmd );
63 void getPvtInterval( QString cmd );
64 void requestFrame();
65 void initSbfBlock(QWidget * parent);
66 void initStatusBlock( QWidget * parent ) ;
67 void initSetupBlock( QWidget * parent ) ;
68 void commandManager( QStringList cmdList );
69 void extractIpID( QString cmd ) ;
70 void getPvtMode( QString cmd ) ;
71 void getElevationMask( QString cmd ) ;
72 void getMeasInterval( QString cmd ) ;
73 void getTrackingMode( QString cmd ) ;
74
75 private slots :
76 void sendNewFrame() ;
77 void sendNewSetup() ;
78
79};
80
81
82#endif
Note: See TracBrowser for help on using the repository browser.