Changeset 32 in flair-dev for trunk/include/FlairSensorActuator/SimuGps.h


Ignore:
Timestamp:
Jul 29, 2016, 3:32:59 PM (8 years ago)
Author:
Sanahuja Guillaume
Message:

m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/FlairSensorActuator/SimuGps.h

    r13 r32  
    1515
    1616#include <Thread.h>
    17 #include <Gps.h>
     17#include <NmeaGps.h>
    1818
    1919namespace flair {
    20 namespace core {
    21 class FrameworkManager;
    22 }
     20  namespace core {
     21    class FrameworkManager;
     22    class SharedMem;
     23  }
     24  namespace gui {
     25    class SpinBox;
     26    class DoubleSpinBox;
     27  }
    2328}
    2429
     
    2934* \brief Class for a simulation GPS
    3035*/
    31 class SimuGps : public core::Thread, public Gps {
     36class SimuGps : public core::Thread, public NmeaGps {
    3237public:
    3338  /*!
    3439  * \brief Constructor
    3540  *
    36   * Construct a Novatel.
     41  * Construct a simulation GPS. Control part.
    3742  *
    3843  * \param parent parent
    3944  * \param name name
    4045  * \param NMEAFlags NMEA sentances to enable
     46  * \param deviceId device id
    4147  * \param priority priority of the Thread
    4248  */
    4349  SimuGps(const core::FrameworkManager *parent, std::string name,
    44           Gps::NMEAFlags_t NMEAFlags, uint8_t priority);
     50          NmeaGps::NMEAFlags_t NMEAFlags, uint32_t deviceId,uint8_t priority);
     51
     52  /*!
     53  * \brief Constructor
     54  *
     55  * Construct a simulation GPS. Simulation part.\n
     56  * The Thread of this class should not be run.
     57  *
     58  * \param parent parent
     59  * \param name name
     60  * \param deviceId device id
     61  */
     62  SimuGps(const core::IODevice *parent, std::string name, uint32_t deviceId);
    4563
    4664  /*!
     
    5876  * \param data data from the parent to process
    5977  */
    60   void UpdateFrom(const core::io_data *data){};
     78  void UpdateFrom(const core::io_data *data);
    6179
    6280  /*!
     
    6785  */
    6886  void Run(void);
     87
     88  typedef struct {
     89    float x;
     90    float y;
     91    float z;
     92  } gps_states_t;
     93
     94  core::SharedMem *shmem;
     95  gui::SpinBox *dataRate,*fixQuality,*numberOfSatellites;
     96  gui::DoubleSpinBox *latitudeRef,*longitudeRef,*altitudeRef;
    6997};
    7098} // end namespace sensor
Note: See TracChangeset for help on using the changeset viewer.