diff --git a/apps/gipy/ChangeLog b/apps/gipy/ChangeLog index ac67eafda..a5384c0c8 100644 --- a/apps/gipy/ChangeLog +++ b/apps/gipy/ChangeLog @@ -102,3 +102,4 @@ 0.21: * Jit is back for display functions (10% speed increase) * Store, parse and display elevation data + * Removed 'lost' indicator (we now change position to purple when lost) diff --git a/apps/gipy/README.md b/apps/gipy/README.md index ac65f8c3f..dc260fd70 100644 --- a/apps/gipy/README.md +++ b/apps/gipy/README.md @@ -79,17 +79,16 @@ On your screen you can see: * green: artwork - a *turn* indicator on the top right when you reach a turning point - a *gps* indicator (blinking) on the top right if you lose gps signal -- a *lost* indicator on the top right if you stray too far away from path ### Lost If you stray away from path we will rescale the display to continue displaying nearby segments and -display the direction to follow as a purple segment. +display the direction to follow as a purple segment. Your main position will also turn to purple. Note that while lost, the app will slow down a lot since it will start scanning all possible points to figure out where you are. On path it just needed to scan a few points ahead and behind. -The distance to next point displayed corresponds to the length of the black segment. +The distance to next point displayed corresponds to the length of the purple segment. ### Menu diff --git a/apps/gipy/TODO b/apps/gipy/TODO index ef1df3dc5..b642b5cf6 100644 --- a/apps/gipy/TODO +++ b/apps/gipy/TODO @@ -45,8 +45,6 @@ JIT: array declaration in jit is buggy + when lost we still get powersaving + try disabling gps for more powersaving -+ remove "lost" indicator and change position point's color instead - + when you walk the direction still has a tendency to shift + put back foot only ways diff --git a/apps/gipy/app.js b/apps/gipy/app.js index 70c1aafd3..2aec35429 100644 --- a/apps/gipy/app.js +++ b/apps/gipy/app.js @@ -1126,7 +1126,11 @@ class Status { previous_y = y; } } - g.setColor(0, 0, 0); + if (this.on_path) { + g.setColor(0, 0, 0); + } else { + g.setColor(1, 0, 1); + } g.fillCircle(current_x, current_y, 5); // display min dist/max dist and min height/max height @@ -1267,11 +1271,6 @@ class Status { .drawString("turn", g.getWidth() - 50, 30); } } - if (!this.on_path) { - g.setColor(1.0, 0.0, 0.0) - .setFont("6x15") - .drawString("lost", g.getWidth() - 55, 35); - } } display_path() { // don't display all segments, only those neighbouring current segment @@ -1329,7 +1328,11 @@ class Status { } // now display ourselves - g.setColor(0, 0, 0); + if (this.on_path) { + g.setColor(0, 0, 0); + } else { + g.setColor(1, 0, 1); + } g.fillCircle(half_width, half_height, 5); } }