AP_HAL_PX4: code cleanup