mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
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:
parent
86c1c6da5c
commit
47be4b5868
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user