For a school project I have to control my RC plane from my computer using Java. The way I want to achieve this is by connecting my remote to my MacBookPro via a 3.5mm cable (remote's trainer port).
The way I have to communicate with the remote, is via a PPm signal, which looks like this:
Here's a bit more info about the PPM signal: https://www.insecure.ws/2010/03/09/control-rc-aircrafts-from-your-computer-for-0/#toc-2
What I want to know now, is how I can generate said PPM signal with Java. It has to be a chunky signal with a specific amplitude.
Would anyone here be able to help me with this?
EDIT:
Let me answer some of the questions asked below here:
That site explains it better that I thought I'd be able to, but I'll try anyways.
I want to control my RC plane with my computer. For now, I only want my throttle to work. The rest will follow later.
Each frame is 22.5ms long, as that's the format RC stuff uses. Each frame consists of 8 channels with 0.4ms stops between them, and a blank signal to fill up the time it's got left.
Each channel has an amplitude of 1.3Volts, which I'll achieve by trial and error (play with my volume until the annoying beeping stops), and is 0.7 - 1.5ms.
What I want to achieve, is to have a default signal, with 7x 1.1ms and 1x 0.7ms (7x middle position for all servo's, and 1x throttle minimum), that changes when the users hits a button on the keyboard (1 would change the throttle's signal length to 0.7 + 0.1 ms => 0.8ms). Until the user presses 0, 1, 2, 3 or 4, the signal would keep repeating (1 frame per 22.5ms), with the changed length of channel 1.
I have posted what I have so far on github.