Browse Source

AP_RangeFinder: disabled LeddarOne driver

this driver is broken and could cause a vehicle to crash. It does busy
waits on a UART from the main thread.

It will be re-enabled when fixed
master
Andrew Tridgell 8 years ago
parent
commit
df23c4857e
  1. 4
      libraries/AP_RangeFinder/RangeFinder.cpp

4
libraries/AP_RangeFinder/RangeFinder.cpp

@ -634,11 +634,15 @@ void RangeFinder::detect_instance(uint8_t instance)
} }
} }
if (type == RangeFinder_TYPE_LEDDARONE) { if (type == RangeFinder_TYPE_LEDDARONE) {
#if 0
if (AP_RangeFinder_LeddarOne::detect(*this, instance, serial_manager)) { if (AP_RangeFinder_LeddarOne::detect(*this, instance, serial_manager)) {
state[instance].instance = instance; state[instance].instance = instance;
drivers[instance] = new AP_RangeFinder_LeddarOne(*this, instance, state[instance], serial_manager); drivers[instance] = new AP_RangeFinder_LeddarOne(*this, instance, state[instance], serial_manager);
return; return;
} }
#else
hal.console->printf("LEDDARONE driver disabled\n");
#endif
} }
#if (CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BEBOP || \ #if (CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BEBOP || \
CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_DISCO) && defined(HAVE_LIBIIO) CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_DISCO) && defined(HAVE_LIBIIO)

Loading…
Cancel
Save