mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-21 16:18:29 -04:00
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
|
||||
#include "AP_RangeFinder_MaxsonarI2CXL.h"
|
||||
#include <AP_HAL.h>
|
||||
@ -87,3 +88,4 @@ int16_t AP_RangeFinder_MaxsonarI2CXL::read()
|
||||
|
||||
return ret_value;
|
||||
}
|
||||
#endif
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user