Ballistic Calculator Sample

If you liked this item, please rate it up on Steam Workshop page.

Authors: Shairo-jp, ARCBIRD2

Last revision: 30 Oct, 2021 at 04:29 UTC (1)

File size: 335.87 KB

On Steam Workshop

Description:

MrJersey made an introductory movie for this item! Thank you!
It includes a brief implementation guide. Check it!
https://www.youtube.com/watch?v=GZGzDMaccpY

Ballistic Calculator Sample

This is a sample vehicle of microcontroller that calculates the elevation angle of a gun added by Weapon DLC.
Enter the Tilt and Distance in the target direction to output the required elevation addition amount.

In many vehicles, the camera will only be independent of the gun at elevation.
In this case, correction is required if the vehicle is rolling.

The "Advanced" sample shows an implementation of it pattern.

You are free to use/reverse engineer and publish derivative works!
(Needless to say, Don’t repost this sample vehicle As Is.)

This vehicle requires Infinite Ammo and Infinity Electric.

FAQ

Q. The elevation angle of the gun is very low.
Note that the microcontroller outputs the difference from the input elevation angle.

It unit is "Stormworks Angle" (one lap as one).
When inputting to RoboticPivot, you need to multiply the output by 4 and add.
(Check the Basic sample)

Q. Why does the microcontroller output the "difference" value?
Calculating with Lua node has a high latency. It takes at least 4 ticks.
When you integrate it with a low latency vertical stabilizer, you want a diff value.

Q. Output becomes zero when aiming at a long distance
The sample is intended for use with the Laser Distance Sensor, so if the Distance input is 4km or more, the calculation will be cut out.
Open Lua and delete the if statement.

Q. Is it possible to calculate a high trajectory? (as Howitzer/Mortar)
This microcontroller does not support it.
I want to make it, but it’s difficult with the current method…
There are no plans near.

Q. Rockets ballistic support?
The trajectory of a rocket is much more complex than a shell.
I have no plans to deal with it as it is difficult to calculate it with my math skills.

Q. Where is the projectile data source?
I investigated it myself.
Later I known about the information published by Dev, which is almost accurate.
https://discord.com/channels/357480372084408322/578586360336875520/898602852790992916

Updates

– 2021/10/30 v1.2.1
Simplified Advanced sample
(There is no change in the calculator)
Reduce gun amount

– 2021/10/18 v1.2
Reduce calculation cost
More accuracy
Code saving

– 2021/10/16 v1.1.1
Fix parameters for v1.3.6

– 2021/10/15 v1.0
first release

Download
Required DLC:

These DLC should be installed in order to use this item.


Stormworks: Search and Destroy
Revisions:

Old revisions of this mod are available below. Click the link to download.