mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
AP_OpticalFlow: support cx-of on all boards
This commit is contained in:
parent
a7961ae869
commit
2d1e02fada
@ -103,9 +103,6 @@ void OpticalFlow::init(void)
|
||||
if (backend == nullptr) {
|
||||
backend = AP_OpticalFlow_PX4Flow::detect(*this);
|
||||
}
|
||||
if (backend == nullptr) {
|
||||
backend = AP_OpticalFlow_CXOF::detect(*this);
|
||||
}
|
||||
#elif CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||
backend = new AP_OpticalFlow_SITL(*this);
|
||||
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BEBOP
|
||||
@ -115,6 +112,9 @@ void OpticalFlow::init(void)
|
||||
#elif CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_CHIBIOS_SKYVIPER_F412
|
||||
backend = AP_OpticalFlow_Pixart::detect("pixartflow", *this);
|
||||
#endif
|
||||
if (backend == nullptr) {
|
||||
backend = AP_OpticalFlow_CXOF::detect(*this);
|
||||
}
|
||||
}
|
||||
|
||||
if (backend != nullptr) {
|
||||
|
Loading…
Reference in New Issue
Block a user