Naval cannon fire
When a cannon was fired, it partially disarmed the ship until reloaded, so needlessly firing a cannon showed respect and trust. As a matter of courtesy a warship would fire her guns harmlessly out to sea, to show that she had no hostile intent. At first, ships were required to fire seven guns; meanwhile forts, with their more numerous guns and a larger supply of gunpowder, were required meanwhile to fire 21 times. Later, as the quality of gunpowder improved, the British increased the number of shots required from ships to match the forts.
The system of odd-numbered rounds originated from Samuel Pepys, Secretary to the Navy in the Restoration, as a way of economising on the use of powder, the rule until that time having been that all guns had to be fired. Odd numbers were chosen, as even numbers indicated a death.[6]
As naval customs evolved, the 21-gun salute came to be reserved for heads of state, with fewer rounds used to salute lower-ranking officials. Today, In the US Armed Forces, heads of government and cabinet ministers (e.g., the Vice President, U.S. cabinet members, and service secretaries[7]), and military officers with five-star rank receive 19 rounds; four-stars receive 17 rounds; three-stars receive 15; two-stars receive 13; and a one-star general or admiral receives 11. These same standards are currently adhered to by ground-based saluting batteries.
Multiples of 21-gun salutes may be fired for particularly important celebrations. In monarchies this is often done at births of members of the royal family of the country and other official celebrations associated with the royal family.
Aerial salute
A ceremonial or celebratory form of aerial salute is the flypast (known as a "flyover" in the United States), which often follows major parades such as the annual Trooping the Colour in the United Kingdom and the French Bastille Day military parade (défilé du 14 juillet). It is seen in other countries as well, notably Singapore and Canada. In Singapore, the Republic of Singapore Air Force usually conducts aerial salutes during the annual National Day Parade and major state events, such as during the funeral of Lee Kuan Yew.
Gun salute by aircraft, primarily displayed during funerals, began with simple flypasts during World War I and have evolved into the missing man formation, where either a formation of aircraft is conspicuously missing an element or a single aircraft abruptly leaves a formation.
A casual salute by an aircraft, somewhat akin to waving to a friend, is the custom of "waggling" the wings by partially rolling the aircraft first to one side, and then the other.