Assorted Control Algorithms Using Hybrid System Tools