source: flair-src/trunk/lib/FlairSensorActuator/src/SimuGps.h@ 251

Last change on this file since 251 was 224, checked in by Sanahuja Guillaume, 6 years ago

maj for armv5te

File size: 1.8 KB
RevLine 
[3]1// %flair:license{
[15]2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
[3]4// %flair:license}
5/*!
6 * \file SimuGps.h
7 * \brief Class for a simulation GPS
8 * \author Guillaume Sanahuja, Copyright Heudiasyc UMR UTC/CNRS 7253
9 * \date 2013/08/23
10 * \version 4.0
11 */
12
13#ifndef SIMUGPS_H
14#define SIMUGPS_H
15
16#include <Thread.h>
[51]17#include <NmeaGps.h>
[3]18
[15]19namespace flair {
[55]20 namespace core {
21 class SharedMem;
22 }
23 namespace gui {
24 class SpinBox;
25 class DoubleSpinBox;
26 }
[3]27}
28
[15]29namespace flair {
30namespace sensor {
31/*! \class SimuGps
32*
33* \brief Class for a simulation GPS
34*/
[51]35class SimuGps : public core::Thread, public NmeaGps {
[15]36public:
37 /*!
38 * \brief Constructor
39 *
[224]40 * Construct a simulation GPS
[137]41 * It will be child of the FrameworkManager.
42 *
[15]43 * \param name name
44 * \param NMEAFlags NMEA sentances to enable
[158]45 * \param modelId Model id
46 * \param deviceId Gps id of the Model
[15]47 * \param priority priority of the Thread
48 */
[137]49 SimuGps(std::string name,
[158]50 NmeaGps::NMEAFlags_t NMEAFlags, uint32_t modelId,uint32_t deviceId,uint8_t priority);
[3]51
[15]52 /*!
53 * \brief Destructor
54 *
55 */
56 ~SimuGps();
[3]57
[15]58private:
59 /*!
60 * \brief Update using provided datas
61 *
62 * Reimplemented from IODevice.
63 *
64 * \param data data from the parent to process
65 */
[224]66 void UpdateFrom(const core::io_data *data){};
[3]67
[15]68 /*!
69 * \brief Run function
70 *
71 * Reimplemented from Thread.
72 *
73 */
74 void Run(void);
[55]75
76 typedef struct {
[68]77 float e;
78 float n;
79 float u;
80 float ve;
81 float vn;
[55]82 } gps_states_t;
[158]83
84 std::string ShMemName(uint32_t modelId,uint32_t deviceId);
[55]85
86 core::SharedMem *shmem;
87 gui::SpinBox *dataRate,*fixQuality,*numberOfSatellites;
[206]88 gui::DoubleSpinBox *latitudeRef,*longitudeRef,*altitudeRef,*magneticDeclination;
[15]89};
[3]90} // end namespace sensor
[170]91} // end namespace flair
[3]92#endif // SIMUGPS_H
Note: See TracBrowser for help on using the repository browser.