Stormworks: Build and Rescue

Stormworks: Build and Rescue

评价数不足
Logic: GPS alignment
   
奖励
收藏
已收藏
取消收藏
Vehicles: Vehicle, Technical
标签: v0.1.20
文件大小
发表于
67.996 KB
2018 年 4 月 1 日 下午 1:39
1 项改动说明 ( 查看 )

订阅以下载
Logic: GPS alignment

在 Tajin 的 1 个合集中
Logic Examples & Knowhow
54 件物品
描述
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 条留言
Tajin  [作者] 2023 年 10 月 21 日 下午 12:54 
yes, trigonometry
AcePainter 2023 年 10 月 20 日 下午 8:14 
is there anyway to convert the two GPS coordinates into a single output, like a compass sensor outpuit?
Excalibur11 2018 年 5 月 3 日 下午 9:26 
you just need to decrease the proportional in the settings of the PID
kutyax 2018 年 4 月 21 日 上午 4:13 
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  [作者] 2018 年 4 月 20 日 下午 2:49 
go ahead, thats why i posted this example. So others can learn from it.
kutyax 2018 年 4 月 20 日 上午 11:45 
can i use it in my creation?
of course i will write your name there too.
Tajin  [作者] 2018 年 4 月 20 日 上午 11:40 
Depends only on how much the variables can handle. Never tested that in detail.
kutyax 2018 年 4 月 20 日 上午 11:30 
very nice creation.what about the range? dozen meters? hundreds?kilometers?
TT 2018 年 4 月 13 日 上午 11:10 
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  [作者] 2018 年 4 月 3 日 上午 12:29 
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.