AP_OpticalFlow: enable pixart flow on PCNC1 boards

This commit is contained in:
Andrew Tridgell 2018-01-18 18:18:23 +11:00
parent 5eb29f94ce
commit 429a2beb86
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}