Flags had been mostly used as rallying factors in the course of battles; troopers would gather round their colorations for morale
https://landenkhus372.evercolumn.com/posts/embodying-history-the-role-of-civil-war-flags-in-reenactments-2
Flags have been every now and then used as rallying factors throughout battles; soldiers could collect around their colors for morale assist whilst confronted with overwhelming odds.