Stormworks: Build and Rescue

Stormworks: Build and Rescue

27 个评价
Advanced Map with Waypoints
2
   
奖励
收藏
已收藏
取消收藏
Vehicles: Sea
Microcontrollers: Navigation, Microcontroller
标签: v1.7.1
文件大小
发表于
更新日期
205.131 KB
2022 年 7 月 13 日 下午 12:38
2023 年 3 月 25 日 下午 3:01
2 项改动说明 ( 查看 )

订阅以下载
Advanced Map with Waypoints

描述
==== Features ====
- smooth panning and zooming
- dark mode
- adding/removing waypoints via touch
- support for large keypad
- route planning
- outputs next waypoint for auto pilot
- number of waypoints is not limited by composite size
- works on 2x2 monitor, but larger is recommended.



==== Usage ====
Click the map to pan around. Click on a waypoint of the route to select it.

Buttons on the left:
[DRK] - toggle dark mode
[FLW] - follow ship
[+] [-] - zoom in/out

On the right:
[<] [>] - select and pan to the previous/next waypoint in the route
[ADD] - add new waypoint at the end of the route, or after the selected waypoint
[DEL] - delete last/focussed waypoint
[AP] - toggle autopilot output (needs to be toggled ON for coordinate output to work)

Coordinates on the bottom left are the X and Y of the center of the screen.
Number on the bottom right is the distance of the planned route.


==== Installation ====
Required input: GPS x/y, compass, touch
Optional input: boolean to remove the first waypoint in the list (should be triggered by autopilot when waypoint is reached)
Output: video and next waypoint


Check out this workshop item, which shows how to connect the inputs and outputs:
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2834797497


==== Final words ====
Feel free to leave feedback, it will motivate me to keep updating this and other projects.
Contact me if you want a copy of the non-minified source code. I will be happy to share it if people are actually interested in it.


21 条留言
(cool)turysta 5 月 11 日 下午 3:00 
Hello can i have contact to you? I was wondering if you could add some modifications to map. We are creating plane to perform RNP approaches and i was trying to add list of static Ariports data base
holger251007 4 月 9 日 上午 9:41 
how can i make the waypoint always output?
Random 2024 年 10 月 13 日 上午 9:48 
Auto pilot does not work, It needs a GPS
jiri.kribek 2024 年 1 月 15 日 上午 9:12 
can you make one were it reads the x and y from the mc
Hendrik  [作者] 2023 年 8 月 8 日 上午 11:43 
Hi Michael, the code is minified by "LifeBoatAPI - Stormworks Lua" a plugin for VSCode. If you look at the pastebin I posted below, you will find the original clean code.
It would not be possible to have such a large script with clean code in the game without minifying it.
Michael6000000 2023 年 8 月 7 日 下午 4:52 
Definitely not modify friendly.

I wanted to combined button control and touch screen.
I also wanted to Implement autopilot in to the micro controller.
The script is very unorganized and hard to wrap your head around.
The script has a bunch of letters and numbers with no order in particular.

Over all would not recommend for in any custom builds unless you have no plans on changing anything in the script.
Hendrik  [作者] 2023 年 5 月 14 日 上午 11:46 
You can find the source code for the current version here: https://pastebin.com/N28bfnH0
JosieGraceTV 2023 年 5 月 12 日 上午 3:57 
Awesome work ! Was wondering if i could get the non-minified code to make some minor adjustments ? (i want to add ETA and such)
XxDefinitive_misogynistxX 2023 年 4 月 4 日 下午 10:22 
Good stuff. You're a talented person, keep it up.
Turbo Shark 2023 年 3 月 25 日 下午 3:57 
Awesome! thnaks so much for following up!