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]
|
[settings]
|
||||||
max_fails = 3
|
max_fails = 3
|
||||||
send_voice = true
|
send_voice = false
|
||||||
send_gps = 'true'
|
send_gps = true
|
||||||
send_group_monitoring_before_each_call = '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_lat_start_point = 46.217802
|
||||||
gps_lng_start_point = 24.776126
|
gps_lng_start_point = 24.776126
|
||||||
delay_between_clients = 300
|
delay_between_clients = 300
|
||||||
@ -32,7 +32,7 @@ testing_duration = 600 # seconds
|
|||||||
#]
|
#]
|
||||||
|
|
||||||
ids = [
|
ids = [
|
||||||
5488
|
1868
|
||||||
]
|
]
|
||||||
|
|
||||||
[sounds]
|
[sounds]
|
||||||
|
@ -498,7 +498,6 @@ class Asset {
|
|||||||
_sendGPS(callback) {
|
_sendGPS(callback) {
|
||||||
let hub = this.hub;
|
let hub = this.hub;
|
||||||
if (hub && hub.connected) {
|
if (hub && hub.connected) {
|
||||||
|
|
||||||
let lat = this.configs.settings.gps_lat_start_point;
|
let lat = this.configs.settings.gps_lat_start_point;
|
||||||
let lng = this.configs.settings.gps_lng_start_point;
|
let lng = this.configs.settings.gps_lng_start_point;
|
||||||
|
|
||||||
@ -521,7 +520,9 @@ class Asset {
|
|||||||
));
|
));
|
||||||
lat = new_lat;
|
lat = new_lat;
|
||||||
lng = new_lng;
|
lng = new_lng;
|
||||||
|
if (!this.configs.settings.send_voice) {
|
||||||
|
this._start();
|
||||||
|
}
|
||||||
}, this.configs.settings.gps_report_interval);
|
}, this.configs.settings.gps_report_interval);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user