@Override public void sendRequestMSP_SET_RAW_RC(int[] channels8){
  Character[] rc_signals_array=new Character[16];
  int index=0;
  for (int i=0; i < 8; i++) {
    rc_signals_array[index++]=(char)(channels8[i] & 0xFF);
    rc_signals_array[index++]=(char)((channels8[i] >> 8) & 0xFF);
  }
  String rcData="";
  for (  int i : channels8) {
    rcData+=String.valueOf(i) + " ";
  }
  sendRequestMSP(requestMSP(MSP_SET_RAW_RC,rc_signals_array));
}

@ Override public void sendRequestMSP_SET_RAW_RC ( int [ ] channels8 ) { Character [ ] rc_signals_array = new Character [ 16 ] ; int index = 0 ; for ( int i = 0 ; i < 8 ; i ++ ) { rc_signals_array [ index ++ ] = ( char ) ( channels8 [ i ] & 0xFF ) ; rc_signals_array [ index ++ ] = ( char ) ( ( channels8 [ i ] > > 8 ) & 0xFF ) ; } String rcData = "" ; for ( int i : channels8 ) { rcData += String . valueOf ( i ) + " " ; } sendRequestMSP ( requestMSP ( MSP_SET_RAW_RC , rc_signals_array ) ) ; }
0rcroll 1rcpitch 2rcyaw 3rcthrottle 4rcaux1 5rcaux2 6rcaux3 7rcaux4
