mirror of https://github.com/ArduPilot/ardupilot
388a6683ad
This fixes the initialization for Linux boards using the PX4Flow module. The problem is that after the conversion to use I2CDevice we now need to use I2CDeviceManager, which is statically constructed after the vehicle object. So, if we try to call hal.i2c_mgr->get_device(), it will call the get_device() method before the constructor is called and receive a SIGSEGV: Program received signal SIGSEGV, Segmentation fault. 0x000b06c0 in OpticalFlow::OpticalFlow (this=0x140914 <copter+4980>, ahrs=...) at ../../libraries/AP_OpticalFlow/OpticalFlow.cpp:54 54 ../../libraries/AP_OpticalFlow/OpticalFlow.cpp: No such file or directory. |
||
---|---|---|
.. | ||
examples/AP_OpticalFlow_test | ||
AP_OpticalFlow.h | ||
AP_OpticalFlow_HIL.cpp | ||
AP_OpticalFlow_HIL.h | ||
AP_OpticalFlow_Linux.cpp | ||
AP_OpticalFlow_Linux.h | ||
AP_OpticalFlow_Onboard.cpp | ||
AP_OpticalFlow_Onboard.h | ||
AP_OpticalFlow_PX4.cpp | ||
AP_OpticalFlow_PX4.h | ||
OpticalFlow.cpp | ||
OpticalFlow.h | ||
OpticalFlow_backend.cpp | ||
OpticalFlow_backend.h | ||
keywords.txt |