Code for a variometer - useful for hangglider pilots