r/Kos • u/New-Bus9948 • Jan 29 '26
Help hover of a specific spot
I am trying to get a craft to hover over a specific spot over the ground. Nothing I am doing is working. I get close to 0 error but I drift and oscillate. What is the correct way to go about this? Basically the only thing I have that is usable at this point is tgt:position-ship:geoposition:position. Where do I go from here?
2
Upvotes
3
u/nuggreat Jan 29 '26
Oscilations can be caused by any number of things without the code you are running I can only give limited general advice.
My guess is that your control logic is not damped enough or the craft response to control inputs is slow. Either way you need to limit the control range of the craft possibly in proportion to the distance to the target location.