"Though heraldry was not exclusively military, it was important for identifying combatants, for rallying troops, and for maintaining battlefield morale."

In the above sentence What do "rallying troops" and "battlefield morale" mean?