can virtual library be used with PID controller

MartinL:
Hi adelphysi,

The Arduino Uno is more than capable of implementing a flight controller, even using float PIDs.

You just need to use the hardware I2C bus to the gyro on analog pins A4 and A5, preferably running at 400kHz.

You also need to use analogWrite() on digtial pins 3, 9, 10 and 11, as these run the PWM at a frequency of 490Hz, that's required to drive the ESCs. The 50Hz generated by the servo library too slow and in any case is software based so is prone to jitter.

Joop Brokking's videos on Youtube are a good starting point for any flight controller design.

Hi MartinL

i am already running at 400 kHz it is standardized int the i2c wire library

i have already tried the pins you mentioned ( it is known that they are PMW out put on uno)

however it is not necessary to use them , i have tried that( as Joop Brooking says ^_^)

servo library is not slow but when i use virtual wire it becomes so slow (data show in excel sheet)

the code is based on Joop Brooking work , he is the godfather of drone deep understanding