Profile image

AUTO-AIMED TURRET AK-2100

13.6k SenSkysh  1.3 years ago
34,102 downloads
Auto Credit Based on SenSkysh's ak-2100

A little about the formula

Horizontal rotator:

(TargetHeading - Heading + rate(TargetHeading)*(((1000 * sin(asin((TargetDistance * 9.81)/(pow(1000, 2)))/2))/9.81) * 2))/180
1000 here is the projectile speed of the cannon

Vertical rotator:

clamp((TargetElevation + rate(TargetElevation)*(((1000 * sin(asin((TargetDistance * 9.81)/(pow(1000, 2)))/2))/9.81) * 2)) + (asin(((TargetDistance + rate(TargetDistance)*(((1000 * sin(asin((TargetDistance * 9.81)/(pow(1000, 2)))/2))/9.81) * 2))* 9.81)/(pow(1000, 2)))/2),-10,45)/45
1000 here is the projectile speed of the cannon, -10,45 - limiting angles of guidance

Upd.

Time does not stand still and gradually I came to a more sophisticated formula. She is somewhat more accurate

Horizontal:

(TargetHeading - Heading + (rate(TargetHeading)) * (((v * sin(asin((TargetDistance * 9.81)/(pow(v, 2)))/2))/9.81) * 2)
)/angle

where
v - projectile speed
angle - rotator range of motion

Vertical:

clamp(TargetElevation + (rate(TargetElevation)) * (TargetDistance + rate(TargetDistance)*TargetDistance/v)/v + (asin((cos(TargetElevation + (rate(TargetElevation)) * (TargetDistance + rate(TargetDistance)*TargetDistance/v)/v) * (TargetDistance + rate(TargetDistance)*TargetDistance/v) * 9.81)/(pow(v, 2)))/2) -PitchAngle*cos(TargetHeading - Heading + (rate(TargetHeading)) * (TargetDistance + rate(TargetDistance)*TargetDistance/v)/v) - RollAngle*sin(TargetHeading - Heading + (rate(TargetHeading)) * (TargetDistance + rate(TargetDistance)*TargetDistance/v)/v),nA,pA)/angle
where
v - projectile speed
nA - negative vertical guidance
pA - positive vertical guidance
angle - rotator range of motion

Upd2

Just for accuracy

Upd3

Table

Spotlights

General Characteristics

  • Predecessor ak-2100
  • Successors 15 airplane(s) +112 bonus
  • Created On Android
  • Wingspan 16.4ft (5.0m)
  • Length 26.8ft (8.2m)
  • Height 16.1ft (4.9m)
  • Empty Weight 149,236lbs (67,692kg)
  • Loaded Weight 155,289lbs (70,438kg)

Performance

  • Wing Loading 439,839.3lbs/ft2 (2,147,483.6kg/m2)
  • Wing Area 0.0ft2 (0.0m2)
  • Drag Points 8812

Parts

  • Number of Parts 88
  • Control Surfaces 0
  • Performance Cost 253
  • Log in to leave a comment
  • Profile image
    13.6k SenSkysh

    I already wrote that the free-use formula

    Pinned 9 months ago
  • Profile image

    senskysh help

    2 months ago
  • Profile image
    525 Caat2

    @SenSkysh here https://www.simpleplanes.com/a/LFjJFn/Heavy-artillery

    +2 2 months ago
  • Profile image
    13.6k SenSkysh

    @Caat2 show your craft

    2 months ago
  • Profile image
    525 Caat2

    @SenSkysh i dont understand table

    2 months ago
  • Profile image
    13.6k SenSkysh

    @Caat2 use table 🌚

    2 months ago
  • Profile image
    525 Caat2

    @SenSkysh already done that but it had trouble hitting things other than the uss beast

    2 months ago
  • Profile image
    13.6k SenSkysh

    @Caat2 change 1000 or v to 1500

    2 months ago
  • Profile image
    525 Caat2

    How can i make this work with a gun that shoots its bullet at 1500m/s

    +1 2 months ago
  • Profile image
    13.6k SenSkysh

    @Amirabadi positive is how high you can raise the weapon, negative is how low you can lower it

    2 months ago
  • Profile image
    1,285 Amirabadi

    what does negative and positive vertical guidance means?

    2 months ago
  • Profile image
    13.6k SenSkysh

    @SkylineAero the angle is not limited by the rotator settings, but programmatically. use the clamp

    2 months ago
  • Profile image
    2,076 SkylineAero

    when I change the rotator angle to limit the turrets angle, the aim looked messed and doesn't aim at the target correctly, can you teach me how to limit the turret angle? @SenSkysh

    2 months ago
  • Profile image
    3,675 KfcGaming

    Thx for codes

    3 months ago
  • Profile image

    Witch value is the projectile velocity of cannon and also this doesn't take the velocity of the gun it's self.

    3 months ago
  • Profile image
    13.6k SenSkysh

    @TheGreatLordDerptah enter all parameters and copy the finished formulas. If the table is not broken, then it will work

    3 months ago
  • Profile image

    How do I use the code from the table?

    3 months ago
  • Profile image
    13.6k SenSkysh

    @PilotFuz I think I explained everything I could on the forum https://www.simpleplanes.com/Forums/View/1336489/FT-turret-stabilized-code

    4 months ago
  • Profile image

    Hey, can you tell me how this code works? I really wanna know so I can do a bunch of super cool stuff with this but I'm also scared shitless by copy-pasta.

    4 months ago
  • Profile image
    13.6k SenSkysh

    @Shootingstar07 XYZ from Transform part > Position part menu

    +1 4 months ago
  • Profile image

    Is the XYZ cockpit and the turret (in the table)means the distance between the cockpit and the turret rotator?Does it use the xml mod nudge unit of use meter?

    4 months ago
  • Profile image

    PLSSS HELP

    6 months ago
  • Profile image

    @SenSkysh Here it is http://www.simpleplanes.com/a/1EYnsX/BAe-Harrier-II-GR-7-NEED-HELP-MAKING-MINI-GUN-AUTO-AIM-WELL-AND-ACCURATE

    6 months ago
  • Profile image

    Pls i need help im modifying a Harrier with an auto cannon but when put your formula on the rotators it wont lock pls help i really need this.

    +1 6 months ago
  • Profile image
    13.6k SenSkysh

    @PilotFuz Hmm. Tables?

    7 months ago
  • Log in to see more comments