Changeset 185 in flair-src for trunk/lib/FlairMeta/src/SimuX4.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/SimuX4.cpp

    r160 r185  
    2525#include <SimuCamera.h>
    2626#include <BatteryMonitor.h>
     27#include <SimuGps.h>
    2728#include <Tab.h>
    2829#include <FindArgument.h>
     
    6263  Info("using horizontal camera resolution: %ix%i\n",camhWidth, camhHeight);
    6364  SetHorizontalCamera(new SimuCamera("simu_cam_h", camhWidth, camhHeight, 3, simu_id,1, 10));
     65 
     66  string useGps=FindArgument(options,"use_gps=",false);
     67  if(useGps=="true") {
     68    SetGps(new SimuGps("gps", (NmeaGps::NMEAFlags_t)(NmeaGps::GGA | NmeaGps::VTG), 0,0, 40));
     69  }
    6470}
    6571
     
    7177  ((SimuCamera *)GetVerticalCamera())->Start();
    7278  ((SimuCamera *)GetHorizontalCamera())->Start();
     79  ((SimuGps *)GetGps())->Start();
    7380}
    7481
Note: See TracChangeset for help on using the changeset viewer.