mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-02 14:08:45 -04:00
AP_OpticalFlow: Use SITL singleton
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
parent
0c06bf89e5
commit
653784479e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user