PID parameters for self-balancing motorcycle

titantomorrow:
Got the bike balancing, very rewarding. It lasted a total of 10 minutes, but the video just shows 5 minutes. I can reproduce, though I do need to adjust the bias to be pretty close when I put back the battery.

https://youtu.be/RWtfrmY-zEA

Here is it moving in a straight line, starting, stopping and finally falling over.

https://youtu.be/ipkUTBycZwM

titantomorrow, would you mind sharing your work or at least give away some tips? I wish my motorcycle balanced like yours!!!