- Timestamp:
- Feb 8, 2018, 5:51:13 PM (7 years ago)
- Location:
- trunk/lib
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairMeta/src/Uav.cpp
r214 r215 27 27 #include <UsRangeFinder.h> 28 28 #include <NmeaGps.h> 29 #include <PressureSensor.h> 29 30 #include <Bldc.h> 30 31 #include <Matrix.h> … … 59 60 horizontalCamera = NULL; 60 61 gps = NULL; 62 pressureSensor = NULL; 61 63 this->multiplex = multiplex; 62 64 } … … 77 79 } 78 80 79 void Uav::SetBldc(const Bldc *inBldc) { bldc = (Bldc *)inBldc; } 81 void Uav::SetBldc(const Bldc *inBldc) { 82 bldc = (Bldc *)inBldc; 83 } 80 84 81 85 void Uav::SetBatteryMonitor(const BatteryMonitor *inBattery) { … … 96 100 } 97 101 102 void Uav::SetPressureSensor(const PressureSensor *inPressureSensor) { 103 pressureSensor=(PressureSensor *)inPressureSensor; 104 getFrameworkManager()->AddDeviceToLog(pressureSensor); 105 } 106 98 107 void Uav::SetGps(const NmeaGps *inGps) { 99 gps=(NmeaGps *)inGps;108 gps=(NmeaGps *)inGps; 100 109 getFrameworkManager()->AddDeviceToLog(gps); 101 110 } … … 157 166 ahrs->UseDefaultPlot(); 158 167 if(gps!=NULL) gps->UseDefaultPlot(); 168 if(pressureSensor!=NULL) pressureSensor->UseDefaultPlot(); 159 169 } 160 170 … … 179 189 NmeaGps *Uav::GetGps(void) const { return gps; } 180 190 191 PressureSensor *Uav::GetPressureSensor(void) const { return pressureSensor; } 192 181 193 } // end namespace meta 182 194 } // end namespace flair -
trunk/lib/FlairMeta/src/Uav.h
r185 r215 31 31 class Camera; 32 32 class NmeaGps; 33 class PressureSensor; 33 34 } 34 35 } … … 64 65 sensor::Camera *GetHorizontalCamera(void) const; 65 66 sensor::NmeaGps *GetGps(void) const; 67 sensor::PressureSensor *GetPressureSensor(void) const; 66 68 virtual std::string GetDefaultVrpnAddress(void) const{return "127.0.0.1:3883";} 67 69 virtual bool isReadyToFly(void) const { return true;} … … 77 79 void SetHorizontalCamera(const sensor::Camera *verticalCamera); 78 80 void SetGps(const sensor::NmeaGps *gps); 81 void SetPressureSensor(const sensor::PressureSensor *pressureSensor); 79 82 80 83 private: … … 88 91 sensor::BatteryMonitor *battery; 89 92 sensor::Camera *verticalCamera,*horizontalCamera; 93 sensor::PressureSensor *pressureSensor; 90 94 }; 91 95
Note:
See TracChangeset
for help on using the changeset viewer.