sensortools: Fix time in gps
parent
cb8e733738
commit
549f5ddd9a
|
|
@ -1,3 +1,4 @@
|
||||||
0.01: New App!
|
0.01: New App!
|
||||||
0.02: Less time used during boot if disabled
|
0.02: Less time used during boot if disabled
|
||||||
0.03: Fixed some test data
|
0.03: Fixed some test data
|
||||||
|
0.04: Correct type of time attribute in gps to Date
|
||||||
|
|
|
||||||
|
|
@ -205,7 +205,7 @@ exports.enable = () => {
|
||||||
"alt": 100,
|
"alt": 100,
|
||||||
"speed": 10,
|
"speed": 10,
|
||||||
"course": 12,
|
"course": 12,
|
||||||
"time": Date.now(),
|
"time": new Date(),
|
||||||
"satellites": 7,
|
"satellites": 7,
|
||||||
"fix": 1,
|
"fix": 1,
|
||||||
"hdop": 1
|
"hdop": 1
|
||||||
|
|
@ -228,7 +228,7 @@ exports.enable = () => {
|
||||||
|
|
||||||
let result = {
|
let result = {
|
||||||
"speed": Math.random() * 3 + 2,
|
"speed": Math.random() * 3 + 2,
|
||||||
"time": Date.now(),
|
"time": new Date(),
|
||||||
"satellites": Math.floor(Math.random()*5)+3,
|
"satellites": Math.floor(Math.random()*5)+3,
|
||||||
"fix": 1,
|
"fix": 1,
|
||||||
"hdop": Math.floor(Math.random(30)+1)
|
"hdop": Math.floor(Math.random(30)+1)
|
||||||
|
|
@ -268,7 +268,7 @@ exports.enable = () => {
|
||||||
"alt": NaN,
|
"alt": NaN,
|
||||||
"speed": NaN,
|
"speed": NaN,
|
||||||
"course": NaN,
|
"course": NaN,
|
||||||
"time": Date.now(),
|
"time": new Date(),
|
||||||
"satellites": 2,
|
"satellites": 2,
|
||||||
"fix": 0,
|
"fix": 0,
|
||||||
"hdop": NaN
|
"hdop": NaN
|
||||||
|
|
@ -301,7 +301,7 @@ exports.enable = () => {
|
||||||
"alt": currentAlt,
|
"alt": currentAlt,
|
||||||
"speed": currentSpeed,
|
"speed": currentSpeed,
|
||||||
"course": currentCourse,
|
"course": currentCourse,
|
||||||
"time": Date.now(),
|
"time": new Date(),
|
||||||
"satellites": currentSats,
|
"satellites": currentSats,
|
||||||
"fix": 1,
|
"fix": 1,
|
||||||
"hdop": 1
|
"hdop": 1
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "sensortools",
|
"id": "sensortools",
|
||||||
"name": "Sensor tools",
|
"name": "Sensor tools",
|
||||||
"shortName": "Sensor tools",
|
"shortName": "Sensor tools",
|
||||||
"version": "0.03",
|
"version": "0.04",
|
||||||
"description": "Tools for testing and debugging apps that use sensor input",
|
"description": "Tools for testing and debugging apps that use sensor input",
|
||||||
"icon": "icon.png",
|
"icon": "icon.png",
|
||||||
"type": "bootloader",
|
"type": "bootloader",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue