Hierarchical dynamic control for robust attitude tracking