Changeset 99 in pacpussensors for trunk/NMEA0183
- Timestamp:
- Oct 15, 2015, 2:47:01 PM (9 years ago)
- Location:
- trunk/NMEA0183
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/NMEA0183/CMakeLists.txt
r59 r99 1 1 project(NMEA0183LIB) 2 2 3 find_package(Qt4 REQUIRED) 4 include(${QT_USE_FILE}) 5 include_directories(${QT_INCLUDE_DIR}) 6 link_directories (${QT_LIBRARIES}) 3 #find_package(Qt4 REQUIRED) 4 #include(${QT_USE_FILE}) 5 7 6 add_definitions(${QT_DEFINITIONS}) 7 #link_directories (${QT_LIBRARIES}) 8 8 9 include_directories(include) 9 include_directories( 10 ${QT_INCLUDE_DIR} 11 include/ 12 ) 10 13 11 14 #protocole de la centrale IXSEA -
trunk/NMEA0183/include/HSATIT.hpp
r59 r99 5 5 #include "qstring.h" 6 6 #include "NMEA0183_slim.h" 7 #include "nmea0183.h" 7 8 #include "LatLong.hpp" 8 9 #include "Sentence.hpp" -
trunk/NMEA0183/include/NMEA0183_slim.h
r59 r99 17 17 18 18 /* 19 ** Updates : Maria Alwan & G�rald Dherbomez 19 ** Updates : Maria Alwan & G�rald Dherbomez 20 20 ** Date : 14/09/2005 21 21 ** purpose : use of Qt API instead of MFC … … 32 32 #include <QString> 33 33 #include <QVector> 34 #include <QDateTime> 34 #include <QDateTime> 35 35 36 36 … … 137 137 #endif 138 138 139 #ifndef TRUE 140 #define TRUE true 141 #endif 142 143 #ifndef FALSE 144 #define FALSE false 145 #endif 139 146 //#include "nmea0183.hpp" 140 147 -
trunk/NMEA0183/include/nmea0183.h
r59 r99 137 137 #endif 138 138 139 #ifndef TRUE 140 #define TRUE true 141 #endif 142 143 #ifndef FALSE 144 #define FALSE false 145 #endif 146 139 147 #include "nmea0183.hpp" 140 148 -
trunk/NMEA0183/src/HSATIT.cpp
r59 r99 1 1 #include "HSATIT.hpp" 2 2 #include "nmea0183.h" 3 3 4 4 … … 19 19 { 20 20 21 22 heading = 0.0; 23 roll = 0.0; 24 pitch = 0.0; 25 heave = 0.0; 26 yawRotationRate = 0.0; 27 rollRotationRate = 0.0; 21 22 heading = 0.0; 23 roll = 0.0; 24 pitch = 0.0; 25 heave = 0.0; 26 yawRotationRate = 0.0; 27 rollRotationRate = 0.0; 28 28 pitchRotationRate = 0.0; 29 courseMadeGood = 0.0; 29 courseMadeGood = 0.0; 30 30 speedOverGround = 0.0; 31 longitudinalVel = 0.0; 31 longitudinalVel = 0.0; 32 32 transveralVel = 0.0; 33 33 verticalVel = 0.0; … … 43 43 { 44 44 /* 45 ** HSATIT 45 ** HSATIT 46 46 ** 47 47 ** 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 … … 49 49 ** $HSATIT,h.hhh,r.rrr,p.ppp,h.h,a.aaa,b.bbb,c.ccc,d.ddd,e.eee,f.fff,g.ggg,h.hhh,i.ii,j.jj,k.kk,l.ll,m.mm,n.nn<CR><LF> 50 50 ** 51 ** Field Number: 51 ** Field Number: 52 52 ** 1) h.hhh is the heading in deg 53 53 2) r.rrr is the roll in deg … … 68 68 17) m.mm is the east speed Std in m/s 69 69 18) n.nn is the vertical speed Std in m/s 70 71 70 71 72 72 */ 73 73 74 heading = sentence.Double( 1 ); 75 roll = sentence.Double( 2 ); 76 pitch = sentence.Double( 3 ); 77 heave = sentence.Double( 4 ); 78 yawRotationRate = sentence.Double( 5 ); 79 rollRotationRate = sentence.Double( 6 ); 74 heading = sentence.Double( 1 ); 75 roll = sentence.Double( 2 ); 76 pitch = sentence.Double( 3 ); 77 heave = sentence.Double( 4 ); 78 yawRotationRate = sentence.Double( 5 ); 79 rollRotationRate = sentence.Double( 6 ); 80 80 pitchRotationRate = sentence.Double( 7 ); 81 courseMadeGood = sentence.Double( 8 ); 81 courseMadeGood = sentence.Double( 8 ); 82 82 speedOverGround = sentence.Double( 9 ); 83 longitudinalVel = sentence.Double( 10 ); 83 longitudinalVel = sentence.Double( 10 ); 84 84 transveralVel = sentence.Double( 11 ); 85 85 verticalVel = sentence.Double( 12 ); … … 89 89 northSpeedStdDev = sentence.Double( 16 ); 90 90 eastSpeeedStdDev = sentence.Double( 17 ); 91 verticalStdDev = sentence.Double( 18 ); 91 verticalStdDev = sentence.Double( 18 ); 92 92 93 93 return( TRUE ); … … 108 108 ** Let the parent do its thing 109 109 */ 110 110 111 111 RESPONSE::Write( sentence ); 112 112 … … 115 115 sentence += pitch; 116 116 sentence += sentence += sentence += heave; 117 sentence += yawRotationRate; 118 sentence += rollRotationRate; 117 sentence += yawRotationRate; 118 sentence += rollRotationRate; 119 119 sentence += pitchRotationRate; 120 sentence += courseMadeGood; 120 sentence += courseMadeGood; 121 121 sentence += speedOverGround; 122 sentence += longitudinalVel; 122 sentence += longitudinalVel; 123 123 sentence += transveralVel; 124 124 sentence += verticalVel; … … 128 128 sentence += sentence += northSpeedStdDev; 129 129 sentence += eastSpeeedStdDev; 130 sentence += verticalStdDev; 130 sentence += verticalStdDev; 131 131 132 132 sentence.Finish(); … … 138 138 { 139 139 140 heading = source.heading; 141 roll = source.roll; 142 pitch = source.pitch; 143 heave = source.heave; 144 yawRotationRate = source.yawRotationRate; 145 rollRotationRate = source.rollRotationRate; 140 heading = source.heading; 141 roll = source.roll; 142 pitch = source.pitch; 143 heave = source.heave; 144 yawRotationRate = source.yawRotationRate; 145 rollRotationRate = source.rollRotationRate; 146 146 pitchRotationRate = source.pitchRotationRate; 147 courseMadeGood = source.courseMadeGood; 147 courseMadeGood = source.courseMadeGood; 148 148 speedOverGround = source.speedOverGround; 149 longitudinalVel = source.longitudinalVel; 149 longitudinalVel = source.longitudinalVel; 150 150 transveralVel = source.transveralVel; 151 151 verticalVel = source.verticalVel;
Note:
See TracChangeset
for help on using the changeset viewer.