Gyro Drive Pseudocode

Some notes for possible gyro drive program that tries to be simple and
lightweight, just wanted to put this here so I wouldn't forget. Don't
know whether this would work.