waypoints: display speed, too
parent
2fe994541f
commit
aa7c87dd2e
|
|
@ -136,7 +136,7 @@ let gps = {
|
||||||
emulator: -1,
|
emulator: -1,
|
||||||
init: function(x) {
|
init: function(x) {
|
||||||
this.emulator = (process.env.BOARD=="EMSCRIPTEN"
|
this.emulator = (process.env.BOARD=="EMSCRIPTEN"
|
||||||
|| process.env.BOARD=="EMSCRIPTEN2")?1:1;
|
|| process.env.BOARD=="EMSCRIPTEN2")?1:0;
|
||||||
},
|
},
|
||||||
state: {},
|
state: {},
|
||||||
on_gps: function(f) {
|
on_gps: function(f) {
|
||||||
|
|
@ -186,7 +186,7 @@ let gps = {
|
||||||
|
|
||||||
let sun = {}; /* To get rid of warnings */
|
let sun = {}; /* To get rid of warnings */
|
||||||
|
|
||||||
/* arrow library v0.0.2 */
|
/* arrow library v0.0.3 */
|
||||||
let arrow = {
|
let arrow = {
|
||||||
name: "(unset)",
|
name: "(unset)",
|
||||||
waypoint: { lat: 0, lon: 0 },
|
waypoint: { lat: 0, lon: 0 },
|
||||||
|
|
@ -231,8 +231,10 @@ let arrow = {
|
||||||
if (1)
|
if (1)
|
||||||
this.drawArrow(waypointBearing, `${distStr}`, 3);
|
this.drawArrow(waypointBearing, `${distStr}`, 3);
|
||||||
|
|
||||||
if (1)
|
if (1) {
|
||||||
this.drawArrow(currentHeading, 'g', 1);
|
let s = fmt.fmtSpeed(fix.speed);
|
||||||
|
this.drawArrow(currentHeading, s, 1);
|
||||||
|
}
|
||||||
|
|
||||||
if (0) {
|
if (0) {
|
||||||
let s;
|
let s;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue