Realize on-line analysis of terrain slope