Copter: reenable optical flow by default
correct optflow test compile error
This commit is contained in:
parent
8ea3e68620
commit
f52c6add89
@ -418,7 +418,7 @@
|
||||
//////////////////////////////////////////////////////////////////////////////
|
||||
// OPTICAL_FLOW
|
||||
#ifndef OPTFLOW // sets global enabled/disabled flag for optflow (as seen in CLI)
|
||||
# define OPTFLOW DISABLED
|
||||
# define OPTFLOW ENABLED
|
||||
#endif
|
||||
#ifndef OPTFLOW_ORIENTATION
|
||||
# define OPTFLOW_ORIENTATION AP_OPTICALFLOW_ADNS3080_PINS_FORWARD
|
||||
|
@ -284,7 +284,7 @@ test_optflow(uint8_t argc, const Menu::arg *argv)
|
||||
|
||||
while(1) {
|
||||
delay(200);
|
||||
optflow.update(millis());
|
||||
optflow.update();
|
||||
Log_Write_Optflow();
|
||||
cliSerial->printf_P(PSTR("x/dx: %d/%d\t y/dy %d/%d\t squal:%d\n"),
|
||||
optflow.x,
|
||||
|
Loading…
Reference in New Issue
Block a user