Skip to content

Commit e8e6064

Browse files
committed
v0.14 Beta Test - Important fix.
Fixed a problem where the position accuracy is only 100m on Google Chrome and Microsoft Edge (for Android).
1 parent bfe6c50 commit e8e6064

File tree

5 files changed

+11
-12
lines changed

5 files changed

+11
-12
lines changed
-490 Bytes
Binary file not shown.

PROJECT/GPS-PFD/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<link rel="icon" type="image/png" href="images/Icon_Small.png" />
1111
<title>GPS-PFD</title>
1212
<meta name="author" content="SAM TOKI STUDIO" />
13-
<meta name="version" content="v0.13 (2025/01/18) Beta Test. Since 2024/12/01." />
13+
<meta name="version" content="v0.14 (2025/01/18) Beta Test. Since 2024/12/01." />
1414
<meta name="description" content="利用 GPS 与加速计,在移动设备上模拟飞机驾驶舱的 PFD。" />
1515
<meta name="copyright" content="© 2025 SAM TOKI STUDIO" />
1616

@@ -2064,7 +2064,7 @@ <h4>离线使用</h4>
20642064
<h4>安全与隐私</h4>
20652065
<p>本应用程序仅供娱乐用途。警报功能可能出现误报。使用时请注意安全。本应用程序可能使用位置服务。详见<a href="#Item_HelpDisclaimer" onclick="ShowIAmHere('Item_HelpDisclaimer')">免责声明</a><a href="#Item_HelpPrivacyStatement" onclick="ShowIAmHere('Item_HelpPrivacyStatement')">隐私权声明</a></p>
20662066
<h4>已知问题</h4>
2067-
<p>本应用程序仍处于测试阶段。已知问题有:①加速计误差严重。系统已尽可能减小误差。②在 <a href="https://zh.wikipedia.org/wiki/Chromium">Chromium</a> 内核的浏览器上可能无法显示朝向。③「保持屏幕常亮」可能不起作用。④在 <a href="https://zh.wikipedia.org/wiki/Firefox">Firefox</a> for Android 上偶尔会出错。⑤<a href="https://zh.wikipedia.org/wiki/Brave浏览器">Brave</a> for Android 上无法使用。若您有其他问题或建议,请向我<a href="#Item_HelpGetInvolved" onclick="ShowIAmHere('Item_HelpGetInvolved')">提供反馈</a></p>
2067+
<p>本应用程序仍处于测试阶段。已知问题有:①加速计误差严重。系统已尽可能减小误差。②在 <a href="https://zh.wikipedia.org/wiki/Firefox">Firefox</a> for Android 上,「保持屏幕常亮」可能不起作用,且偶尔会出错。③<a href="https://zh.wikipedia.org/wiki/Brave浏览器">Brave</a> for Android 上无法使用。若您有其他问题或建议,请向我<a href="#Item_HelpGetInvolved" onclick="ShowIAmHere('Item_HelpGetInvolved')">提供反馈</a></p>
20682068
</fieldset>
20692069
</li>
20702070
<li class="Item" id="Item_HelpTutorial">
@@ -2140,7 +2140,7 @@ <h4>音频</h4>
21402140
<legend>关于</legend>
21412141
<p>GPS-PFD</p>
21422142
<p>by SAM TOKI STUDIO</p>
2143-
<p>版本 v0.13 (<time datetime="2025-01-18" pubdate="pubdate">2025/01/18</time>) Beta Test<br />
2143+
<p>版本 v0.14 (<time datetime="2025-01-18" pubdate="pubdate">2025/01/18</time>) Beta Test<br />
21442144
始于 2024/12/01</p>
21452145
<p class="GreenText Hidden" id="Label_HelpPWANewVersionReady" inert="true">新版本已就绪,将在下次启动时生效。</p>
21462146
<ul class="CtrlGroup BelowParagraph">

PROJECT/GPS-PFD/script_ServiceWorker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
// Declare variables
77
"use strict";
88
// Unsaved
9-
const CacheName = "GPS-PFD_v0.13";
9+
const CacheName = "GPS-PFD_v0.14";
1010

1111
// Listeners
1212
// Service worker (https://learn.microsoft.com/en-us/microsoft-edge/progressive-web-apps-chromium/how-to/#step-5---add-a-service-worker)

PROJECT/GPS-PFD/scripts/script.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
// Declare variables
77
"use strict";
88
// Unsaved
9-
const CurrentVersion = 0.13;
9+
const CurrentVersion = 0.14,
10+
GeolocationAPIOptions = {
11+
enableHighAccuracy: true
12+
};
1013
var PFD0 = {
1114
RawData: {
1215
GPS: {
@@ -3469,7 +3472,7 @@
34693472
window.addEventListener("resize", ClockPFD);
34703473

34713474
// Geolocation API
3472-
navigator.geolocation.watchPosition(RefreshGPSData);
3475+
navigator.geolocation.watchPosition(RefreshGPSData, null, GeolocationAPIOptions);
34733476

34743477
// Device motion API
34753478
window.addEventListener("devicemotion", RefreshAccelData);

README.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,8 @@ This application is still in beta test. Known issues are as follows:
4141

4242
- 加速计误差严重。系统已尽可能减小误差。<br>
4343
The accelerometer is serious inaccurate. The system does its best to reduce errors.
44-
-[Chromium](https://zh.wikipedia.org/wiki/Chromium) 内核的浏览器上可能无法显示朝向。<br>
45-
The heading may be unavailable on [Chromium](https://en.wikipedia.org/wiki/Chromium_(web_browser)) browsers.
46-
- 「保持屏幕常亮」可能不起作用。<br>
47-
The "keep screen on" feature may not work.
48-
-[Firefox](https://zh.wikipedia.org/wiki/Firefox) for Android 上偶尔会出错。<br>
49-
Rare errors occur on [Firefox](https://en.wikipedia.org/wiki/Firefox) for Android.
44+
-[Firefox](https://zh.wikipedia.org/wiki/Firefox) for Android 上,「保持屏幕常亮」可能不起作用,且偶尔会出错。<br>
45+
On [Firefox](https://en.wikipedia.org/wiki/Firefox) for Android, the "keep screen on" feature may not work, and unexpected errors sometimes occur.
5046
-[Brave](https://zh.wikipedia.org/wiki/Brave浏览器) for Android 上无法使用。<br>
5147
Completely unusable on [Brave](https://en.wikipedia.org/wiki/Brave_(web_browser)) for Android.
5248

0 commit comments

Comments
 (0)