What the heck is a "bank angle sensor"?

You're right. Is the oh sh!t switch. When the lean angle is to far it will shut the motor off.