UAV altitude measurement