AP_RangeFinder: disable old rangefinder drivers

these will be re-enabled when they are converted to the new class API
This commit is contained in:
Andrew Tridgell 2014-06-27 12:54:53 +10:00
parent d759a9dd9b
commit 429431157b
4 changed files with 9 additions and 0 deletions

View File

@ -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()
return ret_value;
}
#endif

View File

@ -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_
_scaler = type_scaler * adc_refence_voltage / 5.0f;
return _scaler;
}
#endif

View File

@ -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()
// to-do: do we really want to return 0 if reading the distance fails?
return ret_value;
}
#endif

View File

@ -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,
}
// Public Methods //////////////////////////////////////////////////////////////
#endif