Testing attitude controller in simulation