Changeset 185 in flair-src for trunk/demos/Gps/uav/src/DemoGps.cpp


Ignore:
Timestamp:
Jun 14, 2017, 11:46:03 AM (4 years ago)
Author:
Sanahuja Guillaume
Message:

modifs gps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/demos/Gps/uav/src/DemoGps.cpp

    r167 r185  
    4646  stopCircle = new PushButton(GetButtonsLayout()->LastRowLastCol(), "stop_circle");
    4747
    48   // RTDM_SerialPort *serialport=new RTDM_SerialPort(getFrameworkManager(),"gps_serial","rtser2");
    49   // gps=new Mb800("gps",serialport,(NmeaGps::NMEAFlags_t)(NmeaGps::GGA|NmeaGps::VTG),40);
    50   gps = new SimuGps("gps", (NmeaGps::NMEAFlags_t)(NmeaGps::GGA | NmeaGps::VTG), 0,0, 40);
    51 
    52   gps->UseDefaultPlot();
    53   getFrameworkManager()->AddDeviceToLog(gps);
    54   gps->Start();
    55 
    56   circle = new TrajectoryGenerator2DCircle(gps->GetLayout()->NewRow(), "circle");
     48  circle = new TrajectoryGenerator2DCircle(uav->GetGps()->GetLayout()->NewRow(), "circle");
    5749  // todo: add graphs in gps plot
    5850  /*
Note: See TracChangeset for help on using the changeset viewer.