Update app.js

master
nujw 2022-02-09 15:32:48 +13:00 committed by GitHub
parent 5fbc33ef4c
commit 2cbdde59de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,7 @@ Mike Bennett mike[at]kereru.com
1.34 : Add bluetooth data stream for Droidscript 1.34 : Add bluetooth data stream for Droidscript
1.43 : Keep GPS in SuperE mode while using Droiscript screen mirroring 1.43 : Keep GPS in SuperE mode while using Droiscript screen mirroring
*/ */
var v = '1.47'; var v = '1.48';
var vDroid = '1.50'; // Required DroidScript program version var vDroid = '1.50'; // Required DroidScript program version
/*kalmanjs, Wouter Bulten, MIT, https://github.com/wouterbulten/kalmanjs */ /*kalmanjs, Wouter Bulten, MIT, https://github.com/wouterbulten/kalmanjs */
@ -175,6 +175,7 @@ var KalmanFilter = (function () {
var buf = Graphics.createArrayBuffer(240,160,2,{msb:true}); var buf = Graphics.createArrayBuffer(240,160,2,{msb:true});
/*
let LED = // LED as minimal and only definition (as instance / singleton) let LED = // LED as minimal and only definition (as instance / singleton)
{ isOn: false // status on / off, not needed if you don't need to ask for it { isOn: false // status on / off, not needed if you don't need to ask for it
, set: function(v) { // turn on w/ no arg or truey, else off , set: function(v) { // turn on w/ no arg or truey, else off
@ -183,6 +184,7 @@ let LED = // LED as minimal and only definition (as instance / singleton)
, write: function(v) { this.set(v); } // turn on w/ no arg or truey, else off , write: function(v) { this.set(v); } // turn on w/ no arg or truey, else off
, toggle: function() { this.set( ! this.isOn); } // toggle the LED , toggle: function() { this.set( ! this.isOn); } // toggle the LED
}, LED1 = LED; // LED1 as 'synonym' for LED }, LED1 = LED; // LED1 as 'synonym' for LED
*/
var lf = {fix:0,satellites:0}; var lf = {fix:0,satellites:0};
var showMax = 0; // 1 = display the max values. 0 = display the cur fix var showMax = 0; // 1 = display the max values. 0 = display the cur fix