Skip to content

Commit 42bc6a0

Browse files
committed
sensors.ts range fix
1 parent 281d86d commit 42bc6a0

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

sensors.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ namespace microdata {
490490
rName: "JD",
491491
f: () => modules.distance1.isConnected() ? modules.distance1.distance() : undefined,
492492
min: 0,
493-
max: 100,
493+
max: 4,
494494
isJacdacSensor: true,
495495
setupFn: () => modules.distance1.start()
496496
});
@@ -500,8 +500,8 @@ namespace microdata {
500500
name: "Jac Flex",
501501
rName: "JF",
502502
f: () => modules.flex1.isConnected() ? modules.flex1.bending() : undefined,
503-
min: 0,
504-
max: 100, // Assuming bending level ranges from 0 to 100 (adjust as needed)
503+
min: -100,
504+
max: 100,
505505
isJacdacSensor: true,
506506
setupFn: () => modules.flex1.start()
507507
});
@@ -511,8 +511,8 @@ namespace microdata {
511511
name: "Jac Temp",
512512
rName: "JT",
513513
f: () => modules.temperature1.isConnected() ? modules.temperature1.temperature() : undefined,
514-
min: 0,
515-
max: 100,
514+
min: -40,
515+
max: 120,
516516
isJacdacSensor: true,
517517
setupFn: () => modules.temperature1.start()
518518
});

0 commit comments

Comments
 (0)