Create new navigation command

Hello everyone
I am working on a project and need to define a new navigation command (MAV_CMD_NAV) similar to going to a specific point. However, I don’t know how to do this as the available documentation on the website is very vague. Can anyone help me with this?