mirror of https://github.com/ArduPilot/ardupilot
AP_OpticalFlow: enable pixart flow on PCNC1 boards
This commit is contained in:
parent
5eb29f94ce
commit
429a2beb86
|
@ -90,7 +90,8 @@ void OpticalFlow::init(void)
|
|||
|
||||
if (!backend) {
|
||||
#if AP_FEATURE_BOARD_DETECT
|
||||
if (AP_BoardConfig::get_board_type() == AP_BoardConfig::PX4_BOARD_PIXHAWK) {
|
||||
if (AP_BoardConfig::get_board_type() == AP_BoardConfig::PX4_BOARD_PIXHAWK ||
|
||||
AP_BoardConfig::get_board_type() == AP_BoardConfig::PX4_BOARD_PCNC1) {
|
||||
// possibly have pixhart on external SPI
|
||||
backend = AP_OpticalFlow_Pixart::detect(*this);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue