How to make vehicle automatically stop or hold its position at the last waypoint in mission mode

I’m getting a boat to work with PX4. My Airframe is Rover(Generic Ground Vehicle).
In mission mode, when the boat navigates past the final waypoint, it doesn’t come to a halt; instead, it continues circling around that waypoint.
What settings do I need to configure to make it automatically stop or hold its position at the last waypoint?

I had this issue too, I don’t think its rover related but rather something from waypoints triplets. If you want a quick fix, you can do the following which has worked for me:

This is code from my new rover module that I am trying to implement. But this is just a temporary solution.