Browse Source

global: use static method to construct AP_Baro

master
Lucas De Marchi 8 years ago committed by Francisco Ferreira
parent
commit
91feec0e14
  1. 2
      APMrover2/Rover.h
  2. 2
      AntennaTracker/Tracker.h
  3. 2
      ArduCopter/Copter.h
  4. 2
      ArduPlane/Plane.h
  5. 2
      ArduSub/Sub.h
  6. 2
      Tools/Replay/Replay.h
  7. 2
      libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.cpp
  8. 2
      libraries/AP_Baro/examples/BARO_generic/BARO_generic.cpp
  9. 2
      libraries/AP_Mission/examples/AP_Mission_test/AP_Mission_test.cpp
  10. 2
      libraries/AP_Module/examples/ModuleTest/ModuleTest.cpp
  11. 2
      libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/AP_OpticalFlow_test.cpp

2
APMrover2/Rover.h

@ -152,7 +152,7 @@ private: @@ -152,7 +152,7 @@ private:
// sensor drivers
AP_GPS gps;
AP_Baro barometer;
AP_Baro barometer = AP_Baro::create();
Compass compass;
AP_InertialSensor ins;
RangeFinder rangefinder { serial_manager, ROTATION_NONE };

2
AntennaTracker/Tracker.h

@ -106,7 +106,7 @@ private: @@ -106,7 +106,7 @@ private:
AP_GPS gps;
AP_Baro barometer;
AP_Baro barometer = AP_Baro::create();
Compass compass;

2
ArduCopter/Copter.h

@ -197,7 +197,7 @@ private: @@ -197,7 +197,7 @@ private:
// flight modes convenience array
AP_Int8 *flight_modes;
AP_Baro barometer;
AP_Baro barometer = AP_Baro::create();
Compass compass;
AP_InertialSensor ins;

2
ArduPlane/Plane.h

@ -200,7 +200,7 @@ private: @@ -200,7 +200,7 @@ private:
// flight modes convenience array
AP_Int8 *flight_modes = &g.flight_mode1;
AP_Baro barometer;
AP_Baro barometer = AP_Baro::create();
Compass compass;
AP_InertialSensor ins;

2
ArduSub/Sub.h

@ -166,7 +166,7 @@ private: @@ -166,7 +166,7 @@ private:
AP_LeakDetector leak_detector;
TSYS01 celsius;
AP_Baro barometer;
AP_Baro barometer = AP_Baro::create();
Compass compass;
AP_InertialSensor ins;

2
Tools/Replay/Replay.h

@ -59,7 +59,7 @@ public: @@ -59,7 +59,7 @@ public:
void load_parameters(void);
AP_InertialSensor ins;
AP_Baro barometer;
AP_Baro barometer = AP_Baro::create();
AP_GPS gps;
Compass compass;
AP_SerialManager serial_manager;

2
libraries/AP_AHRS/examples/AHRS_Test/AHRS_Test.cpp

@ -19,7 +19,7 @@ AP_InertialSensor ins; @@ -19,7 +19,7 @@ AP_InertialSensor ins;
Compass compass;
AP_GPS gps;
AP_Baro barometer;
static AP_Baro barometer = AP_Baro::create();
AP_SerialManager serial_manager;
class DummyVehicle {

2
libraries/AP_Baro/examples/BARO_generic/BARO_generic.cpp

@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
const AP_HAL::HAL &hal = AP_HAL::get_HAL();
static AP_Baro barometer;
static AP_Baro barometer = AP_Baro::create();
static uint32_t timer;
static uint8_t counter;

2
libraries/AP_Mission/examples/AP_Mission_test/AP_Mission_test.cpp

@ -15,7 +15,7 @@ public: @@ -15,7 +15,7 @@ public:
private:
AP_InertialSensor ins;
AP_Baro baro;
AP_Baro baro = AP_Baro::create();
AP_GPS gps;
Compass compass;
AP_AHRS_DCM ahrs{ins, baro, gps};

2
libraries/AP_Module/examples/ModuleTest/ModuleTest.cpp

@ -15,7 +15,7 @@ const AP_HAL::HAL& hal = AP_HAL::get_HAL(); @@ -15,7 +15,7 @@ const AP_HAL::HAL& hal = AP_HAL::get_HAL();
// sensor declaration
AP_InertialSensor ins;
AP_GPS gps;
AP_Baro baro;
static AP_Baro baro = AP_Baro::create();
AP_SerialManager serial_manager;
// choose which AHRS system to use

2
libraries/AP_OpticalFlow/examples/AP_OpticalFlow_test/AP_OpticalFlow_test.cpp

@ -22,7 +22,7 @@ const AP_HAL::HAL& hal = AP_HAL::get_HAL(); @@ -22,7 +22,7 @@ const AP_HAL::HAL& hal = AP_HAL::get_HAL();
class DummyVehicle {
public:
AP_GPS gps;
AP_Baro barometer;
AP_Baro barometer = AP_Baro::create();
Compass compass;
AP_InertialSensor ins;
AP_SerialManager serial_manager;

Loading…
Cancel
Save