Quaternions do not suffer from gimbal lock, because they do not express rotations relative to three separate axes.
四元数就不会遭受万向节锁的痛苦,因为它不用三个分离的轴表示旋转。
2
Anyway you shouldn't have any problems since you have only two axes going on for you so as long as you choose suitable rotation order there should no problem with gimbal lock whatsoever.