Ради вашего удобства наш сайт использует cookies! Узнать больше! Мы используем cookies

Ballistics calculator demonstrator

A simple little craft for showing how to use my ballistics calculator. Connections: "Body physics" connects to any physics sensor on the vehicle aligned with the direction of the turret "Turret physics" connects to a physics sensor on the turret's gun "Tracker physics" connects to the physics sensor on the radar(or laser sensor) "Radar" connects to the actual radar/laser sensor. "Azimuth" and "Elevation" outputs should be connected to the appropriate PIDs controlling the turret(velocity pivots recommended) The calculator itself is very accurate(assuming your gun has enough barrel extensions and doesn't oscillate wildly), and only uses a little bit of processing power, however this actual vehicle isn't that accurate(no barrels) The ballistics calculator has multiple parameters: 1. Sample time - how long the radar/laser saves target positions to predict future position 2. Minimum samples - how many target position "samples" until the gun can aim, should be above 1 3. Leading time - how long into the future the calculator looks, added on top of the time the bullet takes to travel to the target. Used to compensate for delays in the systems, might have to fiddle with it to get good results(usual range is between 0 and 0.2) 4. Projectile velocity - how fast your gun's projectiles go 5. Projectile drag - how much the projectie's speed is reduced each frame Parameters for all the weapons are: Light autocannon - 1000m/s, 0.02 drag Rotary autocannon - 1000m/s, 0.01 drag Heavy autocannon - 900m/s, 0.005 drag Battle cannon - 800m/s, 0.002 drag Artillery cannon - 700m/s, 0.001 drag Bertha cannon - 600m/s, 0.0005 drag