Copter: reenable optical flow by default

correct optflow test compile error
This commit is contained in:
Randy Mackay 2013-10-23 20:42:03 +09:00
parent 8ea3e68620
commit f52c6add89
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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,