import { SENSOR_LIST } from "../../../constants" ; import { ISensorProps , ISliderProps } from "../../../viewUtils" ; const CLUE_SLIDER_R = { axisLabel : "R" , maxLabel : "Max" , maxValue : 65535 , minLabel : "Min" , minValue : 0 , type : SENSOR_LIST . LIGHT_R , step : 1 , } ; const CLUE_SLIDER_G = { axisLabel : "G" , maxLabel : "Max" , maxValue : 65535 , minLabel : "Min" , minValue : 0 , type : SENSOR_LIST . LIGHT_G , step : 1 , } ; const CLUE_SLIDER_B = { axisLabel : "B" , maxLabel : "Max" , maxValue : 65535 , minLabel : "Min" , minValue : 0 , type : SENSOR_LIST . LIGHT_B , step : 1 , } ; const CLUE_SLIDER_C = { axisLabel : "C" , maxLabel : "Max" , maxValue : 65535 , minLabel : "Min" , minValue : 0 , type : SENSOR_LIST . LIGHT_C , step : 1 , } ; export const CLUE_LIGHT_PROPERTIES = { LABEL : "Light Sensor" , sliderProps : [ CLUE_SLIDER_R , CLUE_SLIDER_G , CLUE_SLIDER_B , CLUE_SLIDER_C ] , unitLabel : "Lux" , } ; const CLUE_MAGNET_X = { axisLabel : "X" , maxLabel : "Max" , minLabel : "Min" , maxValue : 1000 , minValue : - 1000 , type : SENSOR_LIST . MAGNET_X , step : 0.1 , } ; const CLUE_MAGNET_Y = { axisLabel : "Y" , maxLabel : "Max" , minLabel : "Min" , maxValue : 1000 , minValue : - 1000 , type : SENSOR_LIST . MAGNET_Y , step : 0.1 , } ; const CLUE_MAGNET_Z = { axisLabel : "Z" , maxLabel : "Max" , minLabel : "Min" , maxValue : 1000 , minValue : - 1000 , type : SENSOR_LIST . MAGNET_Z , step : 0.1 , } ; export const CLUE_MAGNET_PROPERTIES = { LABEL : "Magnetoscope" , sliderProps : [ CLUE_MAGNET_X , CLUE_MAGNET_Y , CLUE_MAGNET_Z ] , unitLabel : "μT" , } ; const CLUE_GYRO_X = { axisLabel : "X" , maxLabel : "Max" , minLabel : "Min" , maxValue : 1000 , minValue : - 1000 , type : SENSOR_LIST . GYRO_X , step : 0.1 , } ; const CLUE_GYRO_Y = { axisLabel : "Y" , maxLabel : "Max" , minLabel : "Min" , maxValue : 1000 , minValue : - 1000 , type : SENSOR_LIST . GYRO_Y , step : 0.1 , } ; const CLUE_GYRO_Z = { axisLabel : "Z" , maxLabel : "Max" , minLabel : "Min" , maxValue : 1000 , minValue : - 1000 , type : SENSOR_LIST . GYRO_Z , step : 0.1 , } ; export const CLUE_GYRO_PROPERTIES = { LABEL : "Gyroscope" , sliderProps : [ CLUE_GYRO_X , CLUE_GYRO_Y , CLUE_GYRO_Z ] , unitLabel : "deg/s" , } ; export const CLUE_HUMIDITY_PROPERTIES = { LABEL : "Humidity Sensor" , sliderProps : [ { axisLabel : "H" , maxLabel : "Max" , maxValue : 100 , minLabel : "Min" , minValue : 0 , type : SENSOR_LIST . HUMIDITY , step : 0.1 , } , ] , unitLabel : "%" , } ; export const CLUE__PROXIMITY_PROPERTIES = { LABEL : "Humidity Sensor" , sliderProps : [ { axisLabel : "P" , maxLabel : "Max" , maxValue : 255 , minLabel : "Min" , minValue : 0 , type : SENSOR_LIST . PROXIMITY , step : 1 , } , ] , unitLabel : "" , } ; export const CLUE_PRESSURE_PROPERTIES = { LABEL : "Humidity Sensor" , sliderProps : [ { axisLabel : "P" , maxLabel : "Max" , maxValue : 1100 , minLabel : "Min" , minValue : 800 , type : SENSOR_LIST . PRESSURE , step : 0.1 , } , ] , unitLabel : "hPa" , } ; const MOTION_SLIDER_PROPS_X = { axisLabel : "X" , maxLabel : "Right" , maxValue : 1023 , minLabel : "Left" , minValue : - 1023 , type : SENSOR_LIST . MOTION_X , step : 0.1 , } ; const MOTION_SLIDER_PROPS_Y = { axisLabel : "Y" , maxLabel : "Front" , maxValue : 1023 , minLabel : "Back" , minValue : - 1023 , type : SENSOR_LIST . MOTION_Y , step : 0.1 , } ; const MOTION_SLIDER_PROPS_Z = { axisLabel : "Z" , maxLabel : "Down" , maxValue : 1023 , minLabel : "Up" , minValue : - 1023 , type : SENSOR_LIST . MOTION_Z , step : 0.1 , } ; export const MOTION_SENSOR_PROPERTIES = { LABEL : "Motion sensor" , sliderProps : [ MOTION_SLIDER_PROPS_X , MOTION_SLIDER_PROPS_Y , MOTION_SLIDER_PROPS_Z , ] , unitLabel : "m/s2" , } ; const TEMPERATURE_SLIDER_PROPS = { axisLabel : "T" , maxLabel : "Hot" , maxValue : 125 , minLabel : "Cold" , minValue : - 55 , type : SENSOR_LIST . TEMPERATURE , step : 0.1 , } ; export const TEMPERATURE_SENSOR_PROPERTIES = { LABEL : "Temperature sensor" , sliderProps : [ TEMPERATURE_SLIDER_PROPS ] , unitLabel : "°C" , } ;