mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Sub: remove enabled check from optflow init
This commit is contained in:
parent
8cd5607231
commit
2ab3c5a9c3
@ -104,11 +104,6 @@ void Sub::init_compass()
|
|||||||
#if OPTFLOW == ENABLED
|
#if OPTFLOW == ENABLED
|
||||||
void Sub::init_optflow()
|
void Sub::init_optflow()
|
||||||
{
|
{
|
||||||
// exit immediately if not enabled
|
|
||||||
if (!optflow.enabled()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// initialise optical flow sensor
|
// initialise optical flow sensor
|
||||||
optflow.init();
|
optflow.init();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user