I thought the same and had an initial go without using the quaternions, but cmd_states.get_states() expects state0 to include the quaternion and then determines pitch values from the maneuver quaternions.  It seemed simplest to then just feed get_states() the initial quaternions here that it wanted, though we could obviously go at this a different way.