Balancing robot for dummies

HI guys look @ this I am working with another type of PID, I use a variable time PID.
I save the time of every loop and I use it to give a "weight" to every single acquisition.
It works very well:

I think this solution works better then fixed time pid