mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Rangefinder: fix compilation for Bebop
This commit is contained in:
parent
8a4553ba0a
commit
209b0300a5
@ -62,8 +62,8 @@ static const uint16_t waveform_mode1[32] = {
|
|||||||
1675, 1540, 1492, 1374, 1292
|
1675, 1540, 1492, 1374, 1292
|
||||||
};
|
};
|
||||||
|
|
||||||
AP_RangeFinder_Bebop::AP_RangeFinder_Bebop(RangeFinder::RangeFinder_State &_state) :
|
AP_RangeFinder_Bebop::AP_RangeFinder_Bebop(RangeFinder::RangeFinder_State &_state, AP_RangeFinder_Params &_params) :
|
||||||
AP_RangeFinder_Backend(_state),
|
AP_RangeFinder_Backend(_state, _params),
|
||||||
_thread(new Linux::Thread(FUNCTOR_BIND_MEMBER(&AP_RangeFinder_Bebop::_loop, void)))
|
_thread(new Linux::Thread(FUNCTOR_BIND_MEMBER(&AP_RangeFinder_Bebop::_loop, void)))
|
||||||
{
|
{
|
||||||
_init();
|
_init();
|
||||||
|
@ -88,7 +88,7 @@ struct adc_capture {
|
|||||||
|
|
||||||
class AP_RangeFinder_Bebop : public AP_RangeFinder_Backend {
|
class AP_RangeFinder_Bebop : public AP_RangeFinder_Backend {
|
||||||
public:
|
public:
|
||||||
AP_RangeFinder_Bebop(RangeFinder::RangeFinder_State &_state);
|
AP_RangeFinder_Bebop(RangeFinder::RangeFinder_State &_state, AP_RangeFinder_Params &_params);
|
||||||
|
|
||||||
~AP_RangeFinder_Bebop(void);
|
~AP_RangeFinder_Bebop(void);
|
||||||
static bool detect();
|
static bool detect();
|
||||||
|
@ -458,7 +458,7 @@ void RangeFinder::detect_instance(uint8_t instance, uint8_t& serial_instance)
|
|||||||
CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_DISCO) && defined(HAVE_LIBIIO)
|
CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_DISCO) && defined(HAVE_LIBIIO)
|
||||||
case RangeFinder_TYPE_BEBOP:
|
case RangeFinder_TYPE_BEBOP:
|
||||||
if (AP_RangeFinder_Bebop::detect()) {
|
if (AP_RangeFinder_Bebop::detect()) {
|
||||||
drivers[instance] = new AP_RangeFinder_Bebop(state[instance]);
|
drivers[instance] = new AP_RangeFinder_Bebop(state[instance], params[instance]);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user