|
|
@ -19,6 +19,7 @@ |
|
|
|
#include "AP_RangeFinder_MaxsonarI2CXL.h" |
|
|
|
#include "AP_RangeFinder_MaxsonarI2CXL.h" |
|
|
|
#include "AP_RangeFinder_MaxsonarSerialLV.h" |
|
|
|
#include "AP_RangeFinder_MaxsonarSerialLV.h" |
|
|
|
#include "AP_RangeFinder_insighticaSerial.h" |
|
|
|
#include "AP_RangeFinder_insighticaSerial.h" |
|
|
|
|
|
|
|
#include "AP_RangeFinder_NanoRadar_MR72.h" |
|
|
|
#include "AP_RangeFinder_BBB_PRU.h" |
|
|
|
#include "AP_RangeFinder_BBB_PRU.h" |
|
|
|
#include "AP_RangeFinder_LightWareI2C.h" |
|
|
|
#include "AP_RangeFinder_LightWareI2C.h" |
|
|
|
#include "AP_RangeFinder_LightWareSerial.h" |
|
|
|
#include "AP_RangeFinder_LightWareSerial.h" |
|
|
@ -498,6 +499,11 @@ void RangeFinder::detect_instance(uint8_t instance, uint8_t& serial_instance) |
|
|
|
drivers[instance] = new AP_RangeFinder_insighticaSerial(state[instance], params[instance], serial_instance++); |
|
|
|
drivers[instance] = new AP_RangeFinder_insighticaSerial(state[instance], params[instance], serial_instance++); |
|
|
|
} |
|
|
|
} |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
case RangeFinder_NanoRadar_MR72: |
|
|
|
|
|
|
|
if (AP_RangeFinder_NanoRadar_MR72::detect(serial_instance)) { |
|
|
|
|
|
|
|
drivers[instance] = new AP_RangeFinder_NanoRadar_MR72(state[instance], params[instance], serial_instance++); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
break; |
|
|
|
default: |
|
|
|
default: |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|