sh4rkman / SquadCalc

A Minimalist Squad Mortar Calculator
https://squadcalc.app
MIT License
26 stars 2 forks source link

The results from the mortar calculator are inaccurate. #155

Closed SuisQi closed 3 weeks ago

SuisQi commented 3 weeks ago

After the 8.0 update, I tested the mortar and found that the calculated mils deviated by more than 100 meters from the actual location. Did this update also change the parameters for mortars? I used the XYZ calculator and got the same result.

sh4rkman commented 3 weeks ago

Hi there,

  1. Are we talking about default mortars or other weapon (ub, grad, 120mm?)

  2. On which specific map did you encounter this

  3. Can you provide an actual situation that you observed it (weapon +target position), i'll test it

SuisQi commented 3 weeks ago

image In reality, the mortar shell landed at the location indicated by my red arrow.

sh4rkman commented 3 weeks ago

Will test it tonight.

SuisQi commented 3 weeks ago

I apologize for the potential error in adjusting the mils, which caused such a significant deviation. However, when comparing this calculator to the XYZ calculator using the same scenario, the XYZ calculator gives a mil value of 1060, while this one gives 1055. The correct value is 1060. I checked the code, and both calculators use the same formula, but I haven't examined the details thoroughly.

sh4rkman commented 3 weeks ago

You were shooting at 1155 instead of 1055 right ? 😄

Since you mentionned imprecision, i'll confront 1055 vs 1060 tonight and will post results here

Any difference between squadcalc and xyz is the way we use heightmaps and deduce a z-ratio from them

sh4rkman commented 3 weeks ago

You were right ! Yehorivka heightmap was slightly misaligned resulting in a few meters difference in this exact scenario. When re-aligning scrupulously the heightmap squadcalc now gives.. 1059.4

image image

Will push a fix soon, thanks a lot !