From 9c3c2da7fc009afa6528de02fe6ab5c4255dd2a3 Mon Sep 17 00:00:00 2001 From: xnkevinnguyen Date: Thu, 9 Apr 2020 15:37:34 -0700 Subject: [PATCH] Modify sensor values --- src/view/components/clue/Clue.tsx | 2 +- .../components/toolbar/clue/ClueSensorProperties.tsx | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/view/components/clue/Clue.tsx b/src/view/components/clue/Clue.tsx index 294b2fcc0..546f136ee 100644 --- a/src/view/components/clue/Clue.tsx +++ b/src/view/components/clue/Clue.tsx @@ -31,7 +31,7 @@ const DEFAULT_STATE = { [SENSOR_LIST.MOTION_Y]: 0, [SENSOR_LIST.MOTION_Z]: 0, [SENSOR_LIST.HUMIDITY]: 0, - [SENSOR_LIST.PRESSURE]: 0, + [SENSOR_LIST.PRESSURE]: 1013, [SENSOR_LIST.PROXIMITY]: 0, [SENSOR_LIST.GYRO_X]: 0, [SENSOR_LIST.GYRO_Y]: 0, diff --git a/src/view/components/toolbar/clue/ClueSensorProperties.tsx b/src/view/components/toolbar/clue/ClueSensorProperties.tsx index 0dc2e5e3f..77b1109cb 100644 --- a/src/view/components/toolbar/clue/ClueSensorProperties.tsx +++ b/src/view/components/toolbar/clue/ClueSensorProperties.tsx @@ -47,24 +47,24 @@ const CLUE_MAGNET_X: ISliderProps = { axisLabel: "X", maxLabel: "Max", minLabel: "Min", - maxValue: 1600, - minValue: 400, + maxValue: 1000, + minValue: -1000, type: SENSOR_LIST.MAGNET_X, }; const CLUE_MAGNET_Y: ISliderProps = { axisLabel: "Y", maxLabel: "Max", minLabel: "Min", - maxValue: 1600, - minValue: 400, + maxValue: 1000, + minValue: -1000, type: SENSOR_LIST.MAGNET_Y, }; const CLUE_MAGNET_Z: ISliderProps = { axisLabel: "Z", maxLabel: "Max", minLabel: "Min", - maxValue: 1600, - minValue: 400, + maxValue: 1000, + minValue: -1000, type: SENSOR_LIST.MAGNET_Z, };