How does a TBH controller work?

I have a bang-bang controller for my flywheel and I want to experiment with the tbh controller. I very new to programming so is there a simplified explanation of how a tbh controller works. My club uses easyc.

Take a look at the thread by @jpearman where he explains it

[https://vexforum.com/t/flywheel-velocity-control/29892/1)