Browse Source

AP_RangeFinder: disable old rangefinder drivers

these will be re-enabled when they are converted to the new class API
mission-4.1.18
Andrew Tridgell 11 years ago
parent
commit
429431157b
  1. 2
      libraries/AP_RangeFinder/AP_RangeFinder_MaxsonarI2CXL.cpp
  2. 3
      libraries/AP_RangeFinder/AP_RangeFinder_MaxsonarXL.cpp
  3. 2
      libraries/AP_RangeFinder/AP_RangeFinder_PulsedLightLRF.cpp
  4. 2
      libraries/AP_RangeFinder/AP_RangeFinder_SharpGP2Y.cpp

2
libraries/AP_RangeFinder/AP_RangeFinder_MaxsonarI2CXL.cpp

@ -31,6 +31,7 @@ @@ -31,6 +31,7 @@
*
*/
#if 0
// AVR LibC Includes
#include "AP_RangeFinder_MaxsonarI2CXL.h"
#include <AP_HAL.h>
@ -87,3 +88,4 @@ int16_t AP_RangeFinder_MaxsonarI2CXL::read() @@ -87,3 +88,4 @@ int16_t AP_RangeFinder_MaxsonarI2CXL::read()
return ret_value;
}
#endif

3
libraries/AP_RangeFinder/AP_RangeFinder_MaxsonarXL.cpp

@ -1,3 +1,4 @@ @@ -1,3 +1,4 @@
#if 0
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
/*
This program is free software: you can redistribute it and/or modify
@ -75,3 +76,5 @@ float AP_RangeFinder_MaxsonarXL::calculate_scaler(int16_t sonar_type, float adc_ @@ -75,3 +76,5 @@ float AP_RangeFinder_MaxsonarXL::calculate_scaler(int16_t sonar_type, float adc_
_scaler = type_scaler * adc_refence_voltage / 5.0f;
return _scaler;
}
#endif

2
libraries/AP_RangeFinder/AP_RangeFinder_PulsedLightLRF.cpp

@ -1,3 +1,4 @@ @@ -1,3 +1,4 @@
#if 0
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
/*
This program is free software: you can redistribute it and/or modify
@ -126,3 +127,4 @@ int16_t AP_RangeFinder_PulsedLightLRF::read() @@ -126,3 +127,4 @@ int16_t AP_RangeFinder_PulsedLightLRF::read()
// to-do: do we really want to return 0 if reading the distance fails?
return ret_value;
}
#endif

2
libraries/AP_RangeFinder/AP_RangeFinder_SharpGP2Y.cpp

@ -1,3 +1,4 @@ @@ -1,3 +1,4 @@
#if 0
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
/*
This program is free software: you can redistribute it and/or modify
@ -47,3 +48,4 @@ AP_RangeFinder_SharpGP2Y::AP_RangeFinder_SharpGP2Y(AP_HAL::AnalogSource *source, @@ -47,3 +48,4 @@ AP_RangeFinder_SharpGP2Y::AP_RangeFinder_SharpGP2Y(AP_HAL::AnalogSource *source,
}
// Public Methods //////////////////////////////////////////////////////////////
#endif

Loading…
Cancel
Save