tutorials:sensor-grids
Differences
This shows you the differences between two versions of the page.
tutorials:sensor-grids [2024/12/08 20:24] – created MH | tutorials:sensor-grids [2024/12/10 22:31] (current) – extended a bit MH | ||
---|---|---|---|
Line 60: | Line 60: | ||
{{ : | {{ : | ||
+ | |||
+ | Note: The above code works fine as long as the number of sensor nodes is moderate, e.g., below 100. The drawback of the above code it that it connects all sensor nodes to one parent, what, unfortunately, | ||
+ | |||
+ | The 'large number of sensor node save code' would look like given below: | ||
+ | <code java> | ||
+ | { | ||
+ | float xi, yi, zi; | ||
+ | } | ||
+ | for (int x=0;x<6; x++) ( | ||
+ | [Node | ||
+ | for (int y=0;y<6; y++) ( | ||
+ | [Node | ||
+ | for (int z=0;z<3; z++) ( | ||
+ | [ | ||
+ | { | ||
+ | xi =-2+0.75*x; | ||
+ | yi =-2+0.75*y; | ||
+ | zi =0.5*z; | ||
+ | } | ||
+ | Null(xi, yi, zi) SensorElement(xi, | ||
+ | ] | ||
+ | ]) | ||
+ | ]) | ||
+ | ) | ||
+ | </ | ||
+ | |||
The last thing to do in order to make really use of sensor grid is to obtain the sensed radiation for the sensor nodes and also may want to export them for further/ | The last thing to do in order to make really use of sensor grid is to obtain the sensed radiation for the sensor nodes and also may want to export them for further/ |
tutorials/sensor-grids.1733685882.txt.gz · Last modified: 2024/12/08 20:24 by MH