Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
Yaw Damper
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
44.284 KB
1 Mar, 2019 @ 1:06pm
4 Mar, 2019 @ 7:50pm
5 Change Notes ( view )

Subscribe to download
Yaw Damper

In 1 collection by jbaker96
Autopilot Mode Control Panel
16 items
Description
A micro-controller, designed to be used either as a standalone device or with my autopilot system, that will attempt to keep an aircraft in coordinated flight by controlling the rudder. It utilizes a linear speed sensor to determine the direction an aircraft is yawing, and will attempt to counteract the yawing motion using a PID controller. The yaw damper will not override control chair inputs.

Setup:
- To place the yaw damper in your aircraft, use the Selection Grid tool in the Stormworks vehicle editor to load this device into your vehicle. You can use the arrows to drag the device around and place it anywhere on your vehicle.
- The yaw damper includes a linear speed sensor that must be placed correctly in order for the device to work properly.
- This speed sensor must not be rotated or the device will not work. It should also be placed somewhere in front of your aircraft's center of gravity. Keep in mind that your center of gravity may change when your fuel tanks are full, so make sure to place the speed sensor far enough forward.
- The yaw damper comes with a toggle button and a dial already connected to the micro-controller. Both can be moved and rotated anywhere on your vehicle. The toggle button can also be replaced by a constant on signal.
- The included keypad labeled "In Flight Tuner" can safely be removed after the PID is properly tuned for your aircraft.

Nodes:
Input:
  • Rudder Axis - Connect this node directly to the axis you are using to control the rudder, normally one of the control chair axis's.
Output:
  • Rudder - If sending a positive value to the rudder turns your aircraft to the right, connect this node directly to the rudder. If sending a positive value to the rudder turns your aircraft to the left, connect this node to the rudder through a numerical inverter. It is recommended to connect this node to the rudder only, and not any steering mechanisms for your nose or tailwheel because it may try to counteract your steering while on the ground.

Tuning:
This device uses a PID controller to keep the aircraft coordinated, which means it must be tuned for each aircraft it is installed on. Tuning has been made easy by the use of a simple coefficient for each of the PID values.
  1. Use the Select tool in the Stormworks vehicle editor to select the micro-controller.
  2. In the properties window, turn the option "Enable In-Flight Tuning" on.
  3. Spawn your aircraft and enter a value of 1 in the tuner keypad to start.
  4. Once you are flying, turn on the yawdamper and observe the slip/skid indicator dial. The value should stay as close to zero as possible.
  5. If the aircraft responds too slowly and the slip/skid indicator doesn't return to 0 while maneuvering, gradually increase the tuning value until the slip/skid indicator starts oscillating in level flight.
  6. If the aircraft responds violently, or the slip/skid indicator oscillates back and forth, lower the tuning value gradually until the slip/skid indicator settles on 0 in level flight.
  7. Repeat the previous two steps until you are satisfied with the responsiveness of the yaw damper.
  8. Write down the value you have entered in the tuner keypad so you don't forget it.
  9. Return to the workshop and select the micro-controller again, turn off "Enable In-Flight Tuning," and enter the value you wrote down into the "Tuner Coefficient" property box.
  10. Make sure to save your vehicle, and enjoy your newly coordinated aircraft.
12 Comments
Ω Compu 7 Feb, 2023 @ 5:31pm 
yeah i ended up replacing the heading hold microcontroller someone made with a PID
jbaker96  [author] 7 Feb, 2023 @ 5:18pm 
Not sure how that would work actually, since the controller is designed to minimize lateral velocity of the vehicle rather than smooth out control inputs. Sounds more like the PID you're using just needs to be tuned a little better for your vessel and it shouldn't move the rudder so much.
Ω Compu 2 Feb, 2023 @ 4:32pm 
would this work to dampen the inputs of a heading hold microcontroller on a ship? the heading hold currently wiggles the rudders back and forth
jbaker96  [author] 11 Mar, 2020 @ 10:50pm 
Sounds like they aren't really fighting, they're both reacting correctly to the data they're being given, and since the slip data for the yaw damper is flawed it results in a flawed output. You could probably replace the linear speed sensor with a wind sensor oriented right side up pointing forward, and taking sine of the angle from the wind sensor and then multiplying that by the wind speed and then just plugging that result where the speed sensor is now.
Tesla 11 Mar, 2020 @ 4:01am 
In 0 wind theres no problem. But when there is wind, the fight for control starts. Its not a big problem really, but in case of priority, heading controller takes precedence and thus yaw dampner is turned off in windy conditions
jbaker96  [author] 10 Mar, 2020 @ 9:40pm 
The yaw damper should never be acting with or against the heading controller in 0 wind conditions, because they work on 2 completely independent axis'. What exactly are the conditions that cause problems, and what exactly is it doing when there is a problem?
Tesla 10 Mar, 2020 @ 6:13pm 
So far, your heading controller works as intended. I havent had any problems with it so far. Your yaw dampner has been in a few fights with the heading controller, however this problem is mitigated by simply... turning the yaw dampner off
jbaker96  [author] 10 Mar, 2020 @ 1:26pm 
Most of the issues from wind come from the fact that my old systems don't use wind sensors, so they measure your speed across the ground rather than your speed through the air. Unfortunately, due to how stormworks physics works, even using wind sensors in my new system didn't fully solve that problem, although it is a little better. The yaw issue was solved with the wind sensors, but the heading controller still struggles since the wind keeps turning the aircraft.
Tesla 10 Mar, 2020 @ 12:51pm 
Yeah i noticed this yaw dampner dont really agree with any type of wind. I find your heading controller and yaw dampner fight over the direction of the aircraft quite a bit, but then again, this is all old creations.
Polarbark 31 Dec, 2019 @ 1:54pm 
I wasn't able to get it to work but it seems cool!