Skip to content
This repository was archived by the owner on Dec 23, 2021. It is now read-only.

Commit c0f45b7

Browse files
Modify sensor values (#316)
1 parent 0f7054c commit c0f45b7

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/view/components/clue/Clue.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const DEFAULT_STATE = {
3131
[SENSOR_LIST.MOTION_Y]: 0,
3232
[SENSOR_LIST.MOTION_Z]: 0,
3333
[SENSOR_LIST.HUMIDITY]: 0,
34-
[SENSOR_LIST.PRESSURE]: 0,
34+
[SENSOR_LIST.PRESSURE]: 1013,
3535
[SENSOR_LIST.PROXIMITY]: 0,
3636
[SENSOR_LIST.GYRO_X]: 0,
3737
[SENSOR_LIST.GYRO_Y]: 0,

src/view/components/toolbar/clue/ClueSensorProperties.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,24 +47,24 @@ const CLUE_MAGNET_X: ISliderProps = {
4747
axisLabel: "X",
4848
maxLabel: "Max",
4949
minLabel: "Min",
50-
maxValue: 1600,
51-
minValue: 400,
50+
maxValue: 1000,
51+
minValue: -1000,
5252
type: SENSOR_LIST.MAGNET_X,
5353
};
5454
const CLUE_MAGNET_Y: ISliderProps = {
5555
axisLabel: "Y",
5656
maxLabel: "Max",
5757
minLabel: "Min",
58-
maxValue: 1600,
59-
minValue: 400,
58+
maxValue: 1000,
59+
minValue: -1000,
6060
type: SENSOR_LIST.MAGNET_Y,
6161
};
6262
const CLUE_MAGNET_Z: ISliderProps = {
6363
axisLabel: "Z",
6464
maxLabel: "Max",
6565
minLabel: "Min",
66-
maxValue: 1600,
67-
minValue: 400,
66+
maxValue: 1000,
67+
minValue: -1000,
6868
type: SENSOR_LIST.MAGNET_Z,
6969
};
7070

0 commit comments

Comments
 (0)