Changes for page Analog FLS setting
Last modified by Андрей Калиновский on 2023/04/26 11:17
<
>
edited by Андрей Калиновский
on 2023/04/25 14:19
on 2023/04/25 14:19
edited by Андрей Калиновский
on 2023/04/25 14:19
on 2023/04/25 14:19
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,0 +1,1 @@ 1 +Analog FLS setting - Content
-
... ... @@ -1,32 +1,33 @@ 1 1 (% class="wikigeneratedid" id="H41D43044144244043E43943A43843443044244743843A43044344043E43243D44F44243E43F43B43843243043443B44F43E43144A43543A44243044143043D43043B43E43343E43244B43C43443044244743843A43E43C" %) 2 2 ((( 3 -Особенность аналоговых датчиков состоит в том, что при отключении и включении зажигания по параметру, с которого снимаются показания, несколько секунд поступают сообщения с ложными данными, пока не будет достигнута нужная величина. Необходимо отсечь период с ложными данными. 4 -))) 3 +A feature of analog sensors is that when the ignition is turned off and on, according to the parameter from which the readings are taken, messages with false data are received for several seconds until the desired value is reached. It is necessary to cut off the period with false data. 5 5 6 - Вслучае,еслиданныесаналоговогодатчикапоступаютпопараметру**in***или**adc***,где*номервхода,томожноиспользоватьихнапрямую.Иначенеобходимопредварительносоздатьдатчикстипом**Простой**,типомдатчика**Произвольный**,типомвхода**Аналоговый**.Указываемномервхода,покоторомупоступаютданные.Такжеуказываемпсевдоним,внашемслучае**fuel**.5 +If data from an analog sensor is received by the parameter **in** * or **adc** *, where * is the input number, then you can use them directly. Otherwise, you must first create a sensor with the type **Simple** , sensor type **Arbitrary** , input type **Analog** . Specify the number of the input through which the data is received. We also specify an alias, in our case **fuel** . 7 7 8 -[[image:image-202 20525164243-5.png]]7 +[[image:image-20230425141934-1.png]] 9 9 10 - Присозданиидатчикауровнятопливанеобходимоустановитьеготип** **как**Виртуальный**,типдатчикакак**Уровеньтоплива**,афункциюкак**Выражение**,чтопозволитнамввести**Формулу.**Типтарировкиуказатькак**Таблица**.9 +When creating a fuel level sensor, we need to set its type ** **to **Virtual** , sensor type to **Fuel Level** , and function to **Expression** , which will allow us to enter **a Formula. ** Specify the type of calibration as **Table** . 11 11 12 -[[image:image-202 20808104445-1.png]]11 +[[image:image-20230425141938-2.png]] 13 13 14 - Вформулесоздаётсяфункция,котораяпроверяетналичиедвухусловий:включенногозажиганияискорости,вышезаданной.Функцияпозволитотсечьпериод,когдаваналоговомдатчикепоступалиложныезначения.[[Справочникпо функциям>>doc:Панельуправления.Основныесправочники.Справочникфункцийипараметроввиртуальногодатчика.WebHome]].13 +The formula creates a function that checks for the presence of two conditions: the ignition is on and the speed is higher than the specified one. The function will cut off the period when false values were received in the analog sensor. [[Feature Reference>>url:https://wiki.glonasssoft.ru/bin/view/%D0%9F%D0%B0%D0%BD%D0%B5%D0%BB%D1%8C%20%D1%83%D0%BF%D1%80%D0%B0%D0%B2%D0%BB%D0%B5%D0%BD%D0%B8%D1%8F/%D0%9E%D1%81%D0%BD%D0%BE%D0%B2%D0%BD%D1%8B%D0%B5%20%D1%81%D0%BF%D1%80%D0%B0%D0%B2%D0%BE%D1%87%D0%BD%D0%B8%D0%BA%D0%B8/%D0%A1%D0%BF%D1%80%D0%B0%D0%B2%D0%BE%D1%87%D0%BD%D0%B8%D0%BA%20%D1%84%D1%83%D0%BD%D0%BA%D1%86%D0%B8%D0%B9%20%D0%B8%20%D0%BF%D0%B0%D1%80%D0%B0%D0%BC%D0%B5%D1%82%D1%80%D0%BE%D0%B2%20%D0%B2%D0%B8%D1%80%D1%82%D1%83%D0%B0%D0%BB%D1%8C%D0%BD%D0%BE%D0%B3%D0%BE%20%D0%B4%D0%B0%D1%82%D1%87%D0%B8%D0%BA%D0%B0/]] . 15 15 16 16 //if(ign and ((prev(speed)+speed)/2)>14,adc2,0)// 17 17 18 - здесь**ign**-псевдонимдатчиказажигания,**//((prev(speed)+speed)/2)>14// - **проверкаусловия,чтосредняяскоростьобъектавмеждудвумясообщениямибольше14км/ч.Средняяскоростьмеждусообщениямивычисляетсядляуменьшениявлиянияколебанийскорости,появляющаясяиз-заэкранирования,вовремястоянки. **adc2-**этопараметр,скоторогосчитываютсязначениядатчикауровнятоплива,ранеемысоздавалипроизвольныйдатчикспсевдонимом**fuel**,которыйможноиспользоватьвданнойформулевместо**adc2**.Вданнойформулеможноизменятьскорость,чемвыше,темсильнеетранспортунужноразогнаться,чтобыданныенебылиотброшены.17 +here **ign** is the alias of the ignition sensor, **//((prev(speed)+speed)/2)>14// - ** checking the condition that the average speed of the object between two messages is greater than 14 km/h. The average speed between messages is calculated to reduce the effect of speed fluctuations due to shielding while stationary. **adc2 is** the parameter from which the values of the fuel level sensor are read, earlier we created an arbitrary sensor with the alias **fuel** , which can be used in this formula instead of **adc2** . In this formula, you can change the speed, the higher, the more the vehicle needs to accelerate so that the data is not discarded. 19 19 20 - Такжевключаем**Медианнуюфильтрацию**,котораяпозволитнамсгладитьграфикиполучитьменьшескачковтоплива.Можно,какнапримере,начатьсозначения20,иизменятьвзависимостиоттогонасколькочастопоявляютсяложные скачи топлива.19 +We also enable **Median filtering** , which will allow us to smooth the graph and get fewer fuel surges. You can, as in the example, start with a value of 20, and change depending on how often false fuel surges occur. 21 21 22 - Посленастройкидатчика**Уровеньтоплива**необходимовыполнитьнастройкушаблонов**Заправка**и**Слив**.Онирасположенывовкладке**Шаблоны**.21 +After configuring the **fuel level** sensor , it is necessary to configure the **Filling** and ** Draining** templates . They are located in the **Templates** tab . 23 23 24 - Вшаблонах**Заправка**и**Слив**настройкиодинаковы.Необходимоизменитьусловие**Значениепараметра**,обведеноголубым,уменьшитьдо1с.Такимобразомдатчикбудетчувствительнееотноситьсяколебаниям.Есликакие-либозаправкинеотображаются,установитезначение0секилиудалитеданноеусловие.23 +In the **Filling ** and **Draining ** templates , the settings are the same. It is necessary to change the condition **Parameter value** , circled in blue, reduced to 1 s. Thus, the sensor will be more sensitive to vibrations. If any gas stations are not displayed, set the value to 0 sec or remove this condition. 25 25 26 -[[image:image-202 20525164243-7.png]]25 +[[image:image-20230425141943-3.png]] 27 27 28 - Напараметр,обведенныйкрасным,кликаемдваразаиоткрывается окно**Условияопределениясобытия**.Здесьудаляемсобытие**Остановка(150м)**.Этоизменениепозволитотслеживатьзаправкиисливыслучае, когда неактивно событие**Остановка(150м)**.27 +We double-click on the parameter circled in red and **the Conditions for defining an event** window opens . Here we delete the event **Stop (150m)** . This change will allow tracking fillings and drains when **the Stop (150m)** event is inactive . 29 29 30 -[[image:image-202 20525164243-8.png]]29 +[[image:image-20230425141950-5.png]] 31 31 32 32 32 +))) 33 +