Stormworks: Build and Rescue

Stormworks: Build and Rescue

评价数不足
Waypoint controller
   
奖励
收藏
已收藏
取消收藏
标签: v0.7.18
文件大小
发表于
更新日期
77.170 KB
2019 年 7 月 6 日 上午 5:27
2019 年 7 月 11 日 上午 9:03
13 项改动说明 ( 查看 )

订阅以下载
Waypoint controller

描述
Description
A fairly simple waypoint controller. Connect to a screen, GPS and compass and it will display a map with the vehicle's position and direction. Outputs the current waypoint's X and Y coordinates and the amount of waypoints left, which could be used as an input for an autopilot system.
I made this with a 9x5 monitor in mind, but it also works with 5x3 and even 2x2 monitors (though 2x2 isn't that pretty). 1x1 just does not work. I'll make sure it keeps working for 2x2 though (:

Controls
Red button - Delete all waypoints
Orange button - Delete next waypoint
Blue button - Recentre the map on the ship
Plus button - Zoom in
Minus button - Zoom out

Features
  • Map can be zoomed in/out
  • Can store virtually infinite waypoints.
  • Add waypoints by clicking on the map
  • Remove waypoints by clicking on/near them
  • The next waypoint automatically gets removed if you come within a player-set distance (standard 50m)
  • Move the map around with dedicated buttons

I/O
  • Touchscreen (Composite, input)
  • Video (Video, output)
  • GPS X & GPS Y (Number, input)
  • Compass reading (Number, input)
  • TargetX & TargetY (Number, output) : X and Y coordinates of next waypoint
  • Waypoints (Number, output) : Number of waypoints
  • Variable WP Delete Distance (Number, input) : Distance at which the system automatically deletes the next waypoint, if properties are set properly
  • Keypad X&Y (Number, input) : X and Y coordinates from a keypad
  • Keypad Pulse (On/Off, input) : pulse output from a keypad

Properties
  • Use variable WP Delete Distance : If on, uses the input node rather than a static value
  • Static WP Delete Distance : Distance at which the system automatically deletes the next waypoint, if properties are set properly
  • Show tooltips : Show tooltips (Target X, Target Y, # of waypoints)

Planned Features
  • Correct the zoom indicator, it's a bit funny now
  • Add ability to hook up Radio RX components to show other ships using this controller on the map
Of course I'm open to suggestions, and please let me know what you think of my Waypoint Controller! I'd love to see some vehicles using it.
68 条留言
Jacco  [作者] 2022 年 11 月 2 日 下午 1:07 
Cool! I don't think I'll work on this any more, cause I haven't looked at it in years now, sorry!
StraikeS Games TV 2022 年 11 月 1 日 下午 3:50 
add a display of the distance to the end of the route
StraikeS Games TV 2022 年 11 月 1 日 下午 3:48 
I use your map in my designs. I really like it
OMFGitsST6 2020 年 12 月 15 日 上午 9:43 
Howdy, I really like this design, but I'm having some issues.

On a 2x2, it doesn't seem to read my touch coordinates correctly. The red/orange/blue "traffic light" buttons work, but the other controls do not and waypoints are placed at the wrong locations.

On a 5x3, the opposite is true. Waypoints are correct and map controls work, but the traffic light buttons don't do anything.
Jacco  [作者] 2020 年 11 月 18 日 下午 2:39 
Oh sounds cool dude! Lmk when you're finished
esj94 2020 年 11 月 17 日 下午 1:46 
@JACCO no problem, I guess I solved it. Just to let you know, I took part of your code to make a huge MC with GPS, AP, anti colision system, Radar and Compass all in one. I'll credit you in the WS page, when it is finished. btw. nice Controller
Jacco  [作者] 2020 年 11 月 17 日 上午 8:21 
Wish I could tell you, last time I looked at this was over a year ago :p
esj94 2020 年 11 月 17 日 上午 4:57 
What is oP1, oP2, and oP3 in your waypoint marker Lua code?
shark_has_crash 2020 年 5 月 21 日 下午 12:52 
thx
Jacco  [作者] 2020 年 5 月 21 日 上午 2:07 
Sure dude use whatever