AP_OpticalFlow: fix use of undefined variable

../../libraries/AP_OpticalFlow/AP_OpticalFlow_Onboard.cpp:86:5: warning: "FLOWONBOARD_DEBUG" is not defined [-Wundef]
 #if FLOWONBOARD_DEBUG
     ^
This commit is contained in:
Lucas De Marchi 2016-03-03 18:35:38 -03:00
parent 86c1c6da5c
commit 47be4b5868

View File

@ -22,7 +22,11 @@
(CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BEBOP ||\
CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_MINLURE ||\
CONFIG_HAL_BOARD_SUBTYPE == HAL_BOARD_SUBTYPE_LINUX_BBBMINI)
//#define FLOWONBOARD_DEBUG 1
#ifndef OPTICALFLOW_ONBOARD_DEBUG
#define OPTICALFLOW_ONBOARD_DEBUG 0
#endif
#define OPTICALFLOW_ONBOARD_ID 1
extern const AP_HAL::HAL& hal;
@ -83,7 +87,7 @@ void AP_OpticalFlow_Onboard::update()
// copy results to front end
_update_frontend(state);
#if FLOWONBOARD_DEBUG
#if OPTICALFLOW_ONBOARD_DEBUG
hal.console->printf("FLOW_ONBOARD qual:%u FlowRateX:%4.2f Y:%4.2f"
"BodyRateX:%4.2f Y:%4.2f, delta_time = %u\n",
(unsigned)state.surface_quality,