Changeset 245 in flair-src for trunk/lib/FlairMeta
- Timestamp:
- May 24, 2018, 11:45:54 AM (7 years ago)
- Location:
- trunk/lib/FlairMeta/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairMeta/src/SimuX4.cpp
r206 r245 24 24 #include <SimuUs.h> 25 25 #include <SimuCamera.h> 26 #include <SimuPressureSensor.h> 26 27 #include <BatteryMonitor.h> 27 28 #include <SimuGps.h> … … 67 68 if(useGps=="true") { 68 69 SetGps(new SimuGps("gps", (NmeaGps::NMEAFlags_t)(NmeaGps::GGA | NmeaGps::VTG), 0,0, 40)); 70 } 71 72 string usePressureSensor=FindArgument(options,"use_pressure_sensor=",false); 73 if(usePressureSensor=="true") { 74 SetPressureSensor(new SimuPressureSensor("pressuresensor", 0,0, 10)); 69 75 } 70 76 } … … 78 84 //((SimuCamera *)GetHorizontalCamera())->Start(); 79 85 if(GetGps()) ((SimuGps *)GetGps())->Start(); 86 if(GetPressureSensor()) ((SimuPressureSensor *)GetPressureSensor())->Start(); 80 87 } 81 88 -
trunk/lib/FlairMeta/src/SimuX8.cpp
r186 r245 24 24 #include <SimuUs.h> 25 25 #include <SimuCamera.h> 26 #include <SimuPressureSensor.h> 26 27 #include <BatteryMonitor.h> 27 28 #include <SimuGps.h> … … 68 69 SetGps(new SimuGps("gps", (NmeaGps::NMEAFlags_t)(NmeaGps::GGA | NmeaGps::VTG), 0,0, 40)); 69 70 } 71 72 string usePressureSensor=FindArgument(options,"use_pressure_sensor=",false); 73 if(usePressureSensor=="true") { 74 SetPressureSensor(new SimuPressureSensor("pressuresensor", 0,0, 10)); 75 } 70 76 } 71 77 … … 78 84 ((SimuCamera *)GetHorizontalCamera())->Start(); 79 85 if(GetGps()) ((SimuGps *)GetGps())->Start(); 86 if(GetPressureSensor()) ((SimuPressureSensor *)GetPressureSensor())->Start(); 80 87 } 81 88
Note:
See TracChangeset
for help on using the changeset viewer.