<phyphox>
    <title>Barometric FastFineSmooth(2colors)</title>
    <category>Texas Instruments SensorTag</category>
    <description>Read pressure and temperature from barometric sensor of a Texas Instruments SensorTag like the CC2650 or the CC1350.
Reading interval set to minimum, 100ms (0A). High precision of pressure (0.01 hPa). Smoothed indication (gausssmooth, 20).</description>
    <icon format="string">Pc2</icon>
    <data-containers>
        <container size="0" static="false">t</container>
        <container size="1" static="false">count</container>
        <container size="1" static="false">tmax</container>
        <container size="0" static="false">pRaw</container>
        <container size="0" static="false">T2raw</container>
        <container size="0" static="false">pCal</container>
        <container size="0" static="false">T2cal</container>
        <container size="0" static="false">smooth</container>
    </data-containers>
    <input>
        <bluetooth editor:uuid="383" editor:posx="105" editor:posy="492" id="Pressure/Temperature" name="SensorTag"  mode="notification" rate="1" subscribeOnStart="false">
            <config char="F000AA44-0451-4000-B000-000000000000" conversion="hexadecimal">0A</config>
            <config char="F000AA42-0451-4000-B000-000000000000" conversion="hexadecimal">01</config>
            <output char="F000AA41-0451-4000-B000-000000000000" conversion="uInt24LittleEndian" offset="3" length="3">pRaw</output>
            <output char="F000AA41-0451-4000-B000-000000000000" conversion="int24LittleEndian" offset="0" length="3">T2raw</output>
        </bluetooth>
    </input>
    <output>
    </output>
    <analysis sleep="0"  onUserInput="false">
        <multiply editor:uuid="431" editor:posx="480.58331298828125" editor:posy="1325.3666687011719">
            <input as="factor" type="value">0.01</input>
            <input as="factor" clear="false">T2raw</input>
            <output as="product">T2cal</output>
        </multiply>
        <multiply editor:uuid="432" editor:posx="487.58331298828125" editor:posy="1043.3666687011719">
            <input as="factor" type="value">0.01</input>
            <input as="factor" clear="false">pRaw</input>
            <output as="product">pCal</output>
        </multiply>
        <gausssmooth editor:uuid="433" editor:posx="926.6500244140625" editor:posy="490.1000061035156" sigma="20">
            <input as="in" clear="false">pCal</input>
            <output as="out">smooth</output>
        </gausssmooth>
        <count editor:uuid="434" editor:posx="1012" editor:posy="641">
            <input as="buffer" clear="false">pRaw</input>
            <output as="count">count</output>
        </count>
        <formula editor:uuid="435" editor:posx="1250" editor:posy="850" formula="([1]-1)*0.1">
            <input as="in" clear="false">count</input>
            <output as="out">tmax</output>
        </formula>
        <ramp editor:uuid="436" editor:posx="1505" editor:posy="1061">
            <input as="start" type="value">0</input>
            <input as="stop">tmax</input>
            <input as="length">count</input>
            <output as="out">t</output>
        </ramp>
    </analysis>
    <views>
        <view label="Pressure/Temperature">
            <graph editor:uuid="443" editor:posx="1848.0166625976562" editor:posy="1234.4166717529297" label="Pressure" aspectRatio="2.5" style="lines" lineWidth="1" partialUpdate="true" history="1" labelX="t" labelY="Pressure" labelZ="" unitX="sec" unitY="hPa" unitZ="" logX="false" logY="false" logZ="false" xPrecision="3" yPrecision="6" zPrecision="3" scaleMinX="auto" scaleMaxX="auto" scaleMinY="auto" scaleMaxY="auto" scaleMinZ="auto" scaleMaxZ="auto" minX="0" maxX="0" minY="0" maxY="0" minZ="0" maxZ="0"  mapWidth="0"       >
                <input axis="x" color="blue">t</input>
                <input axis="y">pCal</input>
		<input axis="x" color="red">t</input>
                <input axis="y">smooth</input>
            </graph>
            <graph editor:uuid="444" editor:posx="1844.566650390625" editor:posy="1407.2333374023438" label="Temperature" aspectRatio="2.5" style="lines" lineWidth="1" color="ff7e22" partialUpdate="true" history="1" labelX="t" labelY="T2" labelZ="" unitX="sec" unitY="°C" unitZ="" logX="false" logY="false" logZ="false" xPrecision="3" yPrecision="4" zPrecision="3" scaleMinX="auto" scaleMaxX="auto" scaleMinY="auto" scaleMaxY="auto" scaleMinZ="auto" scaleMaxZ="auto" minX="0" maxX="0" minY="0" maxY="0" minZ="0" maxZ="0"  mapWidth="0"       >
                <input axis="x">t</input>
                <input axis="y">T2cal</input>
            </graph>
            <value editor:uuid="445" editor:posx="1424.9000244140625" editor:posy="492.46665954589844" label="Smooth pressure" size="2" precision="2" scientific="false" unit="hPa" factor="1" >
                <input>smooth</input>
            </value>
            <value editor:uuid="446" editor:posx="1113.2999877929688" editor:posy="1002.7999877929688" label="Pressure" size="2" precision="2" scientific="false" unit="hPa" factor="1" >
                <input>pCal</input>
            </value>
            <value editor:uuid="447" editor:posx="1126.61669921875" editor:posy="1298.9500122070312" label="Temperature" size="2" precision="2" scientific="false" unit="°C" factor="1" >
                <input>T2cal</input>
            </value>
        </view>
    </views>
    <export>
        <set name="HumidityPressure2Temperatures">
            <data name="time (sec)">t</data>
            <data name="Pressure (hPa)">pCal</data>
            <data name="Temp_P (°C)">T2cal</data>
        </set>
    </export>
</phyphox>
