Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
Realistic Cruise Control
   
Award
Favorite
Favorited
Unfavorite
Vehicles: Creative, Land, Mechanical
Tags: v0.10.38
File Size
Posted
60.473 KB
Sep 1, 2020 @ 11:21am
1 Change Note ( view )

Subscribe to download
Realistic Cruise Control

In 2 collections by katstel
kat's microprocessors
24 items
katstel
52 items
Description
Info
This is a Cruise Control system designed to function like a real life system and it's easy to connect and compatible with most stormworks land vehicles.

How to Use

Logic Connections:
-> Connect the SPEED input to a speedometer so the system receives the vehicle's current speed.

-> Connect the SET input to a push input. This will activate the cruise control at the speed the vehicle is currently travelling.

-> Connect the RESET input to a push input. This will deactivate the system when pressed.

-> Connect the THROTTLE input to the vehicle's normal engine throttle output. The system takes over control of the throttle to adjust speed.

-> Connect the THROTTLE output to the throttle of the engine.

-> The SET SPEED output (optional) will display the current speed the Cruise control is set at.

NOTICE: This cruise control system will only account for the speed of the vehicle, and will adjust throttle based on that factor. The system may inadvertently over rev or damage engine components, or it may not perform correctly if the throttle system of the drivetrain is not well put together

Fair Use
Please give a link and credit when installing this in your workshop reuploads, Thanks



15 Comments
Fireblox6578 Jun 29, 2024 @ 6:25am 
Does this work in only m/s or mph and more
katstel  [author] Dec 12, 2022 @ 9:30pm 
Hi sorry for the late response. This used to work but it's been over 2 years since I made it and the game has changed a lot, so it seems to be broken. it's definitely a PID controller issue that could be fixed by retweaking it but I haven't the played this game in a long time and don't feel like figuring it out sorry. When I made this it was calibrated using a vehicle with a fairly extensive engine control module that smoothed out the throttle inputs and made a bunch of calculations for the optimal speed. Without this system, it seems like the cruise control becomes glitchy. I should have taken this into account before releasing it to the workshop, someday I will revisit this and fix the issues but I haven't played stormworks in a long time.
Gheorghe Garaj Auto ITP Dec 9, 2022 @ 4:33am 
Update: throttle jumps between 0 and 1 constantly
Gheorghe Garaj Auto ITP Dec 9, 2022 @ 4:30am 
Hey!
I'm having issues with it as well. I've read through your recommendations below, but what happens is the engine keeps stuttering between 9 and 11 RPS and the car won't go over 30, or below 30 for that matter regardless of what I set it to. Ideas?
katstel  [author] Mar 7, 2021 @ 9:54am 
alright that sounds like an error i will have to look into that, thanks for letting me know
HotshotJimmy Mar 7, 2021 @ 5:13am 
Ok so what isn't said is you have to press the SET input twice, once seems to switch it on and then the second press sets the cruise speed as seen on the dial. That is what is missing from the instructions. One press gets the SET SPEED dial moving in relation to the speedometer, another click sets it at the desired speed. Then it keeps that speed up.
HotshotJimmy Mar 5, 2021 @ 12:44pm 
Will do, when I've ran through that I'll let you know =)
katstel  [author] Mar 4, 2021 @ 5:19pm 
Alright to make sure that everything is set up correctly
-> make sure your throttle input, output and speed sensor all configured correctly.
-> make sure your throttle control system is set up for a 0 to 1 control input only
-> make sure your "set" and "reset" buttons are both set to PUSH mode on the driver's seat.
-> make sure you give the system 5-10 seconds to engage properly

Once you have ensured all of those things and it's still not working move onto the troubleshooting steps below
-> Connect a dial to the "set speed" output and verify that when you engage the cruise control, it's actually setting the speed to the dial.
-> Connect a dial to the "throttle" output and verify that the microcontroller is correctly outputting throttle signals.

If either of these tests output no response or weird response, please inform me of this as it may be a potential defect in the microcontroller of which I will investigate further.
Cheers, hope this will shed some light on the problem.
HotshotJimmy Mar 3, 2021 @ 4:34am 
It won't engage. I have the set and reset connected to the driver's seat and I have selected "push" as you describe above, I press, take my finger off of W and the car slows.The only one I have not connected is the "SET SPEED" which you say is optional hence I'm not using it.
katstel  [author] Mar 2, 2021 @ 9:53pm 
what's not working about it?
have you double checked that it's connected correctly?