forked from FOSS/BangleApps
bugfix in avg speed
parent
ac8a3c35f6
commit
db85f1ccdd
|
@ -62,3 +62,4 @@
|
||||||
0.15:
|
0.15:
|
||||||
* Record traveled distance to get a good average speed.
|
* Record traveled distance to get a good average speed.
|
||||||
* Breaks (low speed) will not count in average speed.
|
* Breaks (low speed) will not count in average speed.
|
||||||
|
* Bugfix in average speed.
|
||||||
|
|
|
@ -1,11 +1,34 @@
|
||||||
# Gipy
|
# Gipy
|
||||||
|
|
||||||
Development still in progress. Follow compressed gpx traces.
|
Gipy allows you to follow gpx traces on your watch.
|
||||||
Will warn you before reaching intersections and try to turn off gps.
|
|
||||||
|
It is meant for bicycling and not hiking
|
||||||
|
(it uses your movement to figure out your orientation).
|
||||||
|
|
||||||
|
It provides the following features :
|
||||||
|
|
||||||
|
- display the path with current position from gps
|
||||||
|
- detects and buzzes if you leave the path
|
||||||
|
- buzzes before sharp turns
|
||||||
|
- buzzes before nodes with comments
|
||||||
|
(for example when you need to turn in https://mapstogpx.com/)
|
||||||
|
- display instant / average speed
|
||||||
|
- display distance to next node
|
||||||
|
|
||||||
|
optionally it can also :
|
||||||
|
|
||||||
|
- display additional data from openstreetmap :
|
||||||
|
- water points
|
||||||
|
- toilets
|
||||||
|
- artwork
|
||||||
|
- bakeries
|
||||||
|
|
||||||
|
- try to turn off gps between crossroads to save battery
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
WIP.
|
You first need to convert your .gpx file to a .gpc (our custom lightweight trace).
|
||||||
|
Then launch gipy and select a trace to follow.
|
||||||
|
|
||||||
|
|
||||||
## Creator
|
## Creator
|
||||||
|
|
|
@ -4,7 +4,7 @@ let code_key = 47490;
|
||||||
|
|
||||||
var settings = Object.assign(
|
var settings = Object.assign(
|
||||||
{
|
{
|
||||||
keep_gps_alive: false,
|
keep_gps_alive: true,
|
||||||
max_speed: 35,
|
max_speed: 35,
|
||||||
},
|
},
|
||||||
require("Storage").readJSON("gipy.json", true) || {}
|
require("Storage").readJSON("gipy.json", true) || {}
|
||||||
|
@ -75,10 +75,9 @@ class Status {
|
||||||
let last_point = this.old_points[this.old_points.length - 1];
|
let last_point = this.old_points[this.old_points.length - 1];
|
||||||
let oldest_point = this.old_points[0];
|
let oldest_point = this.old_points[0];
|
||||||
|
|
||||||
// every 8 points we count the distance
|
// every 7 points we count the distance
|
||||||
if (this.gps_coordinates_counter % 8 == 0) {
|
if (this.gps_coordinates_counter % 7 == 0) {
|
||||||
let distance = last_point.distance(oldest_point);
|
let distance = last_point.distance(oldest_point);
|
||||||
console.log(distance);
|
|
||||||
if (distance < 150.0) {
|
if (distance < 150.0) {
|
||||||
// to avoid gps glitches
|
// to avoid gps glitches
|
||||||
this.advanced_distance += distance;
|
this.advanced_distance += distance;
|
||||||
|
|
Loading…
Reference in New Issue