mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-24 01:28:29 -04:00
Copter: remove enabled check from optflow init
This commit is contained in:
parent
215bd4208f
commit
ba6ca9511d
@ -113,11 +113,6 @@ void Copter::init_compass()
|
|||||||
void Copter::init_optflow()
|
void Copter::init_optflow()
|
||||||
{
|
{
|
||||||
#if OPTFLOW == ENABLED
|
#if OPTFLOW == ENABLED
|
||||||
// exit immediately if not enabled
|
|
||||||
if (!optflow.enabled()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// initialise optical flow sensor
|
// initialise optical flow sensor
|
||||||
optflow.init();
|
optflow.init();
|
||||||
#endif // OPTFLOW == ENABLED
|
#endif // OPTFLOW == ENABLED
|
||||||
|
Loading…
Reference in New Issue
Block a user