ardupilot
ardupilot copied to clipboard
Plane: Logged rangefinder state
I've recently tried to debug some landing logs and I've always stumbled guessing the rangefinder state information.
This PR adds logging of the whole structure.
@peterbarker I believe I need to add a case for #if AP_RANGEFINDER_ENABLED in https://github.com/georacer/ardupilot/blob/pr/log_rangefinder_state/Tools/autotest/vehicle_test_suite.py#L2746-L2746, for the failing autotest to pass, correct?
@tridge the boolean fields are now separate, not a bitfield. Is this what you were looking for, or you meant for them to be one consolidated flag field?
@IamPete1 ok to approve?