queclink-parser 1.9.24 → 1.9.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/package.json +1 -1
- package/src/gv310lau.js +1 -1
- package/src/gv57cg.js +1 -1
- package/src/gv58lau.js +1 -1
- package/src/messages/es.json +5 -5
- package/src/utils.js +0 -3
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/gv310lau.js
CHANGED
package/src/gv57cg.js
CHANGED
package/src/gv58lau.js
CHANGED
package/src/messages/es.json
CHANGED
|
@@ -214,11 +214,11 @@
|
|
|
214
214
|
"5": "Comportamiento Brusco Desconocido"
|
|
215
215
|
},
|
|
216
216
|
"GTHBE": {
|
|
217
|
-
"0": "Frenada Brusca de X m/s²
|
|
218
|
-
"1": "Aceleración Brusca de X m/s²
|
|
219
|
-
"2": "Giro Brusco de X m/s²
|
|
220
|
-
"3": "Frenada Brusca Girando de X m/s²
|
|
221
|
-
"4": "Aceleración Brusca Girando de X m/s²
|
|
217
|
+
"0": "Frenada Brusca de X m/s² durante Z segundos",
|
|
218
|
+
"1": "Aceleración Brusca de X m/s² durante Z segundos",
|
|
219
|
+
"2": "Giro Brusco de X m/s² durante Z segundos",
|
|
220
|
+
"3": "Frenada Brusca Girando de X m/s² durante Z segundos",
|
|
221
|
+
"4": "Aceleración Brusca Girando de X m/s² durante Z segundos",
|
|
222
222
|
"5": "Comportamiento Brusco Desconocido"
|
|
223
223
|
},
|
|
224
224
|
"GTDOG": {
|
package/src/utils.js
CHANGED
|
@@ -1851,7 +1851,6 @@ const getAlarm = (command, report, extra = false) => {
|
|
|
1851
1851
|
let y = getAccelerationMagnitude(extra[0].substring(4, 8), 4)
|
|
1852
1852
|
let z = getAccelerationMagnitude(extra[0].substring(8, 12), 4)
|
|
1853
1853
|
let duration = extra[1]
|
|
1854
|
-
let speed = extra[2]
|
|
1855
1854
|
let magnitude = Number(
|
|
1856
1855
|
Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2) + Math.pow(z, 2)).toFixed(2)
|
|
1857
1856
|
).toString()
|
|
@@ -1860,12 +1859,10 @@ const getAlarm = (command, report, extra = false) => {
|
|
|
1860
1859
|
status: parseInt(report[1], 10),
|
|
1861
1860
|
calibration: report[0] === '2',
|
|
1862
1861
|
duration: duration,
|
|
1863
|
-
speed: speed,
|
|
1864
1862
|
magnitude: magnitude,
|
|
1865
1863
|
xyz: { x: x, y: y, z: z },
|
|
1866
1864
|
message: messages[command][report[1]]
|
|
1867
1865
|
.replace('X', magnitude)
|
|
1868
|
-
.replace('Y', speed)
|
|
1869
1866
|
.replace('Z', duration)
|
|
1870
1867
|
}
|
|
1871
1868
|
} else if (command === 'GTCRA') {
|