Changeset 185 in flair-src for trunk/demos
- Timestamp:
- Jun 14, 2017, 11:46:03 AM (8 years ago)
- Location:
- trunk/demos/Gps
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/demos/Gps/simulator/CMakeLists.txt
r89 r185 5 5 SET(FLAIR_USE_SIMULATOR TRUE) 6 6 SET(FLAIR_USE_SIMULATOR_GL TRUE) 7 SET(FLAIR_USE_GPS TRUE)8 7 9 8 include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake) … … 23 22 ) 24 23 25 TARGET_LINK_LIBRARIES(${PROJECT_NAME}_rt ${FLAIR_LIBRARIES_RT} )24 TARGET_LINK_LIBRARIES(${PROJECT_NAME}_rt ${FLAIR_LIBRARIES_RT} nmea) 26 25 27 26 #non real time executable … … 30 29 ) 31 30 32 TARGET_LINK_LIBRARIES(${PROJECT_NAME}_nrt ${FLAIR_LIBRARIES_NRT} )31 TARGET_LINK_LIBRARIES(${PROJECT_NAME}_nrt ${FLAIR_LIBRARIES_NRT} nmea) -
trunk/demos/Gps/uav/CMakeLists.txt
r123 r185 7 7 SET(FLAIR_USE_VISION_FILTER TRUE) 8 8 SET(FLAIR_USE_META TRUE) 9 SET(FLAIR_USE_GPS TRUE)10 11 9 12 10 include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake) -
trunk/demos/Gps/uav/src/DemoGps.cpp
r167 r185 46 46 stopCircle = new PushButton(GetButtonsLayout()->LastRowLastCol(), "stop_circle"); 47 47 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"); 57 49 // todo: add graphs in gps plot 58 50 /* -
trunk/demos/Gps/uav/src/DemoGps.h
r167 r185 26 26 namespace sensor { 27 27 class TargetController; 28 class Mb800;29 class SimuGps;30 28 } 31 29 } … … 63 61 flair::filter::TrajectoryGenerator2DCircle *circle; 64 62 flair::core::AhrsData *customReferenceOrientation,*customOrientation; 65 //flair::sensor::Mb800 *gps;66 flair::sensor::SimuGps *gps;67 63 }; 68 64 -
trunk/demos/Gps/uav/src/main.cpp
r137 r185 45 45 manager->SetupLogger(log_path); 46 46 47 Uav* drone=CreateUav(name,uav_type );47 Uav* drone=CreateUav(name,uav_type,"use_gps=true"); 48 48 TargetEthController *controller=new TargetEthController("Dualshock3",ds3port); 49 49 DemoGps* demo=new DemoGps(controller);
Note:
See TracChangeset
for help on using the changeset viewer.