Copter : Remove legacy optical flow control mode

This mode is not compatible with the new PX4Flow interface
This commit is contained in:
priseborough 2014-10-31 23:48:21 +11:00 committed by Andrew Tridgell
parent 23953b459e
commit 900519b35b

View File

@ -65,12 +65,6 @@ static bool set_mode(uint8_t mode)
success = rtl_init(ignore_checks); success = rtl_init(ignore_checks);
break; break;
#if OPTFLOW == ENABLED
case OF_LOITER:
success = ofloiter_init(ignore_checks);
break;
#endif
case DRIFT: case DRIFT:
success = drift_init(ignore_checks); success = drift_init(ignore_checks);
break; break;
@ -171,12 +165,6 @@ static void update_flight_mode()
rtl_run(); rtl_run();
break; break;
#if OPTFLOW == ENABLED
case OF_LOITER:
ofloiter_run();
break;
#endif
case DRIFT: case DRIFT:
drift_run(); drift_run();
break; break;