Changeset 32 in flair-dev for trunk/include/FlairSensorActuator/SimuGps.h
- Timestamp:
- Jul 29, 2016, 3:32:59 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/FlairSensorActuator/SimuGps.h
r13 r32 15 15 16 16 #include <Thread.h> 17 #include < Gps.h>17 #include <NmeaGps.h> 18 18 19 19 namespace 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 } 23 28 } 24 29 … … 29 34 * \brief Class for a simulation GPS 30 35 */ 31 class SimuGps : public core::Thread, public Gps {36 class SimuGps : public core::Thread, public NmeaGps { 32 37 public: 33 38 /*! 34 39 * \brief Constructor 35 40 * 36 * Construct a Novatel.41 * Construct a simulation GPS. Control part. 37 42 * 38 43 * \param parent parent 39 44 * \param name name 40 45 * \param NMEAFlags NMEA sentances to enable 46 * \param deviceId device id 41 47 * \param priority priority of the Thread 42 48 */ 43 49 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); 45 63 46 64 /*! … … 58 76 * \param data data from the parent to process 59 77 */ 60 void UpdateFrom(const core::io_data *data) {};78 void UpdateFrom(const core::io_data *data); 61 79 62 80 /*! … … 67 85 */ 68 86 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; 69 97 }; 70 98 } // end namespace sensor
Note:
See TracChangeset
for help on using the changeset viewer.