|
1008 | 1008 | "sensorValueMappings": [
|
1009 | 1009 | {
|
1010 | 1010 | "name": "Is Pressed",
|
1011 |
| - "sourceValue": 0, |
1012 |
| - "type": "boolean", |
| 1011 | + "sourceValue": [0], |
| 1012 | + "type": ["boolean"], |
1013 | 1013 | "requiredMode": "TOUCH",
|
1014 | 1014 | "description": [
|
1015 | 1015 | "A boolean indicating whether the current touch sensor is being",
|
|
1069 | 1069 | "sensorValueMappings": [
|
1070 | 1070 | {
|
1071 | 1071 | "name": "Reflected Light Intensity",
|
1072 |
| - "sourceValue": 0, |
1073 |
| - "type": "int", |
| 1072 | + "sourceValue": [0], |
| 1073 | + "type": ["int"], |
1074 | 1074 | "requiredMode": "COL-REFLECT",
|
1075 | 1075 | "description": [
|
1076 | 1076 | "Reflected light intensity as a percentage. Light on sensor is red."
|
1077 | 1077 | ]
|
1078 | 1078 | },
|
1079 | 1079 | {
|
1080 | 1080 | "name": "Ambient Light Intensity",
|
1081 |
| - "sourceValue": 0, |
1082 |
| - "type": "int", |
| 1081 | + "sourceValue": [0], |
| 1082 | + "type": ["int"], |
1083 | 1083 | "requiredMode": "COL-AMBIENT",
|
1084 | 1084 | "description": [
|
1085 | 1085 | "Ambient light intensity. Light on sensor is dimly lit blue."
|
1086 | 1086 | ]
|
1087 | 1087 | },
|
1088 | 1088 | {
|
1089 | 1089 | "name": "Color",
|
1090 |
| - "sourceValue": 0, |
1091 |
| - "type": "int", |
| 1090 | + "sourceValue": [0], |
| 1091 | + "type": ["int"], |
1092 | 1092 | "requiredMode": "COL-COLOR",
|
1093 | 1093 | "description": [
|
1094 | 1094 | "Color detected by the sensor, categorized by overall value.",
|
|
1104 | 1104 | },
|
1105 | 1105 | {
|
1106 | 1106 | "name": "Red",
|
1107 |
| - "sourceValue": 0, |
1108 |
| - "type": "int", |
| 1107 | + "sourceValue": [0], |
| 1108 | + "type": ["int"], |
1109 | 1109 | "requiredMode": "RGB-RAW",
|
1110 | 1110 | "description": [
|
1111 | 1111 | "Red component of the detected color, in the range 0-1020."
|
1112 | 1112 | ]
|
1113 | 1113 | },
|
1114 | 1114 | {
|
1115 | 1115 | "name": "Green",
|
1116 |
| - "sourceValue": 1, |
1117 |
| - "type": "int", |
| 1116 | + "sourceValue": [1], |
| 1117 | + "type": ["int"], |
1118 | 1118 | "requiredMode": "RGB-RAW",
|
1119 | 1119 | "description": [
|
1120 | 1120 | "Green component of the detected color, in the range 0-1020."
|
1121 | 1121 | ]
|
1122 | 1122 | },
|
1123 | 1123 | {
|
1124 | 1124 | "name": "Blue",
|
1125 |
| - "sourceValue": 2, |
1126 |
| - "type": "int", |
| 1125 | + "sourceValue": [2], |
| 1126 | + "type": ["int"], |
1127 | 1127 | "requiredMode": "RGB-RAW",
|
1128 | 1128 | "description": [
|
1129 | 1129 | "Blue component of the detected color, in the range 0-1020."
|
|
1177 | 1177 | "sensorValueMappings": [
|
1178 | 1178 | {
|
1179 | 1179 | "name": "Distance Centimeters",
|
1180 |
| - "sourceValue": 0, |
1181 |
| - "type": "float", |
| 1180 | + "sourceValue": [0], |
| 1181 | + "type": ["float"], |
1182 | 1182 | "requiredMode": "US-DIST-CM",
|
1183 | 1183 | "description": [
|
1184 | 1184 | "Measurement of the distance detected by the sensor,",
|
|
1187 | 1187 | },
|
1188 | 1188 | {
|
1189 | 1189 | "name": "Distance Inches",
|
1190 |
| - "sourceValue": 0, |
1191 |
| - "type": "float", |
| 1190 | + "sourceValue": [0], |
| 1191 | + "type": ["float"], |
1192 | 1192 | "requiredMode": "US-DIST-IN",
|
1193 | 1193 | "description": [
|
1194 | 1194 | "Measurement of the distance detected by the sensor,",
|
|
1197 | 1197 | },
|
1198 | 1198 | {
|
1199 | 1199 | "name": "Other Sensor Present",
|
1200 |
| - "sourceValue": 0, |
1201 |
| - "type": "boolean", |
| 1200 | + "sourceValue": [0], |
| 1201 | + "type": ["boolean"], |
1202 | 1202 | "requiredMode": "US-LISTEN",
|
1203 | 1203 | "description": [
|
1204 | 1204 | "Value indicating whether another ultrasonic sensor could",
|
|
1257 | 1257 | "sensorValueMappings": [
|
1258 | 1258 | {
|
1259 | 1259 | "name": "Angle",
|
1260 |
| - "sourceValue": 0, |
1261 |
| - "type": "int", |
| 1260 | + "sourceValue": [0], |
| 1261 | + "type": ["int"], |
1262 | 1262 | "requiredMode": "GYRO-ANG",
|
1263 | 1263 | "description": [
|
1264 | 1264 | "The number of degrees that the sensor has been rotated",
|
|
1267 | 1267 | },
|
1268 | 1268 | {
|
1269 | 1269 | "name": "Rate",
|
1270 |
| - "sourceValue": 0, |
1271 |
| - "type": "int", |
| 1270 | + "sourceValue": [0], |
| 1271 | + "type": ["int"], |
1272 | 1272 | "requiredMode": "GYRO-RATE",
|
1273 | 1273 | "description": [
|
1274 | 1274 | "The rate at which the sensor is rotating, in degrees/second."
|
1275 | 1275 | ]
|
| 1276 | + }, |
| 1277 | + { |
| 1278 | + "name": "Rate and Angle", |
| 1279 | + "sourceValue": [0, 1], |
| 1280 | + "type": ["int", "int"], |
| 1281 | + "requiredMode": "GYRO-G&A", |
| 1282 | + "description": [ |
| 1283 | + "Angle (degrees) and Rotational Speed (degrees/second)." |
| 1284 | + ] |
1276 | 1285 | }
|
1277 | 1286 | ]
|
1278 | 1287 | },
|
|
1348 | 1357 | "sensorValueMappings": [
|
1349 | 1358 | {
|
1350 | 1359 | "name": "Proximity",
|
1351 |
| - "sourceValue": 0, |
1352 |
| - "type": "int", |
| 1360 | + "sourceValue": [0], |
| 1361 | + "type": ["int"], |
1353 | 1362 | "requiredMode": "IR-PROX",
|
1354 | 1363 | "description": [
|
1355 | 1364 | "A measurement of the distance between the sensor and the remote,",
|
|
1388 | 1397 | "sensorValueMappings": [
|
1389 | 1398 | {
|
1390 | 1399 | "name": "Sound Pressure",
|
1391 |
| - "sourceValue": 0, |
1392 |
| - "type": "float", |
| 1400 | + "sourceValue": [0], |
| 1401 | + "type": ["float"], |
1393 | 1402 | "requiredMode": "DB",
|
1394 | 1403 | "description": [
|
1395 | 1404 | "A measurement of the measured sound pressure level, as a",
|
|
1398 | 1407 | },
|
1399 | 1408 | {
|
1400 | 1409 | "name": "Sound Pressure Low",
|
1401 |
| - "sourceValue": 0, |
1402 |
| - "type": "float", |
| 1410 | + "sourceValue": [0], |
| 1411 | + "type": ["float"], |
1403 | 1412 | "requiredMode": "DBA",
|
1404 | 1413 | "description": [
|
1405 | 1414 | "A measurement of the measured sound pressure level, as a",
|
|
1438 | 1447 | "sensorValueMappings": [
|
1439 | 1448 | {
|
1440 | 1449 | "name": "Reflected Light Intensity",
|
1441 |
| - "sourceValue": 0, |
1442 |
| - "type": "float", |
| 1450 | + "sourceValue": [0], |
| 1451 | + "type": ["float"], |
1443 | 1452 | "requiredMode": "REFLECT",
|
1444 | 1453 | "description": [
|
1445 | 1454 | "A measurement of the reflected light intensity, as a percentage."
|
1446 | 1455 | ]
|
1447 | 1456 | },
|
1448 | 1457 | {
|
1449 | 1458 | "name": "Ambient Light Intensity",
|
1450 |
| - "sourceValue": 0, |
1451 |
| - "type": "float", |
| 1459 | + "sourceValue": [0], |
| 1460 | + "type": ["float"], |
1452 | 1461 | "requiredMode": "AMBIENT",
|
1453 | 1462 | "description": [
|
1454 | 1463 | "A measurement of the ambient light intensity, as a percentage."
|
|
0 commit comments