Can I change the path automatically for high altitude?

#1

Hello,
I’d like to change my path automatically to avoid hitting with high-height buildings. Or change the green line on the path to red line for warning the high altitude on the path. Is it possible to use the QGroundControl app already built-in functions, or Do I have to change the code?

Thank you for your time to read and give feedback to my question.