ArduPilot / ardupilot

ArduPlane, ArduCopter, ArduRover, ArduSub source
http://ardupilot.org/
GNU General Public License v3.0
11.02k stars 17.57k forks source link

Copter: error in Copter 4.0 if I disable optical flow #12715

Closed andyp1per closed 4 years ago

andyp1per commented 5 years ago

I set #define OPTFLOW DISABLED in APM_Config.h and got this:

[551/560] Compiling ArduCopter/mode_guided_nogps.cpp ../../ArduCopter/ekf_check.cpp: In member function 'bool Copter::ekf_over_threshold()': ../../ArduCopter/ekf_check.cpp:113:10: error: 'optflow' was not declared in this scope if (!optflow.healthy() && (vel_variance >= (2.0f * g.fs_ekf_thresh))) { ^ compilation terminated due to -Wfatal-errors.

Waf: Leaving directory `/Users/andypiper/Documents/GitHub/ardupilot-released/build/KakuteF7Mini'

Bug report

Issue details

Please describe the problem

Version What version was the issue encountered with

Platform [ ] All [ ] AntennaTracker [ ] Copter [ ] Plane [ ] Rover [ ] Submarine

Airframe type What type of airframe (flying wing, glider, hex, Y6, octa etc)

Hardware type What autopilot hardware was used? (Pixhawk, Cube, Pixracer, Navio2, etc)

Logs Please provide a link to any relevant logs that show the issue

rmackay9 commented 5 years ago

Unassigned myself 'cuz there's lots more people here than just me

peterbarker commented 4 years ago

I fixed this a while back....