Compare commits

..

No commits in common. "af82e3af81ceb92b90816c3edb66c9fb9c34ec7e" and "60f0aa2a6cf4fb856a335c06d53af8c25fa45bbf" have entirely different histories.

2 changed files with 6 additions and 4 deletions

View File

@ -19,18 +19,18 @@ gps_lat_start_point = 46.217802
gps_lng_start_point = 24.776126
[assets]
#VOICE and GPS
#VOICE
# ids = [1947]
# ids = [1947,1957]
# ids = [1947,1957,1967]
# 10 units
# ids = [1947,1957,1967,1977,1987,1997,2007,2017,2027,2037] # colinde 0-10
# 20 units
# ids = [1947,1957,1967,1977,1987,1997,2007,2017,2027,2037,2047,2057,2067,2077,2087,2097,2107,2117,2127,2137]
ids = [1947,1957,1967,1977,1987,1997,2007,2017,2027,2037,2047,2057,2067,2077,2087,2097,2107,2117,2127,2137]
# 30 units
# ids = [1947,1957,1967,1977,1987,1997,2007,2017,2027,2037,2047,2057,2067,2077,2087,2097,2107,2117,2127,2137,2147,2157,2167,2177,2187,2197,2207,2217,2227,2237]
# 50 units
ids = [1947,1957,1967,1977,1987,1997,2007,2017,2027,2037,2047,2057,2067,2077,2087,2097,2107,2117,2127,2137,2147,2157,2167,2177,2187,2197,2207,2217,2227,2237,2247,2257,2267,2277,2287,2297,2307,2317,2327,2337,2347,2357,2367,2377,2387,2397,2407,2417,2427,2437]
# ids = [1947,1957,1967,1977,1987,1997,2007,2017,2027,2037,2047,2057,2067,2077,2087,2097,2107,2117,2127,2137,2147,2157,2167,2177,2187,2197,2207,2217,2227,2237,2247,2257,2267,2277,2287,2297,2307,2317,2327,2337,2347,2357,2367,2377,2387,2397,2407,2417,2427,2437]
#GPS
# 10 units

View File

@ -11,6 +11,8 @@ class Simulator {
this.configs = configs;
this.assets = {};
// Read assets ids from configs
this.assetIds = configs.assets.ids;
@ -32,7 +34,7 @@ class Simulator {
_start() {
this.assetIds.forEach(id => {
new Asset(id, this.configs);
this.assets[id] = new Asset(id, this.configs);
});
}