mirror of https://github.com/ArduPilot/ardupilot
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:
parent
d759a9dd9b
commit
429431157b
|
@ -31,6 +31,7 @@
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#if 0
|
||||||
// AVR LibC Includes
|
// AVR LibC Includes
|
||||||
#include "AP_RangeFinder_MaxsonarI2CXL.h"
|
#include "AP_RangeFinder_MaxsonarI2CXL.h"
|
||||||
#include <AP_HAL.h>
|
#include <AP_HAL.h>
|
||||||
|
@ -87,3 +88,4 @@ int16_t AP_RangeFinder_MaxsonarI2CXL::read()
|
||||||
|
|
||||||
return ret_value;
|
return ret_value;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#if 0
|
||||||
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
// -*- 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
|
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;
|
_scaler = type_scaler * adc_refence_voltage / 5.0f;
|
||||||
return _scaler;
|
return _scaler;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#if 0
|
||||||
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
// -*- 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
|
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?
|
// to-do: do we really want to return 0 if reading the distance fails?
|
||||||
return ret_value;
|
return ret_value;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
#if 0
|
||||||
// -*- tab-width: 4; Mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*-
|
// -*- 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
|
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 //////////////////////////////////////////////////////////////
|
// Public Methods //////////////////////////////////////////////////////////////
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue