Skip to content

Commit

Permalink
v0.14 Beta Test - Important fix.
Browse files Browse the repository at this point in the history
Fixed a problem where the position accuracy is only 100m on Google Chrome and Microsoft Edge (for Android).
  • Loading branch information
SamToki committed Jan 18, 2025
1 parent bfe6c50 commit e8e6064
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
Binary file modified PROJECT/GPS-PFD/docs/GPS-PFD 说明文档.pdf
Binary file not shown.
6 changes: 3 additions & 3 deletions PROJECT/GPS-PFD/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<link rel="icon" type="image/png" href="images/Icon_Small.png" />
<title>GPS-PFD</title>
<meta name="author" content="SAM TOKI STUDIO" />
<meta name="version" content="v0.13 (2025/01/18) Beta Test. Since 2024/12/01." />
<meta name="version" content="v0.14 (2025/01/18) Beta Test. Since 2024/12/01." />
<meta name="description" content="利用 GPS 与加速计,在移动设备上模拟飞机驾驶舱的 PFD。" />
<meta name="copyright" content="© 2025 SAM TOKI STUDIO" />

Expand Down Expand Up @@ -2064,7 +2064,7 @@ <h4>离线使用</h4>
<h4>安全与隐私</h4>
<p>本应用程序仅供娱乐用途。警报功能可能出现误报。使用时请注意安全。本应用程序可能使用位置服务。详见<a href="#Item_HelpDisclaimer" onclick="ShowIAmHere('Item_HelpDisclaimer')">免责声明</a><a href="#Item_HelpPrivacyStatement" onclick="ShowIAmHere('Item_HelpPrivacyStatement')">隐私权声明</a></p>
<h4>已知问题</h4>
<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>
<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>
</fieldset>
</li>
<li class="Item" id="Item_HelpTutorial">
Expand Down Expand Up @@ -2140,7 +2140,7 @@ <h4>音频</h4>
<legend>关于</legend>
<p>GPS-PFD</p>
<p>by SAM TOKI STUDIO</p>
<p>版本 v0.13 (<time datetime="2025-01-18" pubdate="pubdate">2025/01/18</time>) Beta Test<br />
<p>版本 v0.14 (<time datetime="2025-01-18" pubdate="pubdate">2025/01/18</time>) Beta Test<br />
始于 2024/12/01</p>
<p class="GreenText Hidden" id="Label_HelpPWANewVersionReady" inert="true">新版本已就绪,将在下次启动时生效。</p>
<ul class="CtrlGroup BelowParagraph">
Expand Down
2 changes: 1 addition & 1 deletion PROJECT/GPS-PFD/script_ServiceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Declare variables
"use strict";
// Unsaved
const CacheName = "GPS-PFD_v0.13";
const CacheName = "GPS-PFD_v0.14";

// Listeners
// Service worker (https://learn.microsoft.com/en-us/microsoft-edge/progressive-web-apps-chromium/how-to/#step-5---add-a-service-worker)
Expand Down
7 changes: 5 additions & 2 deletions PROJECT/GPS-PFD/scripts/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@
// Declare variables
"use strict";
// Unsaved
const CurrentVersion = 0.13;
const CurrentVersion = 0.14,
GeolocationAPIOptions = {
enableHighAccuracy: true
};
var PFD0 = {
RawData: {
GPS: {
Expand Down Expand Up @@ -3469,7 +3472,7 @@
window.addEventListener("resize", ClockPFD);

// Geolocation API
navigator.geolocation.watchPosition(RefreshGPSData);
navigator.geolocation.watchPosition(RefreshGPSData, null, GeolocationAPIOptions);

// Device motion API
window.addEventListener("devicemotion", RefreshAccelData);
Expand Down
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,8 @@ This application is still in beta test. Known issues are as follows:

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

Expand Down

0 comments on commit e8e6064

Please sign in to comment.