Changeset 55 in flair-src for trunk/lib/FlairSensorActuator/src/NmeaGps.h


Ignore:
Timestamp:
Jul 28, 2016, 5:55:31 PM (5 years ago)
Author:
Sanahuja Guillaume
Message:

simu gps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairSensorActuator/src/NmeaGps.h

    r51 r55  
    3232    class Map;
    3333    class Label;
     34    class GroupBox;
    3435  }
    3536}
     
    6768
    6869  /*!
     70  * \brief Constructor
     71  *
     72  * Construct a NmeaGps. \n
     73  * This contructor must only be called for a simulated device.
     74  *
     75  * \param parent parent
     76  * \param name name
     77  */
     78  NmeaGps(const core::IODevice *parent, std::string name);
     79
     80  /*!
    6981  * \brief Destructor
    7082  *
     
    173185  NMEAFlags_t NMEAFlags;
    174186
    175 protected:
     187  /*!
     188  * \brief Get GPS datas
     189  *
     190  * \param gpsData GPS datas
     191  */
     192  void GetDatas(core::GpsData **gpsData) const;
     193
     194  /*!
     195  * \brief Setup GroupBox
     196  *
     197  * \return setup GroupBox
     198  */
     199  gui::GroupBox *GetGroupBox(void) const;
     200
     201private:
     202  gui::Tab *mainTab, *sensorTab;
     203  gui::TabWidget *tab;
     204  gui::GroupBox *setupGroupbox;
     205  gui::PushButton *buttonRef;
     206  gui::DataPlot1D *ePlot;
     207  gui::DataPlot1D *nPlot;
     208  gui::DataPlot1D *uPlot;
     209  gui::DataPlot1D *vePlot;
     210  gui::DataPlot1D *vnPlot;
     211  gui::Tab *plotTab;
     212  gui::Map *map;
     213  gui::Label *nbSatLabel, *fixLabel;
    176214  core::GeoCoordinate *position;
    177 
    178   /*!
    179   * \brief Get GPS datas
    180   *
    181   * \param gpsData GPS datas
    182   */
    183   void GetDatas(core::GpsData **gpsData) const;
    184 
    185 private:
    186   /*!
    187   * \brief Update using provided datas
    188   *
    189   * Reimplemented from IODevice.
    190   *
    191   * \param data data from the parent to process
    192   */
    193   void UpdateFrom(const core::io_data *data){};
    194 
    195   gui::Tab *main_tab, *sensor_tab;
    196   gui::TabWidget *tab;
    197   gui::PushButton *button_ref;
    198   gui::DataPlot1D *e_plot;
    199   gui::DataPlot1D *n_plot;
    200   gui::DataPlot1D *u_plot;
    201   gui::DataPlot1D *ve_plot;
    202   gui::DataPlot1D *vn_plot;
    203   gui::Tab *plot_tab;
    204   gui::Map *map;
    205   gui::Label *nb_sat_label, *fix_label;
    206   bool take_ref;
     215  bool takeRef;
    207216  nmeaINFO info;
    208217  nmeaPARSER parser;
    209218  nmeaGPGGA pack;
    210219  nmeaPOS pos;
    211   double lat_ref, long_ref, alt_ref;
     220  double latRef, longRef, altRef;
    212221  core::GpsData* gpsData;
    213222};
Note: See TracChangeset for help on using the changeset viewer.