Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MicroDAGR] get the meters for mortars (better rangetable calcs) #5802

Merged
merged 5 commits into from Nov 28, 2017
Merged

[MicroDAGR] get the meters for mortars (better rangetable calcs) #5802

merged 5 commits into from Nov 28, 2017

Conversation

shukari
Copy link
Contributor

@shukari shukari commented Nov 21, 2017

When merged this pull request will:

  • change the range from 0.1km to 0.001km to allow a usage with mortar (needs excact meter values)

@shukari shukari changed the title get the 10m for mortars [MicroDAGR] get the 10m for mortars Nov 21, 2017
@jonpas jonpas added kind/enhancement Release Notes: **IMPROVED:** status/review-pending labels Nov 22, 2017
@jonpas jonpas added this to the 3.12.0 milestone Nov 22, 2017
@shukari shukari changed the title [MicroDAGR] get the 10m for mortars [MicroDAGR] get the meters for mortars (better rangetable calcs) Nov 28, 2017
@@ -89,7 +89,7 @@ case (APP_MODE_INFODISPLAY): {
([_bearing, 3, 1] call CBA_fnc_formatNumber) + "°" //degree symbol is in UTF-8
};
private _2dDistanceKm = ((getPosASL ACE_player) distance2D _targetPosLocationASL) / 1000;
_rangeText = format ["%1km", ([_2dDistanceKm, 1, 1] call CBA_fnc_formatNumber)];
_rangeText = format ["%1km", ([_2dDistanceKm, 1, 3] call CBA_fnc_formatNumber)];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CBA_fnc_formatNumber can be replaced by the toFixed command 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@PabstMirror
Copy link
Contributor

Just checked reference [PDF] - https://www.rockwellcollins.com/-/media/Files/Unsecure/Products/Product_Brochures/Navigation_and_Guidance/GPS_Devices/MicroDAGR_data_sheet.ashx

and it does seem to use have meter resolution on the info screen

@PabstMirror PabstMirror merged commit 87e9986 into acemod:master Nov 28, 2017
@shukari shukari deleted the patch-1 branch July 23, 2018 10:10
BaerMitUmlaut pushed a commit that referenced this pull request Aug 5, 2019
* get the 10m for mortars

* get the exact meter

* use toFixed

* that evil )

* thx travis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Release Notes: **IMPROVED:**
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants