forked from FOSS/BangleApps
bugfix for speed
parent
84e9d12a09
commit
da72a24199
|
@ -38,3 +38,6 @@
|
||||||
* Display direction to nearest point when lost.
|
* Display direction to nearest point when lost.
|
||||||
* Display average speed.
|
* Display average speed.
|
||||||
* Turn off gps when locked and between points
|
* Turn off gps when locked and between points
|
||||||
|
|
||||||
|
0.12:
|
||||||
|
* Bugfix in speed computation.
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
|
|
||||||
* bugs
|
* bugs
|
||||||
|
|
||||||
- meters seem to be a bit too long
|
|
||||||
- segment detection could be better ?
|
- segment detection could be better ?
|
||||||
|
-----> we need to display debug info like which nearest point on which segment
|
||||||
|
very often you jump to next segment while still on current one
|
||||||
|
- it does not buzz very often on turns
|
||||||
|
|
||||||
|
|
||||||
* additional features
|
* additional features
|
||||||
|
|
||||||
|
|
|
@ -200,7 +200,8 @@ class Status {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
display_stats() {
|
display_stats() {
|
||||||
let rounded_distance = Math.round(this.remaining_distance() / 100) / 10;
|
let remaining_distance = this.remaining_distance();
|
||||||
|
let rounded_distance = Math.round(remaining_distance / 100) / 10;
|
||||||
let total = Math.round(this.remaining_distances[0] / 100) / 10;
|
let total = Math.round(this.remaining_distances[0] / 100) / 10;
|
||||||
let now = new Date();
|
let now = new Date();
|
||||||
let minutes = now.getMinutes().toString();
|
let minutes = now.getMinutes().toString();
|
||||||
|
@ -213,12 +214,9 @@ class Status {
|
||||||
.setColor(g.theme.fg)
|
.setColor(g.theme.fg)
|
||||||
.drawString(hours + ":" + minutes, g.getWidth(), g.getHeight() - 15);
|
.drawString(hours + ":" + minutes, g.getWidth(), g.getHeight() - 15);
|
||||||
|
|
||||||
let done_distance =
|
let done_distance = this.remaining_distances[0] - remaining_distance;
|
||||||
this.remaining_distances[0] -
|
|
||||||
this.remaining_distances[this.current_segment + 1] -
|
|
||||||
this.distance_to_next_point;
|
|
||||||
let done_in = getTime() - this.starting_time;
|
let done_in = getTime() - this.starting_time;
|
||||||
let approximate_speed = Math.round(done_distance / done_in);
|
let approximate_speed = Math.round((done_distance * 3.6) / done_in);
|
||||||
g.setFont("6x15")
|
g.setFont("6x15")
|
||||||
.setFontAlign(-1, -1, 0)
|
.setFontAlign(-1, -1, 0)
|
||||||
.drawString("s." + approximate_speed + "km/h", 0, g.getHeight() - 49);
|
.drawString("s." + approximate_speed + "km/h", 0, g.getHeight() - 49);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "gipy",
|
"id": "gipy",
|
||||||
"name": "Gipy",
|
"name": "Gipy",
|
||||||
"shortName": "Gipy",
|
"shortName": "Gipy",
|
||||||
"version": "0.11",
|
"version": "0.12",
|
||||||
"description": "Follow gpx files",
|
"description": "Follow gpx files",
|
||||||
"allow_emulator":false,
|
"allow_emulator":false,
|
||||||
"icon": "gipy.png",
|
"icon": "gipy.png",
|
||||||
|
|
Loading…
Reference in New Issue