Code skeleton for MOGA controllers