by Eric Brouwer » Mon Dec 20, 2004 8:13 am
With the USB Joystick, the resolution is set to vary between 0 and 100%, with 50% defined as the centre. This is more than adequate. I have been using this resolution with the Serial PIC interfaces, Joystick interfaces as well as the USB Joystick interfaces.
In fact, when trying to get the resolution too high (say 255), one will notice that the transmitter output pulse varies as well, and with the 1% accuracy of the PIC's 4MHz internal oscillator, the signal will vary between a couple of numbers, say for centre stick, the PIC's data will vary say between 125 and 130.
Also, depending on the method of PIC programming, a delay of typical 6us is needed to sample the PPM signal. This already results in more than 0.5% error on the original pulse length.
One must also remember to cater for special features on different transmitters. Some transmitters can be programmed to give pulses varying between 0.75 and 2.25ms. This will obviously have an effect on the final resolution.
I have been using the FMS Serial PIC, joystick as well as USB joysticks on FMS, RealFlight, RealFlight G2 and several Microsoft games, without any problem on glithcing, or unstable surfaces. In fact, with the Raptor 60 in RealFlight G2, the chopper will stay in a hover on the same spot (wind disabled) when using my USB interface.
Most of the new generation digital joysticks that I tested, make use of the standard USB paramaters, which will detect only 100 points throughout an axis movement. Don't be too critical on the resolution. I doubt it if one will notice the difference between a resolution of 80 or 150 points. Above 150 points, the inaccuracy of the PIC software, PIC power supply, or even the transmitter becomes noticable.
By