Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
Logic: GPS alignment
   
Award
Favorite
Favorited
Unfavorite
Vehicles: Vehicle, Technical
Tags: v0.1.20
File Size
Posted
67.996 KB
1 Apr, 2018 @ 1:39pm
1 Change Note ( view )

Subscribe to download
Logic: GPS alignment

In 1 collection by Tajin
Logic Examples & Knowhow
54 items
Description
Just a little example on what is probably the easiest and most compact way to align a vehicle or rotor or anything really towards a GPS coordinate.

In this example the target is a little GPS beacon that you can pick up and move around. The turret will follow you if you do that.



This method of alignment works by having 2 GPS sensors and a PID that controls the rotor so that both GPS are the exact same distance to the target.

Here's an example of how this can be used for an autopilot on my rifter speedboat:
http://steamproxy.net/sharedfiles/filedetails/?id=1330774689
13 Comments
Tajin  [author] 21 Oct, 2023 @ 12:54pm 
yes, trigonometry
AcePainter 20 Oct, 2023 @ 8:14pm 
is there anyway to convert the two GPS coordinates into a single output, like a compass sensor outpuit?
Excalibur11 3 May, 2018 @ 9:26pm 
you just need to decrease the proportional in the settings of the PID
kutyax 21 Apr, 2018 @ 4:13am 
thank you very much!
my idea was to use it as a control station for an rc plane, by putting a pilot seat to the rotating pivot, gps to the rc plane, so this way it would following the plane in azimuth.
actually the range is too small to realize the idea, do you think it can raised about 10-20 times more?
Tajin  [author] 20 Apr, 2018 @ 2:49pm 
go ahead, thats why i posted this example. So others can learn from it.
kutyax 20 Apr, 2018 @ 11:45am 
can i use it in my creation?
of course i will write your name there too.
Tajin  [author] 20 Apr, 2018 @ 11:40am 
Depends only on how much the variables can handle. Never tested that in detail.
kutyax 20 Apr, 2018 @ 11:30am 
very nice creation.what about the range? dozen meters? hundreds?kilometers?
TT 13 Apr, 2018 @ 11:10am 
It's a neat way of doing the job. As said sure it does get unstable at distance, but with only a clamp added it's pretty good.
Tajin  [author] 3 Apr, 2018 @ 12:29am 
Yeh this example was never tuned for longer distances but that is absolutely doable and works fine on the rifter.

If REAAALLLY long distances are still a problem you could also try substract the 2 distances to get the difference, clamp it and use a setpoint of 0.


Those are the finer details, the main point to this is, that this technique works and is generally a lot more compact than any other attempt I've seen.