add global pos valid flag
add logging for gpos terrain alt