AP_RangeFinder: PulsedLightLRF: fix coding style
- sort headers - fix constructor
This commit is contained in:
parent
0dc33410ff
commit
c8094e2593
@ -13,11 +13,12 @@
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "AP_RangeFinder_PulsedLightLRF.h"
|
#include "AP_RangeFinder_PulsedLightLRF.h"
|
||||||
#include <AP_HAL/AP_HAL.h>
|
|
||||||
#include <utility>
|
#include <utility>
|
||||||
|
|
||||||
|
#include <AP_HAL/AP_HAL.h>
|
||||||
|
|
||||||
extern const AP_HAL::HAL& hal;
|
extern const AP_HAL::HAL& hal;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -26,9 +27,9 @@ extern const AP_HAL::HAL& hal;
|
|||||||
already know that we should setup the rangefinder
|
already know that we should setup the rangefinder
|
||||||
*/
|
*/
|
||||||
AP_RangeFinder_PulsedLightLRF::AP_RangeFinder_PulsedLightLRF(RangeFinder &_ranger, uint8_t instance,
|
AP_RangeFinder_PulsedLightLRF::AP_RangeFinder_PulsedLightLRF(RangeFinder &_ranger, uint8_t instance,
|
||||||
RangeFinder::RangeFinder_State &_state) :
|
RangeFinder::RangeFinder_State &_state)
|
||||||
AP_RangeFinder_Backend(_ranger, instance, _state),
|
: AP_RangeFinder_Backend(_ranger, instance, _state)
|
||||||
_dev(hal.i2c_mgr->get_device(0, AP_RANGEFINDER_PULSEDLIGHTLRF_ADDR))
|
, _dev(hal.i2c_mgr->get_device(0, AP_RANGEFINDER_PULSEDLIGHTLRF_ADDR))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user