Compare commits

...

2 Commits

Author SHA1 Message Date
af82e3af81 Update config.toml 2019-10-02 12:15:34 +03:00
b673c8a3d4 Remove unused code. 2019-10-02 12:11:42 +03:00
2 changed files with 4 additions and 6 deletions

View File

@ -19,18 +19,18 @@ gps_lat_start_point = 46.217802
gps_lng_start_point = 24.776126 gps_lng_start_point = 24.776126
[assets] [assets]
#VOICE #VOICE and GPS
# ids = [1947] # ids = [1947]
# ids = [1947,1957] # ids = [1947,1957]
# ids = [1947,1957,1967] # ids = [1947,1957,1967]
# 10 units # 10 units
# ids = [1947,1957,1967,1977,1987,1997,2007,2017,2027,2037] # colinde 0-10 # ids = [1947,1957,1967,1977,1987,1997,2007,2017,2027,2037] # colinde 0-10
# 20 units # 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 # 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] # 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 # 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 #GPS
# 10 units # 10 units

View File

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