Stormworks: Build and Rescue

Stormworks: Build and Rescue

38 个评价
Horizontal Stabilizer
   
奖励
收藏
已收藏
取消收藏
Vehicles: Sea, Land, Mechanical
Microcontrollers: Calculation, Microcontroller
标签: v1.1.3
文件大小
发表于
294.938 KB
2021 年 2 月 25 日 上午 12:17
1 项改动说明 ( 查看 )

订阅以下载
Horizontal Stabilizer

描述
This microcontroller keeps your turret pointed in the same direction and is simple to set up.


First off your turret traverse should be done via a velocity pivot, facing with the positive arrow clockwise, this way it can turn 360 degrees freely and also very rapidly so, the prefered ratio with this stabilizer is 1:2 with 100% power after tuning, as i have found this ratio to provide a decent turn rate combined with precision.

Now for the MC to be able to detect what the turret is doing an angular velocity sensor is needed, place this on the turret (so when the pivot turns the sensor will turn too) with the positive arrow (again) clockwise.

Then simply connect all the connections, so your control input from the gunners seat to the A/D input, the sensor to the sensors input and the pivot to the output of the controller. Incase you want to turn the stabilizer off for moving or if you arent in the turret, then you can turn it off via the On/Off input to the MC.

If you want a slower turret traverse or maybe even quicker, then make sure to change the property slider, it goes from 0.1 to 3 (1 is the standard, but if you want a really slow and precise or super quick you can just change this)


Checklist for the stabilizer to work properly:

-- Angular speed sensor (with positive arrow clockwise)
-- Velocity pivot (With 1:2 ratio on it and positive arrow clockwise)
-- Seat to control turret

Example creation using this stabilizer and also a vertical stabilizer:
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=2407189011

Notes:

Feel free to use this in your creations just remember to link this incase you upload it

This is only a horizontal stabilizer(!)

The tank in the thumbnail, video and pictures is not uploaded(yet)
22 条留言
(No19) LexusLuthor 7 月 3 日 上午 9:58 
can this work for the turret ring block
l0891.超纪飞侠 4 月 23 日 下午 2:14 
is there a way to merge the control speed and the stabilizer PID in/output?
The Thing 3 月 1 日 下午 12:33 
thanks, this works and made my turret not spin like a microwave
Zeke 2 月 17 日 上午 7:24 
without stabiliser the turret doesn't move at all and with the stabiliser it doesn't snap its very floaty and is not precise
Crolin 2024 年 8 月 20 日 下午 2:25 
The rotation arrows are correct, positive clockwise but the gun just keeps spinning left
President Luigi 2023 年 6 月 6 日 下午 5:07 
How did you come up with the math to make this work?
kylonr 2023 年 2 月 11 日 下午 7:14 
am I able to make the stab off when I spawn?
Novum33 2022 年 5 月 24 日 下午 1:43 
Very shakey
Lazakamikaza  [作者] 2021 年 12 月 12 日 下午 11:41 
Very nice. Im surprised people are still finding this stabilizer and using it as it is almost a year old by now

And yea im guessing your turret is just a fraction the weight of my original tanks turret (The one in the video clip)
Benbalooky 2021 年 12 月 12 日 下午 8:54 
Hey Laza, I wanted to describe my troubleshooting here so others can try what I did if they have a similar issue.

I have good news. In my troubleshooting I discovered two issues: The first one is that the platform the velocity pivot benefits from being rigid. If it wiggles around too much the stabilizer overcorrects like I described. Small attachments come in handy in this regard.

The second, and best thing I did was lowering the integral gain on the PID. I took it from 0.1 all the way down to 0.0008. If this seems drastic it is because the turret I'm using is quite small, so it is very sensitive. The other two values, proportional and derivative gain, were left at their default values.

During some extreme maneuvering the oscillations return. Toggling the stabilizer off then on has corrected this issue every time. Thank you!