LAPI-633: Added functionality to simulate only GPS
This commit is contained in:
parent
cc93d9cdcc
commit
b2caaede60
@ -16,10 +16,10 @@ accept_untrusted_certs = true
|
||||
|
||||
[settings]
|
||||
max_fails = 3
|
||||
send_voice = true
|
||||
send_gps = 'true'
|
||||
send_voice = false
|
||||
send_gps = true
|
||||
send_group_monitoring_before_each_call = 'true'
|
||||
gps_report_interval = 10000 # The interval in which the GPS is sent
|
||||
gps_report_interval = 300 # The interval in which the GPS is sent
|
||||
gps_lat_start_point = 46.217802
|
||||
gps_lng_start_point = 24.776126
|
||||
delay_between_clients = 300
|
||||
@ -32,7 +32,7 @@ testing_duration = 600 # seconds
|
||||
#]
|
||||
|
||||
ids = [
|
||||
5488
|
||||
1868
|
||||
]
|
||||
|
||||
[sounds]
|
||||
|
@ -498,7 +498,6 @@ class Asset {
|
||||
_sendGPS(callback) {
|
||||
let hub = this.hub;
|
||||
if (hub && hub.connected) {
|
||||
|
||||
let lat = this.configs.settings.gps_lat_start_point;
|
||||
let lng = this.configs.settings.gps_lng_start_point;
|
||||
|
||||
@ -521,7 +520,9 @@ class Asset {
|
||||
));
|
||||
lat = new_lat;
|
||||
lng = new_lng;
|
||||
|
||||
if (!this.configs.settings.send_voice) {
|
||||
this._start();
|
||||
}
|
||||
}, this.configs.settings.gps_report_interval);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user