goebish / nrf24_multipro

nRF24L01 multi-protocol RC transmitter
GNU General Public License v3.0
472 stars 195 forks source link

Question #53

Closed promet99 closed 2 years ago

promet99 commented 4 years ago

Hi, Thanks for great work! This is so awesome. I am trying to port E010 control to PC, but some functions seems to be empty. I would like to know more about 1) MJXq protocol, and 2) how to write command for all 12 channels.

I have forked nrf24_cx10_pc repo and figured out how to control "throttle, aileron, elevator, rudder".

This is what I have found.

command="%i,%i,%i,%i"% (throttle, aileron, elevator, rudder) arduino.write(command+"\n")

I am currently working only with E010. MJX.ino says, packet[5] = GET_FLAG(MJX_CHANNEL_HEADLESS, 1) ? 0x40 : CHAN2TRIM(packet[2]); // trim elevator packet[6] = GET_FLAG(MJX_CHANNEL_HEADLESS, 1) ? 0x40 : CHAN2TRIM(packet[3]); // trim aileron

Besides these two trim options, there should be rudder trim too. Also, I believe there are 360degree spin and speed controls buttons on the original controller. I would like to know how to make these command on pc(which is connected to arduino and nrF24L01 card.).

Thank you very much for advance, and even giving me directions for dev would be thankful enough.