AS I understood it on an airliner for example the Mode S starts up in Gnd mode although it may indicate it is being interogated (flashing light) it does not respond. However once airborne it starts to transmit. This switch to ALT can be triggered by ground squat switches, ground speed or Alt input