ardupilot
ardupilot copied to clipboard
AP_NavEKF2/3: do not check the second range finder if RANGEFINDER_MAX_INSTANCES is 1
EKF always checks two rangefinders even if RANGEFINDER_MAX_INSTANCES is 1. I added the RANGEFINDER_MAX_INSTANCES check.
@peterbarker Thank you for your review. Would you confirm that this change is what you intended.
@peterbarker Thank you for your review. Would you confirm that this change is what you intended.
Yep, exactly, thanks :-)
@priseborough,
This is a mostly mechanical replace but could you confirm you're OK with this? PeterBarker and I have both reviewed it.