Sungwoo Kim
/
HydraulicControlBoard_Rainbow_v1_2_copy
2011
Diff: main.cpp
- Revision:
- 156:f374bb098370
- Parent:
- 155:9dbc8dce3695
- Child:
- 157:a3b26117104c
--- a/main.cpp Mon Oct 12 00:34:29 2020 +0000 +++ b/main.cpp Mon Oct 12 05:36:48 2020 +0000 @@ -1,4 +1,4 @@ -//201012-1 +//201012-2 #include "mbed.h" #include "FastPWM.h" #include "INIT_HW.h" @@ -193,77 +193,77 @@ float input_NN[num_input] = { 0.0f }; const float h1[num_input][16] = { - {-0.8492984771728516f,0.9099417924880981f,0.12024858593940735f,0.545981228351593f,-1.1106514930725098f,0.9457226395606995f,-0.1628284603357315f,-0.005150910001248121f,-0.3260757327079773f,-0.712827742099762f,-0.19537952542304993f,-1.0242116451263428f,-0.3126377761363983f,-0.4866222143173218f,-0.2396446317434311f,-1.0748564004898071f}, -{-0.672598123550415f,0.6584800481796265f,-0.36603355407714844f,0.09554877132177353f,-0.8417408466339111f,0.48124250769615173f,-0.3777896761894226f,-0.016235176473855972f,-0.13373571634292603f,-0.19750408828258514f,-0.22961115837097168f,-0.6376965641975403f,0.17010805010795593f,-0.7074562311172485f,-0.1953967958688736f,-0.5506498217582703f}, -{-0.4483485519886017f,0.34817928075790405f,0.33912619948387146f,-0.39045676589012146f,-0.2757887542247772f,0.3047306537628174f,0.2676515281200409f,0.2585502862930298f,-0.20897063612937927f,0.08551584184169769f,-0.29858946800231934f,-0.37691909074783325f,-0.034444112330675125f,0.01831231266260147f,0.05209478735923767f,-0.513065755367279f}, -{-0.08198308199644089f,-0.2010560780763626f,0.3703531324863434f,0.06700243055820465f,0.11178603768348694f,-0.3979300856590271f,-0.10795548558235168f,0.608457088470459f,-0.03680473566055298f,0.4978812336921692f,0.11513403058052063f,0.31660690903663635f,-0.1676224172115326f,0.22054733335971832f,-0.27597576379776f,0.061807893216609955f}, -{0.7069430351257324f,-0.3948570191860199f,-0.004794687032699585f,-0.14202511310577393f,0.5086361765861511f,-0.4975832402706146f,0.12058994174003601f,0.38800549507141113f,-0.029777072370052338f,0.6449450254440308f,0.34986329078674316f,0.4208693504333496f,-0.05950910970568657f,0.6702831387519836f,-0.36018112301826477f,0.08313877135515213f}, -{1.2792919874191284f,-1.329975962638855f,0.20290347933769226f,-0.28504160046577454f,1.1173235177993774f,-1.1572359800338745f,0.15389427542686462f,0.25882840156555176f,-0.025503801181912422f,1.0139389038085938f,-0.20506200194358826f,1.0025477409362793f,-0.22417566180229187f,1.1668107509613037f,-0.38513508439064026f,0.4302481412887573f}, -{0.15661951899528503f,-0.09095073491334915f,-0.2331579178571701f,-0.5861133337020874f,-0.2296011745929718f,0.15582023561000824f,0.05604562163352966f,-0.6794319748878479f,0.31682249903678894f,0.31334957480430603f,0.16509030759334564f,0.3604009449481964f,-0.2074126899242401f,0.4814450740814209f,-0.14554673433303833f,0.22453908622264862f}, -{0.10004112124443054f,-0.3021745979785919f,-0.24806702136993408f,-0.06547222286462784f,-0.223054900765419f,-0.17619021236896515f,-0.16704979538917542f,-0.6810923218727112f,0.001245745923370123f,0.3383333384990692f,0.12251671403646469f,-0.03324584662914276f,0.3008471429347992f,0.24459579586982727f,0.04009982943534851f,0.4212760925292969f}, -{0.20482861995697021f,0.28756871819496155f,0.09550115466117859f,-0.47870898246765137f,-0.1096387654542923f,0.08366865664720535f,-0.06753402948379517f,-0.7364226579666138f,-0.2765253186225891f,0.5107592940330505f,-0.25273358821868896f,0.32433879375457764f,0.16932949423789978f,0.28294825553894043f,-0.2847418785095215f,0.41117802262306213f}, -{-0.09929998219013214f,-0.1364968866109848f,0.17205187678337097f,-0.1935434192419052f,0.09821620583534241f,0.28844186663627625f,-0.2786858379840851f,-0.4350501000881195f,-0.03394133225083351f,-0.33818697929382324f,0.01661299727857113f,-0.5088529586791992f,0.30430319905281067f,-0.20859365165233612f,0.3247623145580292f,0.1299620419740677f}, -{0.24080930650234222f,0.30563318729400635f,0.34649983048439026f,0.23845022916793823f,-0.15149186551570892f,0.19734467566013336f,-0.1895401030778885f,-0.35955509543418884f,-0.4259641170501709f,-0.025349216535687447f,0.34883156418800354f,-0.4635045826435089f,-0.10190600156784058f,-0.15069465339183807f,0.24870619177818298f,-0.3417206108570099f}, -{-0.5682200789451599f,-0.08445471525192261f,-0.3757385015487671f,0.049192700535058975f,-0.13675469160079956f,0.20117755234241486f,0.1429324448108673f,0.007615856826305389f,-0.16889803111553192f,0.041727371513843536f,-0.3619164824485779f,-0.14894835650920868f,0.0994650274515152f,-0.2559431791305542f,0.09779238700866699f,-0.23166526854038239f}, -{-0.1827574372291565f,-0.009826376102864742f,0.18496140837669373f,0.1817261129617691f,0.146279975771904f,0.28821292519569397f,-0.22405625879764557f,-0.15408681333065033f,-0.1897873878479004f,-0.23687532544136047f,-0.07764522731304169f,-0.4355945587158203f,0.05735225975513458f,-0.12637566030025482f,-0.2075144499540329f,-0.4271939992904663f}, -{-0.17383800446987152f,-0.034563202410936356f,0.38466766476631165f,-0.05654198303818703f,-0.2707003653049469f,-0.19788400828838348f,-0.2982172966003418f,-0.5219294428825378f,-0.1404845416545868f,-0.1646503210067749f,-0.15761259198188782f,-0.3067583739757538f,-0.31143051385879517f,-0.09045254439115524f,0.04470124840736389f,0.11851692944765091f}, -{0.1728459745645523f,-0.00703522190451622f,0.18900898098945618f,0.08381005376577377f,0.34986403584480286f,-0.16866271197795868f,0.03916636109352112f,0.04764685779809952f,0.2688429355621338f,0.164563849568367f,-0.23614686727523804f,-0.4883577525615692f,0.0853995606303215f,-0.043375782668590546f,0.062258750200271606f,0.2238379716873169f}, -{-0.01701122522354126f,-0.35623687505722046f,-0.37685394287109375f,-0.05631903558969498f,-0.10359413176774979f,-0.052469588816165924f,-0.14507901668548584f,-0.1828162670135498f,0.17396096885204315f,0.098472960293293f,-0.4172263443470001f,-0.14259591698646545f,-0.2549686133861542f,0.02150176279246807f,-0.07684260606765747f,0.27587127685546875f}, -{-0.05607142299413681f,-0.18326444923877716f,0.15568438172340393f,0.12472385168075562f,0.028769543394446373f,-0.28050854802131653f,-0.03859376907348633f,-0.11900969594717026f,-0.07300025969743729f,0.17833161354064941f,-0.3050765097141266f,0.2522740364074707f,0.11018209904432297f,0.34029421210289f,0.2742314636707306f,0.10523013770580292f}, -{-0.09820817410945892f,0.0009285397245548666f,0.19490453600883484f,-0.09818669408559799f,-0.3468706011772156f,-0.13196644186973572f,-0.336474746465683f,0.029904179275035858f,-0.39393532276153564f,0.001689919619821012f,-0.13059896230697632f,0.19046276807785034f,0.27048033475875854f,-0.10027212649583817f,-0.2561379373073578f,0.041108958423137665f}, -{-0.36399978399276733f,0.09115079790353775f,-0.2776013910770416f,0.3044928014278412f,0.33408617973327637f,-0.1356847733259201f,0.25546005368232727f,-0.34019359946250916f,-0.3901272416114807f,0.13206130266189575f,-0.3713352382183075f,0.17076872289180756f,0.08965739607810974f,0.2048226147890091f,-0.30415377020835876f,-0.47396668791770935f}, -{0.245314821600914f,0.31605231761932373f,0.1420871913433075f,-0.14755000174045563f,-0.2570189833641052f,0.09309244155883789f,-0.13263443112373352f,-0.3516319990158081f,-0.17755484580993652f,0.13453561067581177f,0.12483186274766922f,0.1766178011894226f,0.226878821849823f,0.35600408911705017f,0.13351169228553772f,0.04911954328417778f}, -{-0.21414637565612793f,-0.34188276529312134f,-0.07561364769935608f,0.23371613025665283f,-0.25377175211906433f,-0.2709762752056122f,0.14428457617759705f,0.07864826917648315f,-0.37458890676498413f,-0.13281816244125366f,-0.3584631681442261f,-0.38679075241088867f,-0.19576646387577057f,0.4250577986240387f,0.019461065530776978f,0.17940476536750793f}, -{-0.13337408006191254f,-0.552194356918335f,0.2631795108318329f,-0.45346561074256897f,0.3645413815975189f,-0.5801919102668762f,0.27224990725517273f,0.17330202460289001f,-0.08266540616750717f,0.3959578275680542f,0.06200104579329491f,-0.2999556362628937f,0.19839297235012054f,0.2461359053850174f,0.06011766195297241f,0.18188437819480896f}, + {-1.9284757375717163f,1.8916572332382202f,0.12024858593940735f,0.545981228351593f,-2.3549740314483643f,1.9310003519058228f,-0.1628284603357315f,-0.005150910001248121f,-0.3260757327079773f,-0.9433152675628662f,-0.19537952542304993f,-1.5630793571472168f,-0.3126377761363983f,-1.4833742380142212f,-0.2396446317434311f,-2.1582324504852295f}, +{-1.4291181564331055f,1.294519305229187f,-0.36603355407714844f,0.09554877132177353f,-1.6953699588775635f,1.1312505006790161f,-0.3777896761894226f,-0.016235176473855972f,-0.13373571634292603f,-0.39443638920783997f,-0.22961115837097168f,-1.0673432350158691f,0.17010805010795593f,-1.4823811054229736f,-0.1953967958688736f,-1.4026087522506714f}, +{-0.8333134055137634f,0.5866453051567078f,0.33912619948387146f,-0.39045676589012146f,-0.6861349940299988f,0.5640900135040283f,0.2676515281200409f,0.2585502862930298f,-0.20897063612937927f,-0.04583211988210678f,-0.29858946800231934f,-0.6554254293441772f,-0.034444112330675125f,-0.4966655373573303f,0.05209478735923767f,-1.0954952239990234f}, +{-0.026759011670947075f,-0.4267193675041199f,0.3703531324863434f,0.06700243055820465f,0.21827536821365356f,-0.5995405912399292f,-0.10795548558235168f,0.608457088470459f,-0.03680473566055298f,0.5041996240615845f,0.11513403058052063f,0.2774970233440399f,-0.1676224172115326f,0.04476059600710869f,-0.27597576379776f,-0.17888334393501282f}, +{1.4242593050003052f,-1.2939292192459106f,-0.004794687032699585f,-0.14202511310577393f,1.2923967838287354f,-1.3599568605422974f,0.12058994174003601f,0.38800549507141113f,-0.029777072370052338f,1.208436369895935f,0.34986329078674316f,0.958234429359436f,-0.05950910970568657f,1.1346033811569214f,-0.36018112301826477f,0.4781929850578308f}, +{2.8965675830841064f,-3.125696897506714f,0.20290347933769226f,-0.28504160046577454f,2.7703447341918945f,-2.8963518142700195f,0.15389427542686462f,0.25882840156555176f,-0.025503801181912422f,2.5359046459198f,-0.20506200194358826f,2.456850528717041f,-0.22417566180229187f,2.583265542984009f,-0.38513508439064026f,1.7685816287994385f}, +{0.3631844222545624f,-0.11182118207216263f,-0.2331579178571701f,-0.5861133337020874f,-0.07432567328214645f,0.27970293164253235f,0.05604562163352966f,-0.6794319748878479f,0.31682249903678894f,0.5862061977386475f,0.16509030759334564f,0.7059288024902344f,-0.2074126899242401f,0.4100978374481201f,-0.14554673433303833f,0.896831750869751f}, +{0.11645148694515228f,-0.12680423259735107f,-0.24806702136993408f,-0.06547222286462784f,-0.3090035021305084f,0.13880875706672668f,-0.16704979538917542f,-0.6810923218727112f,0.001245745923370123f,0.49172499775886536f,0.12251671403646469f,0.15763571858406067f,0.3008471429347992f,0.000055849901400506496f,0.04009982943534851f,0.8938968777656555f}, +{0.30339252948760986f,0.38222938776016235f,0.09550115466117859f,-0.47870898246765137f,-0.1727135181427002f,0.318401962518692f,-0.06753402948379517f,-0.7364226579666138f,-0.2765253186225891f,0.7577906847000122f,-0.25273358821868896f,0.5580661296844482f,0.16932949423789978f,0.10245563089847565f,-0.2847418785095215f,0.9463624954223633f}, +{0.06090492382645607f,-0.13177178800106049f,0.17205187678337097f,-0.1935434192419052f,0.1135651171207428f,0.4377693831920624f,-0.2786858379840851f,-0.4350501000881195f,-0.03394133225083351f,-0.3375111222267151f,0.01661299727857113f,-0.52735835313797f,0.30430319905281067f,-0.4909248948097229f,0.3247623145580292f,0.588316798210144f}, +{0.2120993584394455f,0.43778884410858154f,0.34649983048439026f,0.23845022916793823f,-0.20963875949382782f,0.46838608384132385f,-0.1895401030778885f,-0.35955509543418884f,-0.4259641170501709f,-0.8566266894340515f,0.34883156418800354f,-1.2345240116119385f,-0.10190600156784058f,-0.9097190499305725f,0.24870619177818298f,-0.34861695766448975f}, +{-0.9213741421699524f,0.31818056106567383f,-0.3757385015487671f,0.049192700535058975f,-0.3327042758464813f,0.7055673599243164f,0.1429324448108673f,0.007615856826305389f,-0.16889803111553192f,-1.8557310104370117f,-0.3619164824485779f,-1.774389624595642f,0.0994650274515152f,-1.5845634937286377f,0.09779238700866699f,-0.8607075810432434f}, +{-0.14557614922523499f,0.02737070620059967f,0.18496140837669373f,0.1817261129617691f,0.2282850742340088f,0.42097654938697815f,-0.22405625879764557f,-0.15408681333065033f,-0.1897873878479004f,-1.33224356174469f,-0.07764522731304169f,-1.4307671785354614f,0.05735225975513458f,-0.8171697854995728f,-0.2075144499540329f,-0.5572522878646851f}, +{-0.00011250346869928762f,-0.10650306195020676f,0.38466766476631165f,-0.05654198303818703f,-0.13110031187534332f,-0.2096269279718399f,-0.2982172966003418f,-0.5219294428825378f,-0.1404845416545868f,-0.7186456322669983f,-0.15761259198188782f,-0.8281324505805969f,-0.31143051385879517f,-0.33520781993865967f,0.04470124840736389f,0.20240145921707153f}, +{0.27986910939216614f,0.007717507425695658f,0.18900898098945618f,0.08381005376577377f,0.3686647415161133f,-0.15319782495498657f,0.03916636109352112f,0.04764685779809952f,0.2688429355621338f,-0.0854375883936882f,-0.23614686727523804f,-0.7030695080757141f,0.0853995606303215f,-0.05775566026568413f,0.062258750200271606f,0.2525389790534973f}, +{0.020421123132109642f,-0.2572803795337677f,-0.37685394287109375f,-0.05631903558969498f,-0.16987362504005432f,-0.008203251287341118f,-0.14507901668548584f,-0.1828162670135498f,0.17396096885204315f,0.003580685704946518f,-0.4172263443470001f,-0.14225366711616516f,-0.2549686133861542f,0.14566312730312347f,-0.07684260606765747f,0.1996752768754959f}, +{-0.027750970795750618f,-0.06660693138837814f,0.15568438172340393f,0.12472385168075562f,-0.05987756699323654f,-0.2489769458770752f,-0.03859376907348633f,-0.11900969594717026f,-0.07300025969743729f,0.23438148200511932f,-0.3050765097141266f,0.43002668023109436f,0.11018209904432297f,0.5682705640792847f,0.2742314636707306f,-0.02876431681215763f}, +{0.051046643406152725f,0.0038601900450885296f,0.19490453600883484f,-0.09818669408559799f,-0.3203401267528534f,-0.2238624095916748f,-0.336474746465683f,0.029904179275035858f,-0.39393532276153564f,0.3009941279888153f,-0.13059896230697632f,0.6088495850563049f,0.27048033475875854f,0.29623743891716003f,-0.2561379373073578f,0.0006134724826551974f}, +{-0.18030893802642822f,0.05651233717799187f,-0.2776013910770416f,0.3044928014278412f,0.41638314723968506f,-0.2739904224872589f,0.25546005368232727f,-0.34019359946250916f,-0.3901272416114807f,0.5091925859451294f,-0.3713352382183075f,0.6843410730361938f,0.08965739607810974f,0.6309531331062317f,-0.30415377020835876f,-0.5512918829917908f}, +{0.24991407990455627f,0.4429624378681183f,0.1420871913433075f,-0.14755000174045563f,-0.28017929196357727f,0.09783721715211868f,-0.13263443112373352f,-0.3516319990158081f,-0.17755484580993652f,0.30513280630111694f,0.12483186274766922f,0.5579364895820618f,0.226878821849823f,0.6015344262123108f,0.13351169228553772f,-0.32750803232192993f}, +{-0.27899882197380066f,-0.16117943823337555f,-0.07561364769935608f,0.23371613025665283f,-0.290559858083725f,-0.22249552607536316f,0.14428457617759705f,0.07864826917648315f,-0.37458890676498413f,0.09782712906599045f,-0.3584631681442261f,0.06557819992303848f,-0.19576646387577057f,0.6881380081176758f,0.019461065530776978f,-0.34176725149154663f}, +{0.08308707177639008f,-0.6704394221305847f,0.2631795108318329f,-0.45346561074256897f,0.5750449895858765f,-0.8243018388748169f,0.27224990725517273f,0.17330202460289001f,-0.08266540616750717f,1.3815675973892212f,0.06200104579329491f,0.7616981863975525f,0.19839297235012054f,1.0245716571807861f,0.06011766195297241f,-0.05140143632888794f}, }; const float h2[16][16] = { - {-0.9642000198364258f,1.343051552772522f,-0.06966331601142883f,0.09929964691400528f,-0.21907491981983185f,1.71962308883667f,-0.6432740092277527f,0.0904630720615387f,-0.43008196353912354f,-0.1415480375289917f,1.0855543613433838f,-0.24237537384033203f,0.12968102097511292f,-1.5968960523605347f,-0.9398881793022156f,0.73473060131073f}, -{0.16045331954956055f,-0.586158275604248f,0.057057321071624756f,-0.10139778256416321f,-0.35503754019737244f,-0.7619335651397705f,-0.17082005739212036f,-0.2990124225616455f,-0.33757925033569336f,0.2895788848400116f,-0.7716104388237f,-0.6531919240951538f,0.08444632589817047f,0.17077073454856873f,-0.22546739876270294f,-0.6895788908004761f}, + {-0.9642000198364258f,1.7890732288360596f,-0.06966331601142883f,0.09929964691400528f,-0.21907491981983185f,2.634411096572876f,-14.453997611999512f,-0.024229329079389572f,-0.43008196353912354f,-0.1415480375289917f,0.8865375518798828f,-0.38348379731178284f,0.12968102097511292f,-1.5587481260299683f,-1.0655688047409058f,-0.466623991727829f}, +{0.16045331954956055f,-1.373236060142517f,0.057057321071624756f,-0.10139778256416321f,-0.35503754019737244f,-1.796002745628357f,-1.3877737522125244f,-0.4160241186618805f,-0.33757925033569336f,0.2895788848400116f,-0.912059485912323f,-0.6531919240951538f,0.08444632589817047f,0.489467978477478f,-0.3456263840198517f,-1.972173810005188f}, {-0.22745239734649658f,0.003037691116333008f,-0.061119019985198975f,0.35696902871131897f,0.05568113923072815f,0.011741191148757935f,-0.20225946605205536f,-0.08465918898582458f,0.3489862382411957f,0.0687277615070343f,0.31964078545570374f,0.3004753887653351f,0.36063823103904724f,-0.42892736196517944f,0.08652284741401672f,0.027493387460708618f}, {0.02367369644343853f,-0.3221997916698456f,-0.2894435524940491f,0.3088652789592743f,0.08946844935417175f,0.20461073517799377f,-0.30286312103271484f,0.4122363030910492f,0.26211628317832947f,0.2953031361103058f,0.17855378985404968f,0.3440825045108795f,-0.5558211207389832f,-0.15224124491214752f,0.30055153369903564f,0.13030540943145752f}, -{-0.48098519444465637f,0.6531736850738525f,-0.25313520431518555f,0.22264760732650757f,0.036378175020217896f,0.47749000787734985f,-0.708697497844696f,-0.08570799231529236f,-0.024399548768997192f,-0.39465832710266113f,-0.2755904793739319f,-0.6945989727973938f,-0.14218522608280182f,-0.7226676940917969f,-0.5625969767570496f,-0.34312206506729126f}, -{0.4495331645011902f,-0.1500912755727768f,-0.3519742488861084f,0.27394503355026245f,-0.3015052080154419f,-0.9131686091423035f,-1.430025577545166f,-0.019414573907852173f,-0.23047015070915222f,0.3579089343547821f,-0.4220859110355377f,-0.2409338802099228f,-0.45946991443634033f,0.6032595038414001f,0.2848037779331207f,-0.8384043574333191f}, +{-0.48098519444465637f,-0.3082611560821533f,-0.25313520431518555f,0.22264760732650757f,0.036378175020217896f,1.3921419382095337f,-1.3254092931747437f,-0.13328106701374054f,-0.024399548768997192f,-0.39465832710266113f,-0.4529491066932678f,-0.6945989727973938f,-0.14218522608280182f,-0.2039479911327362f,-0.683351993560791f,-0.7328025102615356f}, +{0.4495331645011902f,-0.9099428653717041f,-0.3519742488861084f,0.27394503355026245f,-0.3015052080154419f,-1.1194803714752197f,-4.646605014801025f,-0.14793507754802704f,-0.23047015070915222f,0.3579089343547821f,-0.5463069677352905f,-0.38290828466415405f,-0.45946991443634033f,1.6711149215698242f,0.16763444244861603f,-2.30080509185791f}, {-0.1828227937221527f,-0.02554568648338318f,-0.3260969817638397f,0.08422836661338806f,-0.38453540205955505f,-0.25432005524635315f,0.285016268491745f,0.12387624382972717f,-0.0982072651386261f,0.13111665844917297f,-0.03692615032196045f,-0.32796353101730347f,-0.21546880900859833f,0.049302369356155396f,-0.27088475227355957f,-0.4124959409236908f}, {-0.15824732184410095f,0.3100895285606384f,0.33083590865135193f,-0.3111240565776825f,-0.14358049631118774f,-0.3204266428947449f,-0.3786042332649231f,-0.3003333508968353f,0.2600560486316681f,-0.37898191809654236f,0.3861054480075836f,-0.33435386419296265f,-0.31673234701156616f,0.31598109006881714f,0.09100812673568726f,0.11863487213850021f}, {-0.2313188761472702f,0.2215956598520279f,-0.11379697918891907f,0.10697845369577408f,0.041274964809417725f,-0.46601107716560364f,-0.10284432768821716f,0.0019084513187408447f,0.06103590130805969f,-0.38046833872795105f,-0.039307329803705215f,-0.3197441101074219f,-0.37024784088134766f,-0.18803510069847107f,-0.30993136763572693f,-0.3439880609512329f}, -{-0.20020389556884766f,0.3499562442302704f,-0.13502129912376404f,-0.2152949571609497f,0.12987366318702698f,0.039842408150434494f,0.481656938791275f,-0.3632148504257202f,-0.13619378209114075f,0.16938945651054382f,-0.05184692516922951f,0.06430460512638092f,0.12637434899806976f,-0.7024967074394226f,0.055537257343530655f,-0.4547477662563324f}, +{-0.20020389556884766f,0.44617244601249695f,-0.13502129912376404f,-0.2152949571609497f,0.12987366318702698f,-0.49993792176246643f,1.706182837486267f,-0.3632148504257202f,-0.13619378209114075f,0.16938945651054382f,-0.3310936689376831f,-0.09075428545475006f,0.12637434899806976f,-0.26975783705711365f,-0.059295859187841415f,-0.4987007975578308f}, {-0.2696972191333771f,-0.029670022428035736f,0.0457797646522522f,-0.3910249173641205f,-0.03321319818496704f,-0.4363076686859131f,0.17873415350914001f,-0.20421427488327026f,-0.050184011459350586f,0.12480869889259338f,-0.2314555048942566f,0.3545852601528168f,-0.3647043704986572f,0.44268926978111267f,-0.37382790446281433f,-0.30918431282043457f}, -{0.18380744755268097f,0.3810768723487854f,0.3954955041408539f,0.2266073226928711f,0.0033026933670043945f,0.2300996333360672f,-0.20526285469532013f,-0.11795541644096375f,0.3487861454486847f,-0.32520344853401184f,0.21912433207035065f,-0.3691490590572357f,-0.1671862155199051f,-0.7035973072052002f,0.13936488330364227f,0.06390596181154251f}, +{0.18380744755268097f,0.04636167734861374f,0.3954955041408539f,0.2266073226928711f,0.0033026933670043945f,-0.27568939328193665f,0.13123606145381927f,-0.11795541644096375f,0.3487861454486847f,-0.32520344853401184f,0.040384113788604736f,-0.3691490590572357f,-0.1671862155199051f,-1.0203516483306885f,0.01607128046452999f,-0.289948433637619f}, {-0.3576127290725708f,-0.2540516257286072f,-0.15798500180244446f,0.32394546270370483f,-0.37393757700920105f,0.27878326177597046f,0.11292675137519836f,-0.2947862446308136f,-0.3764709532260895f,0.2424570620059967f,-0.16400329768657684f,-0.3137088716030121f,0.33017146587371826f,0.0033205924555659294f,-0.08937478065490723f,0.05422728881239891f}, -{-0.5424008369445801f,0.6589258313179016f,-0.2018718123435974f,0.1066291555762291f,0.07545611262321472f,0.23985128104686737f,0.14221832156181335f,-0.21416273713111877f,-0.24509364366531372f,0.19522181153297424f,0.16009680926799774f,-0.5371860265731812f,-0.42098698019981384f,-0.4947930872440338f,-0.3484362065792084f,-0.1262238770723343f}, +{-0.5424008369445801f,0.5229327082633972f,-0.2018718123435974f,0.1066291555762291f,0.07545611262321472f,-0.40232929587364197f,1.8590785264968872f,-0.23888836801052094f,-0.24509364366531372f,0.19522181153297424f,-0.10719598084688187f,-0.6909295916557312f,-0.42098698019981384f,-0.9520270228385925f,-0.4620327949523926f,-0.10240788012742996f}, {0.4138670265674591f,0.1604653298854828f,0.056746453046798706f,0.036025404930114746f,0.3228367865085602f,-0.07083973288536072f,0.018455177545547485f,0.0059362053871154785f,0.40515169501304626f,0.014240056276321411f,-0.07738298177719116f,0.1407785713672638f,-0.13024571537971497f,-0.29546058177948f,-0.11976784467697144f,-0.35825538635253906f}, -{-0.43699032068252563f,0.4844839572906494f,0.12081471085548401f,-0.18040834367275238f,0.29976895451545715f,0.05251223221421242f,-5.744298934936523f,0.31089308857917786f,-0.3893685042858124f,-0.02222958207130432f,0.03466442599892616f,-0.2911178171634674f,-0.29703089594841003f,-0.4136774241924286f,0.1451783925294876f,-0.33639493584632874f}, +{-0.43699032068252563f,1.7502877712249756f,0.12081471085548401f,-0.18040834367275238f,0.29976895451545715f,0.4937293529510498f,-3.7848267555236816f,0.17533256113529205f,-0.3893685042858124f,-0.02222958207130432f,-0.16193193197250366f,-0.36241263151168823f,-0.29703089594841003f,-1.442853569984436f,0.02945650927722454f,-3.678931951522827f}, }; const float h3[16][16] = { {-0.36079341173171997f,-0.37961024045944214f,0.2727331519126892f,-0.045185238122940063f,0.1409938931465149f,-0.3124193549156189f,0.3332441747188568f,0.3036012351512909f,-0.34058231115341187f,0.04891335964202881f,-0.11870327591896057f,0.4001283347606659f,0.36346468329429626f,-0.031135106459259987f,-0.8088640570640564f,0.7760459780693054f}, -{0.047732532024383545f,1.122470736503601f,-0.624617874622345f,-1.112703800201416f,-1.7029247283935547f,0.5000482201576233f,-0.3198729455471039f,0.06247803568840027f,0.160978764295578f,-0.364486962556839f,0.2591341733932495f,-0.4495503902435303f,-3.293431043624878f,0.755120575428009f,-0.024609113112092018f,-1.0851298570632935f}, +{0.047732532024383545f,0.9377238750457764f,-0.36005231738090515f,-1.1819045543670654f,-1.9914966821670532f,0.7524657845497131f,-0.3198729455471039f,0.06247803568840027f,-0.28471994400024414f,-0.4621644914150238f,0.1968936324119568f,-0.8229279518127441f,-3.7293035984039307f,0.4339011609554291f,-0.024609113112092018f,-1.1796332597732544f}, {0.07903262972831726f,0.2790505588054657f,-0.07798504829406738f,0.04248586297035217f,-0.1963958442211151f,-0.19260792434215546f,-0.4038352966308594f,0.015906542539596558f,0.15353140234947205f,0.030178606510162354f,0.2488909661769867f,0.13805970549583435f,-0.0816211998462677f,-0.20733052492141724f,-0.3036302626132965f,0.054825395345687866f}, {-0.30922991037368774f,-0.17104242742061615f,0.3103553056716919f,-0.3615863025188446f,-0.21604417264461517f,0.10202165693044662f,0.20021501183509827f,0.07002416253089905f,-0.25071975588798523f,-0.365601509809494f,0.13192829489707947f,0.41021624207496643f,-0.044967006891965866f,0.07644736766815186f,0.14009788632392883f,-0.011317851953208447f}, {-0.39607733488082886f,-0.05481579899787903f,0.1976260244846344f,0.022423356771469116f,0.16892847418785095f,-0.27518749237060547f,0.16012099385261536f,0.3626593053340912f,-0.08640444278717041f,-0.11053556203842163f,-0.10529157519340515f,-0.31317979097366333f,-0.1530032455921173f,-0.1336749792098999f,0.22959044575691223f,0.19986507296562195f}, -{-0.37449589371681213f,0.664101779460907f,-1.6190450191497803f,-1.2680985927581787f,-0.11343993246555328f,-0.07152222096920013f,-0.18732719123363495f,0.22384825348854065f,-0.6354295015335083f,-0.20105324685573578f,-0.24213463068008423f,0.06208771839737892f,-0.8292376399040222f,-0.1763886660337448f,0.6295005679130554f,-0.920184850692749f}, -{0.4110594093799591f,1.183567762374878f,-0.18527109920978546f,0.23897826671600342f,0.46834972500801086f,0.8559867739677429f,-0.08670487999916077f,-0.25336313247680664f,0.5982553958892822f,-0.06259563565254211f,-0.1344406008720398f,0.2251717746257782f,-0.56312495470047f,1.023147463798523f,0.3126353323459625f,-0.3391006588935852f}, -{-0.40892091393470764f,0.043769627809524536f,-0.3867315948009491f,0.25968697667121887f,0.3424709737300873f,-0.051169753074645996f,-0.23312048614025116f,-0.390264093875885f,0.28059282898902893f,-0.1559126079082489f,-0.14134526252746582f,-0.0003446042537689209f,-0.2742875814437866f,-0.36560842394828796f,0.07994696497917175f,0.005298197269439697f}, +{-0.37449589371681213f,-0.09769386053085327f,-2.746696710586548f,0.3918752670288086f,2.011580228805542f,0.10467929393053055f,-0.18732719123363495f,0.22384825348854065f,-1.2652316093444824f,-0.25718510150909424f,-0.7171128392219543f,-0.2979877293109894f,2.280244827270508f,-1.876320719718933f,0.6295005679130554f,-0.920184850692749f}, +{0.4110594093799591f,1.0050017833709717f,-0.1761099249124527f,-0.07333908975124359f,0.4117847681045532f,1.0778168439865112f,-0.08670487999916077f,-0.25336313247680664f,0.06240573897957802f,-0.06259563565254211f,-0.1344406008720398f,0.21062831580638885f,-0.591813862323761f,0.7322618961334229f,0.3126353323459625f,-0.3391006588935852f}, +{-0.40892091393470764f,0.043769627809524536f,-0.3832945227622986f,0.2632719576358795f,0.3424709737300873f,-0.05411461368203163f,-0.23312048614025116f,-0.390264093875885f,0.28059282898902893f,-0.1559126079082489f,-0.14134526252746582f,-0.0003446042537689209f,-0.2742875814437866f,-0.36560842394828796f,0.07994696497917175f,0.005298197269439697f}, {0.10697010159492493f,-0.12228584289550781f,-0.37870171666145325f,0.21184906363487244f,-0.37222859263420105f,-0.17138728499412537f,-0.1382003128528595f,0.3493293821811676f,-0.360889196395874f,-0.3875247836112976f,0.42142823338508606f,-0.3482915461063385f,-0.3289247751235962f,-0.2186824083328247f,0.09620395302772522f,-0.06898030638694763f}, {0.2847062647342682f,0.018552124500274658f,0.11435768008232117f,0.36562982201576233f,-0.047046810388565063f,0.30447837710380554f,0.2430230677127838f,0.2909286320209503f,-0.2802048921585083f,0.18043199181556702f,0.41849127411842346f,-0.287167489528656f,0.24394884705543518f,-0.14084559679031372f,-0.10168051719665527f,0.010465055704116821f}, -{0.15459725260734558f,0.29588302969932556f,0.021936722099781036f,-0.4330016076564789f,-0.2723066210746765f,0.044726040214300156f,-0.08742031455039978f,0.05785742402076721f,-0.1713423728942871f,-0.365364134311676f,0.004663276020437479f,-0.30447322130203247f,-0.2910298705101013f,-0.2773756980895996f,0.3341991901397705f,0.13116025924682617f}, -{-0.408692330121994f,0.12047936022281647f,-0.029836419969797134f,0.06642091274261475f,-0.056933991611003876f,-0.10314364731311798f,0.03285527229309082f,0.38763079047203064f,-0.20705322921276093f,-0.25883403420448303f,0.12809070944786072f,0.03996849060058594f,-0.5866727232933044f,-0.17112480103969574f,-0.25140365958213806f,0.185969278216362f}, +{0.15459725260734558f,0.27601176500320435f,0.021936722099781036f,-0.4330016076564789f,-0.2723066210746765f,0.025804312899708748f,-0.08742031455039978f,0.05785742402076721f,-0.1744382083415985f,-0.365364134311676f,0.004663276020437479f,-0.30447322130203247f,-0.2910298705101013f,-0.28859183192253113f,0.3341991901397705f,0.13116025924682617f}, +{-0.408692330121994f,0.12047936022281647f,-0.14102019369602203f,-0.03441958501935005f,-0.056933991611003876f,0.0031521914061158895f,0.03285527229309082f,0.38763079047203064f,-0.20705322921276093f,-0.25883403420448303f,0.12809070944786072f,0.03996849060058594f,-0.5866727232933044f,-0.17112480103969574f,-0.25140365958213806f,0.185969278216362f}, {-0.2991822361946106f,0.16573359072208405f,0.10651422291994095f,-0.05932474136352539f,0.2603442370891571f,0.04720616713166237f,-0.11253207921981812f,0.34576353430747986f,0.04814547300338745f,-0.35770976543426514f,-0.044228196144104004f,-0.36229726672172546f,0.19220085442066193f,-0.31166696548461914f,0.29107141494750977f,-0.09926263242959976f}, -{-0.2675279378890991f,-0.2350405901670456f,0.313805490732193f,0.41810116171836853f,-0.19775700569152832f,-0.34699633717536926f,-0.32875844836235046f,-0.31893211603164673f,-0.6228004693984985f,-0.6480187773704529f,-0.5199958086013794f,-0.5213960409164429f,-0.11256730556488037f,-0.5176361799240112f,0.1850929856300354f,0.24172839522361755f}, -{-0.015470266342163086f,-0.6028173565864563f,0.7139843106269836f,0.565295934677124f,0.41700321435928345f,-0.6924205422401428f,0.05196094512939453f,-0.008358269929885864f,-0.44527438282966614f,-0.38441595435142517f,0.13179203867912292f,-0.11511552333831787f,0.5869813561439514f,-0.3824767768383026f,-0.1713346540927887f,-0.04788174107670784f}, -{0.1863725483417511f,0.1452990174293518f,-0.29230234026908875f,-0.937971830368042f,0.30705341696739197f,-0.046191416680812836f,0.04860696196556091f,0.17769548296928406f,-0.21911637485027313f,0.19530586898326874f,-0.3942420482635498f,0.19592127203941345f,0.15968672931194305f,0.0622314028441906f,-0.12126956880092621f,-0.2643684148788452f}, +{-0.2675279378890991f,-0.7027630805969238f,-0.0465799942612648f,0.6069967746734619f,-0.6543746590614319f,0.10425875335931778f,-0.32875844836235046f,-0.31893211603164673f,-0.9891188144683838f,-0.7473343014717102f,-0.4644247591495514f,-0.6956433653831482f,-1.4085837602615356f,-0.46587327122688293f,0.1850929856300354f,0.2097223401069641f}, +{-0.015470266342163086f,-0.45996442437171936f,0.5679937601089478f,0.41968950629234314f,0.41700321435928345f,-0.5484344363212585f,0.05196094512939453f,-0.008358269929885864f,-0.38073283433914185f,-0.38441595435142517f,0.13179203867912292f,-0.11511552333831787f,0.5869813561439514f,-0.2456529140472412f,-0.1713346540927887f,-0.04788174107670784f}, +{0.1863725483417511f,1.027652382850647f,-0.6260011196136475f,-0.14968091249465942f,0.48162347078323364f,0.7913253903388977f,0.04860696196556091f,0.17769548296928406f,-0.21911637485027313f,0.19530586898326874f,-0.3942420482635498f,0.19592127203941345f,0.15968672931194305f,0.8903967142105103f,-0.12126956880092621f,-0.2643684148788452f}, }; -const float hout[16] = { 0.45773375034332275f,0.5076037645339966f,-0.6031156778335571f,-0.9297167658805847f,-0.36779141426086426f,0.40702489018440247f,0.0030125975608825684f,0.15066689252853394f,0.1388959437608719f,-0.0007445760420523584f,0.10825144499540329f,-0.2560523450374603f,-0.5822726488113403f,0.2159338742494583f,0.6327763199806213f,-0.9761723279953003f }; +const float hout[16] = { 0.45773375034332275f,0.2729235589504242f,-0.37731027603149414f,-0.32933512330055237f,-0.010641058906912804f,0.2983214557170868f,0.0030125975608825684f,0.15066689252853394f,-0.12446124851703644f,0.05735517293214798f,0.12794779241085052f,-0.3938122093677521f,-0.4296848177909851f,0.1747756004333496f,0.6327763199806213f,-0.7930030226707458f }; -const float b1[16] = { 0.5636089444160461f,1.0060498714447021f,-1.7145336866378784f,0.32790324091911316f,1.043145775794983f,0.8833159804344177f,-0.058932315558195114f,0.3794618546962738f,0.5066848993301392f,-0.7948933839797974f,0.6001797914505005f,1.4424771070480347f,-0.3881424069404602f,-0.830315113067627f,-1.087764859199524f,1.1414244174957275f }; +const float b1[16] = { 0.5048338770866394f,1.1368399858474731f,-1.7145336866378784f,0.32790324091911316f,0.8744083642959595f,1.0644468069076538f,-0.058932315558195114f,0.3794618546962738f,0.5066848993301392f,-0.24974018335342407f,0.6001797914505005f,1.1314903497695923f,-0.3881424069404602f,-0.18091394007205963f,-1.087764859199524f,1.9881949424743652f }; -const float b2[16] = { -0.1441032886505127f,-0.8158493041992188f,-1.4564176797866821f,-0.5851497054100037f,-0.6939148902893066f,0.03841487318277359f,0.4496266543865204f,-0.30969977378845215f,-1.20063054561615f,-1.912178635597229f,0.0017658945871517062f,0.45096147060394287f,-0.33285990357398987f,1.9599958658218384f,0.056265752762556076f,0.7597144246101379f }; +const float b2[16] = { -0.1441032886505127f,-0.8879309892654419f,-1.4564176797866821f,-0.5851497054100037f,-0.6939148902893066f,-0.021673886105418205f,1.0555987358093262f,-0.4324702322483063f,-1.20063054561615f,-1.912178635597229f,-0.2889278531074524f,0.29600390791893005f,-0.33285990357398987f,2.090059995651245f,-0.06140650063753128f,0.4017092287540436f }; -const float b3[16] = { -1.963319182395935f,-0.22755396366119385f,0.25398433208465576f,0.2688892185688019f,0.37361857295036316f,0.7228637933731079f,-0.45353031158447266f,-0.6562485098838806f,0.3554319739341736f,0.3015795648097992f,-0.2996135950088501f,-0.09616515040397644f,0.3919917345046997f,0.2858927845954895f,-1.3354506492614746f,-0.4255044460296631f }; +const float b3[16] = { -1.963319182395935f,-0.6341220736503601f,0.8967257738113403f,1.0468417406082153f,-0.003462210763245821f,-0.34838107228279114f,-0.45353031158447266f,-0.6562485098838806f,-0.0170818492770195f,0.186463862657547f,-0.5166678428649902f,-0.4573240876197815f,3.014120101928711f,-0.0979948565363884f,-1.3354506492614746f,-0.526797354221344f }; -const float bout[1] = { -0.3180387020111084f }; +const float bout[1] = { -0.11929181218147278f }; float VALVE_POS_RAW_NN = 0.0f;