Mobile-SDK-Android-V5 icon indicating copy to clipboard operation
Mobile-SDK-Android-V5 copied to clipboard

Convert Feet to meter

Open 1232Ga opened this issue 1 year ago • 3 comments

How to change compass value from ft to m , MicrosoftTeams-image (25)

1232Ga avatar Feb 20 '24 06:02 1232Ga

Agent comment from yating.liao in Zendesk ticket #101031:

You need to modify the code of the AttitudeDashBoard control, below is the function that determines the unit to use. UnitUtils.UnitType.METRIC indicates the use of meters as the unit.

protected String getAttributeUnit() { return UnitUtils.getUintStrByLength(UnitUtils.isMetricUnits() ? UnitUtils.UnitType.METRIC : UnitUtils.UnitType.IMPERIAL);}


°°°

dji-dev avatar Feb 20 '24 10:02 dji-dev

Thanks its working fine

1232Ga avatar Feb 21 '24 04:02 1232Ga

Agent comment from yating.liao in Zendesk ticket #101031:

I'm glad this has been helpful to you.

°°°

dji-dev avatar Feb 21 '24 09:02 dji-dev