Step 5: The Arduino sketch
To send an IR packet, you call this function :
SendCommand(throttle, yaw, pitch, trim);
- throttle 0-255
- yaw 0-255
- pitch : 1=backwards, 2=forward, 0=none
- trim 0-255
So don't forget to read the description at the beginning of the code, an that's pretty much it !
Oh, I almost forgot ! You can get the code here ^^
Now, let's head to step 6 : the hardware setup.