source: flair-dev/trunk/include/FlairSimulator/SimuGps.h@ 82

Last change on this file since 82 was 68, checked in by Sanahuja Guillaume, 4 years ago

maj for armv5te

File size: 1.3 KB
Line 
1// %flair:license{
2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
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 <IODevice.h>
17
18namespace flair {
19 namespace core {
20 class SharedMem;
21 }
22}
23
24namespace flair {
25namespace sensor {
26/*! \class SimuGps
27*
28* \brief Class for a simulation GPS
29*/
30class SimuGps : public core::IODevice {
31public:
32 /*!
33 * \brief Constructor
34 *
35 * Construct a simulation GPS.
36 *
37 * \param parent parent
38 * \param name name
39 * \param modelId Model id
40 * \param deviceId Gps id of the Model
41 */
42 SimuGps(const core::IODevice *parent, std::string name, uint32_t modelId,uint32_t deviceId);
43
44 /*!
45 * \brief Destructor
46 *
47 */
48 ~SimuGps();
49
50private:
51 /*!
52 * \brief Update using provided datas
53 *
54 * Reimplemented from IODevice.
55 *
56 * \param data data from the parent to process
57 */
58 void UpdateFrom(const core::io_data *data);
59
60 typedef struct {
61 float e;
62 float n;
63 float u;
64 float ve;
65 float vn;
66 } gps_states_t;
67
68 std::string ShMemName(uint32_t modelId,uint32_t deviceId);
69
70 core::SharedMem *shmem;
71};
72} // end namespace sensor
73} // end namespace flair
74#endif // SIMUGPS_H
Note: See TracBrowser for help on using the repository browser.