Changeset 185 in flair-src for trunk/lib/FlairMeta/src/Uav.cpp


Ignore:
Timestamp:
06/14/17 11:46:03 (5 years ago)
Author:
Sanahuja Guillaume
Message:

modifs gps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairMeta/src/Uav.cpp

    r122 r185  
    2626#include <UavMultiplex.h>
    2727#include <UsRangeFinder.h>
     28#include <NmeaGps.h>
    2829#include <Bldc.h>
    2930#include <cvmatrix.h>
     
    5758  verticalCamera = NULL;
    5859  horizontalCamera = NULL;
     60  gps = NULL;
    5961  this->multiplex = multiplex;
    6062}
     
    9193void Uav::SetHorizontalCamera(const Camera *inHorizontalCamera) {
    9294  horizontalCamera = (Camera *)inHorizontalCamera;
     95}
     96
     97void Uav::SetGps(const NmeaGps *inGps) {
     98  gps=(NmeaGps*)inGps;
     99  getFrameworkManager()->AddDeviceToLog(gps);
    93100}
    94101
     
    148155  meta_us->UseDefaultPlot();
    149156  ahrs->UseDefaultPlot();
     157  if(gps!=NULL) gps->UseDefaultPlot();
    150158}
    151159
     
    168176Camera *Uav::GetHorizontalCamera(void) const { return horizontalCamera; }
    169177
     178NmeaGps *Uav::GetGps(void) const { return gps; }
     179
    170180} // end namespace meta
    171181} // end namespace flair
Note: See TracChangeset for help on using the changeset viewer.