he and brun had to learn military obedience for cavalry movements required for battle , so they had to come to grips with figures , in a group , the formations changing at bewildering speed , walks then trots , controlled canters , then short sharp gallops , the horse 's extension and elevation of legs precise .