mirror of https://github.com/ArduPilot/ardupilot
Copter: update for new OptFlow API
This commit is contained in:
parent
11ff12dfd3
commit
c784ee717b
|
@ -314,8 +314,8 @@ AP_Mission mission(ahrs, &start_command, &verify_command, &exit_mission);
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
// Optical flow sensor
|
// Optical flow sensor
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
#if OPTFLOW == ENABLED && CONFIG_HAL_BOARD == HAL_BOARD_PX4
|
#if OPTFLOW == ENABLED
|
||||||
static AP_OpticalFlow_PX4 optflow(ahrs);
|
static OpticalFlow optflow;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// gnd speed limit required to observe optical flow sensor limits
|
// gnd speed limit required to observe optical flow sensor limits
|
||||||
|
|
|
@ -388,7 +388,7 @@
|
||||||
//////////////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////////////
|
||||||
// OPTICAL_FLOW
|
// OPTICAL_FLOW
|
||||||
#ifndef OPTFLOW
|
#ifndef OPTFLOW
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_PX4
|
#if HAL_CPU_CLASS >= HAL_CPU_CLASS_75
|
||||||
# define OPTFLOW ENABLED
|
# define OPTFLOW ENABLED
|
||||||
#else
|
#else
|
||||||
# define OPTFLOW DISABLED
|
# define OPTFLOW DISABLED
|
||||||
|
|
Loading…
Reference in New Issue