Changeset 99 in pacpussensors for trunk/NMEA0183


Ignore:
Timestamp:
10/15/15 14:47:01 (9 years ago)
Author:
nguyenhu
Message:

compilation under linux with 0.2.X framework

Location:
trunk/NMEA0183
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/NMEA0183/CMakeLists.txt

    r59 r99  
    11project(NMEA0183LIB)
    22
    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
    76add_definitions(${QT_DEFINITIONS})
     7#link_directories (${QT_LIBRARIES})
    88
    9 include_directories(include)
     9include_directories(
     10                    ${QT_INCLUDE_DIR}
     11                    include/
     12                   )
    1013
    1114#protocole de la centrale IXSEA
  • trunk/NMEA0183/include/HSATIT.hpp

    r59 r99  
    55#include "qstring.h"
    66#include "NMEA0183_slim.h"
     7#include "nmea0183.h"
    78#include "LatLong.hpp"
    89#include "Sentence.hpp"
  • trunk/NMEA0183/include/NMEA0183_slim.h

    r59 r99  
    1717
    1818/*
    19 ** Updates : Maria Alwan & G�rald Dherbomez 
     19** Updates : Maria Alwan & G�rald Dherbomez
    2020** Date :    14/09/2005
    2121** purpose : use of Qt API instead of MFC
     
    3232#include <QString>
    3333#include <QVector>
    34 #include <QDateTime> 
     34#include <QDateTime>
    3535
    3636
     
    137137#endif
    138138
     139#ifndef TRUE
     140#define TRUE true
     141#endif
     142
     143#ifndef FALSE
     144#define FALSE false
     145#endif
    139146//#include "nmea0183.hpp"
    140147
  • trunk/NMEA0183/include/nmea0183.h

    r59 r99  
    137137#endif
    138138
     139#ifndef TRUE
     140#define TRUE true
     141#endif
     142
     143#ifndef FALSE
     144#define FALSE false
     145#endif
     146
    139147#include "nmea0183.hpp"
    140148
  • trunk/NMEA0183/src/HSATIT.cpp

    r59 r99  
    11#include "HSATIT.hpp"
    2 
     2#include "nmea0183.h"
    33
    44
     
    1919{
    2020
    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;
    2828        pitchRotationRate       = 0.0;
    29         courseMadeGood          = 0.0;         
     29        courseMadeGood          = 0.0;
    3030        speedOverGround         = 0.0;
    31         longitudinalVel         = 0.0;         
     31        longitudinalVel         = 0.0;
    3232        transveralVel           = 0.0;
    3333        verticalVel                     = 0.0;
     
    4343{
    4444   /*
    45    ** HSATIT 
     45   ** HSATIT
    4646   **
    4747   **               1     2     3     4   5     6     7     8     9    10    11    12    13   14   15   16   17   18
     
    4949   ** $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>
    5050   **
    51    ** Field Number: 
     51   ** Field Number:
    5252   **   1)  h.hhh               is the heading in deg
    5353                2)  r.rrr               is the roll in deg
     
    6868                17) m.mm                is the east speed Std in m/s
    6969                18) n.nn                is the vertical speed Std in m/s
    70                
    71                
     70
     71
    7272   */
    7373
    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 );
    8080        pitchRotationRate       = sentence.Double( 7 );
    81         courseMadeGood          = sentence.Double( 8 );         
     81        courseMadeGood          = sentence.Double( 8 );
    8282        speedOverGround         = sentence.Double( 9 );
    83         longitudinalVel         = sentence.Double( 10 );               
     83        longitudinalVel         = sentence.Double( 10 );
    8484        transveralVel           = sentence.Double( 11 );
    8585        verticalVel                     = sentence.Double( 12 );
     
    8989        northSpeedStdDev        = sentence.Double( 16 );
    9090        eastSpeeedStdDev        = sentence.Double( 17 );
    91         verticalStdDev          = sentence.Double( 18 ); 
     91        verticalStdDev          = sentence.Double( 18 );
    9292
    9393   return( TRUE );
     
    108108   ** Let the parent do its thing
    109109   */
    110    
     110
    111111   RESPONSE::Write( sentence );
    112112
     
    115115        sentence += pitch;
    116116        sentence += sentence += sentence += heave;
    117         sentence += yawRotationRate;           
    118         sentence += rollRotationRate;   
     117        sentence += yawRotationRate;
     118        sentence += rollRotationRate;
    119119        sentence += pitchRotationRate;
    120         sentence += courseMadeGood;             
     120        sentence += courseMadeGood;
    121121        sentence += speedOverGround;
    122         sentence += longitudinalVel;           
     122        sentence += longitudinalVel;
    123123        sentence += transveralVel;
    124124        sentence += verticalVel;
     
    128128        sentence += sentence += northSpeedStdDev;
    129129        sentence += eastSpeeedStdDev;
    130         sentence += verticalStdDev; 
     130        sentence += verticalStdDev;
    131131
    132132   sentence.Finish();
     
    138138{
    139139
    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;
    146146        pitchRotationRate       = source.pitchRotationRate;
    147         courseMadeGood          = source.courseMadeGood;               
     147        courseMadeGood          = source.courseMadeGood;
    148148        speedOverGround         = source.speedOverGround;
    149         longitudinalVel         = source.longitudinalVel;               
     149        longitudinalVel         = source.longitudinalVel;
    150150        transveralVel           = source.transveralVel;
    151151        verticalVel                     = source.verticalVel;
Note: See TracChangeset for help on using the changeset viewer.