Arduino converts APM2.6 outputs for custom control