From f9898cd7fed8e80678781467f92679693ff596a9 Mon Sep 17 00:00:00 2001 From: Martin Boonk Date: Sun, 30 Oct 2022 18:31:31 +0100 Subject: [PATCH 1/4] gpstrek - Change slices in settings to more descriptive "Info rows" --- apps/gpstrek/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/gpstrek/app.js b/apps/gpstrek/app.js index 242d0c81b..7bed0a1b0 100644 --- a/apps/gpstrek/app.js +++ b/apps/gpstrek/app.js @@ -613,7 +613,7 @@ function showMenu(){ "Background" : showBackgroundMenu, "Calibration": showCalibrationMenu, "Reset" : ()=>{ E.showPrompt("Do Reset?").then((v)=>{ if (v) {WIDGETS.gpstrek.resetState(); removeMenu();} else {E.showMenu(mainmenu);}});}, - "Slices" : { + "Info rows" : { value : numberOfSlices, min:1,max:6,step:1, onchange : v => { setNumberOfSlices(v); } From a302832921a4971dfeeca3c3ce854204d39536aa Mon Sep 17 00:00:00 2001 From: Martin Boonk Date: Sun, 30 Oct 2022 18:33:02 +0100 Subject: [PATCH 2/4] gpstrek - Correct heading from compass --- apps/gpstrek/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/gpstrek/app.js b/apps/gpstrek/app.js index 7bed0a1b0..2bfae7b37 100644 --- a/apps/gpstrek/app.js +++ b/apps/gpstrek/app.js @@ -684,7 +684,7 @@ const compassSliceData = { }, getCourse: function (){ if(compassSliceData.getCourseType() == "GPS") return state.currentPos.course; - return state.compassHeading?state.compassHeading:undefined; + return state.compassHeading?360-state.compassHeading:undefined; }, getPoints: function (){ let points = []; From 8a7953d55d95bcd672326bb8b0ea49b618b316dc Mon Sep 17 00:00:00 2001 From: Martin Boonk Date: Sun, 30 Oct 2022 18:35:02 +0100 Subject: [PATCH 3/4] gpstrek - Bump version --- apps/gpstrek/ChangeLog | 1 + apps/gpstrek/metadata.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/gpstrek/ChangeLog b/apps/gpstrek/ChangeLog index c9be2af94..47be6eb8b 100644 --- a/apps/gpstrek/ChangeLog +++ b/apps/gpstrek/ChangeLog @@ -2,3 +2,4 @@ 0.02: Make selection of background activity more explicit 0.03: Fix listener for accel always active Use custom UI with swipes instead of leftright +0.04: Fix compass heading diff --git a/apps/gpstrek/metadata.json b/apps/gpstrek/metadata.json index e8863c706..7c91fad53 100644 --- a/apps/gpstrek/metadata.json +++ b/apps/gpstrek/metadata.json @@ -1,7 +1,7 @@ { "id": "gpstrek", "name": "GPS Trekking", - "version": "0.03", + "version": "0.04", "description": "Helper for tracking the status/progress during hiking. Do NOT depend on this for navigation!", "icon": "icon.png", "screenshots": [{"url":"screen1.png"},{"url":"screen2.png"},{"url":"screen3.png"},{"url":"screen4.png"}], From 0dac97fc9b734c6839578cc8ea823921deb70dc6 Mon Sep 17 00:00:00 2001 From: Martin Boonk Date: Sun, 30 Oct 2022 18:42:33 +0100 Subject: [PATCH 4/4] gpstrek - Better readme for the compass display --- apps/gpstrek/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/gpstrek/README.md b/apps/gpstrek/README.md index 439b7497a..6edad2b1d 100644 --- a/apps/gpstrek/README.md +++ b/apps/gpstrek/README.md @@ -13,6 +13,9 @@ Choose either a route or a waypoint as basis for the display. After this selection and availability of a GPS fix the compass will show a blue dot for your destination and a green one for possibly available waypoints on the way. Waypoints are shown with name if available and distance to waypoint. +As long as no GPS signal is available the compass shows the heading from the build in magnetometer. When a GPS fix becomes available, the compass display shows the GPS course. This can be differentiated by the display of bubble levels on top and sides of the compass. +If they are on display, the source is the magnetometer and you should keep the bangle level. There is currently no tilt compensation for the compass display. + ### Route Routes can be created from .gpx files containing "trkpt" elements with this script: [createRoute.sh](createRoute.sh)