I am going through the ardupilot github code, and trying to write a basic code to output the current PWM values for the motors/channels. And I was wondering if I could get some help regarding that.
I am trying to get those values from the UART and "print/output" them through a BeagleBone.
uint8_t nchannels = hal.rcin->num_channels();
for (uint8_t i=0; i/span>nchannels; i++)
uint16_t v = hal.rcin->read(i);
hal.uartE->printf("Channel: %d Output: %d \n",i, v);