Changeset 215 in flair-src for trunk/lib/FlairMeta/src/Uav.cpp


Ignore:
Timestamp:
02/08/18 17:51:13 (4 years ago)
Author:
Sanahuja Guillaume
Message:

pressure sensor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairMeta/src/Uav.cpp

    r214 r215  
    2727#include <UsRangeFinder.h>
    2828#include <NmeaGps.h>
     29#include <PressureSensor.h>
    2930#include <Bldc.h>
    3031#include <Matrix.h>
     
    5960  horizontalCamera = NULL;
    6061  gps = NULL;
     62  pressureSensor = NULL;
    6163  this->multiplex = multiplex;
    6264}
     
    7779}
    7880
    79 void Uav::SetBldc(const Bldc *inBldc) { bldc = (Bldc *)inBldc; }
     81void Uav::SetBldc(const Bldc *inBldc) {
     82  bldc = (Bldc *)inBldc;
     83}
    8084
    8185void Uav::SetBatteryMonitor(const BatteryMonitor *inBattery) {
     
    96100}
    97101
     102void Uav::SetPressureSensor(const PressureSensor *inPressureSensor) {
     103  pressureSensor=(PressureSensor *)inPressureSensor;
     104  getFrameworkManager()->AddDeviceToLog(pressureSensor);
     105}
     106
    98107void Uav::SetGps(const NmeaGps *inGps) {
    99   gps=(NmeaGps*)inGps;
     108  gps=(NmeaGps *)inGps;
    100109  getFrameworkManager()->AddDeviceToLog(gps);
    101110}
     
    157166  ahrs->UseDefaultPlot();
    158167  if(gps!=NULL) gps->UseDefaultPlot();
     168  if(pressureSensor!=NULL) pressureSensor->UseDefaultPlot();
    159169}
    160170
     
    179189NmeaGps *Uav::GetGps(void) const { return gps; }
    180190
     191PressureSensor *Uav::GetPressureSensor(void) const { return pressureSensor; }
     192
    181193} // end namespace meta
    182194} // end namespace flair
Note: See TracChangeset for help on using the changeset viewer.