Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
Waypoint controller
   
Award
Favorite
Favorited
Unfavorite
Tags: v0.7.18
File Size
Posted
Updated
77.170 KB
6 Jul, 2019 @ 5:27am
11 Jul, 2019 @ 9:03am
13 Change Notes ( view )

Subscribe to download
Waypoint controller

Description
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 Comments
Jacco  [author] 2 Nov, 2022 @ 1:07pm 
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 1 Nov, 2022 @ 3:50pm 
add a display of the distance to the end of the route
StraikeS Games TV 1 Nov, 2022 @ 3:48pm 
I use your map in my designs. I really like it
OMFGitsST6 15 Dec, 2020 @ 9:43am 
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  [author] 18 Nov, 2020 @ 2:39pm 
Oh sounds cool dude! Lmk when you're finished
esj94 17 Nov, 2020 @ 1:46pm 
@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  [author] 17 Nov, 2020 @ 8:21am 
Wish I could tell you, last time I looked at this was over a year ago :p
esj94 17 Nov, 2020 @ 4:57am 
What is oP1, oP2, and oP3 in your waypoint marker Lua code?
shark_has_crash 21 May, 2020 @ 12:52pm 
thx
Jacco  [author] 21 May, 2020 @ 2:07am 
Sure dude use whatever