AP_OpticalFlow: Use SITL singleton

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2018-06-15 16:25:23 -03:00 committed by Francisco Ferreira
parent 0c06bf89e5
commit 653784479e

View File

@ -25,10 +25,10 @@
extern const AP_HAL::HAL& hal;
AP_OpticalFlow_SITL::AP_OpticalFlow_SITL(OpticalFlow &_frontend) :
OpticalFlow_backend(_frontend)
AP_OpticalFlow_SITL::AP_OpticalFlow_SITL(OpticalFlow &_frontend) :
OpticalFlow_backend(_frontend),
_sitl(AP::sitl())
{
_sitl = (SITL::SITL *)AP_Param::find_object("SIM_");
}
void AP_OpticalFlow_SITL::init(void)