{"id":10,"date":"2016-03-07T17:40:21","date_gmt":"2016-03-07T15:40:21","guid":{"rendered":"http:\/\/fpv.team\/?page_id=10"},"modified":"2016-06-01T17:28:01","modified_gmt":"2016-06-01T15:28:01","slug":"channel-calculator","status":"publish","type":"page","link":"http:\/\/fpv.team\/en\/iranga\/channel-calculator\/","title":{"rendered":"5.8G channel calculator"},"content":{"rendered":"<p style=\"text-align: center;\"><canvas id=\"c\" width=\"1000\" height=\"720\"><\/canvas>\r\n    <script>\r\n\t\tvar canvas=document[\"\\x67\\x65\\x74\\x45\\x6C\\x65\\x6D\\x65\\x6E\\x74\\x42\\x79\\x49\\x64\"](\"\\x63\");var context=canvas[\"\\x67\\x65\\x74\\x43\\x6F\\x6E\\x74\\x65\\x78\\x74\"](\"\\x32\\x64\");var channels=[[5865,5845,5825,5805,5785,5765,5745,5725],[5733,5752,5771,5790,5809,5828,5847,5866],[5705,5685,5665,5645,5885,5905,5925,5945],[5740,5760,5780,5800,5820,5840,5860,5880],[5658,5695,5732,5769,5806,5843,5880,5917]];var bandNames=[\"\\x42\\x61\\x6E\\x64\\x20\\x41\",\"\\x42\\x61\\x6E\\x64\\x20\\x42\",\"\\x42\\x61\\x6E\\x64\\x20\\x45\",\"\\x42\\x61\\x6E\\x64\\x20\\x46\",\"\\x42\\x61\\x6E\\x64\\x20\\x52\"];var bandLabels=[\"\\x28\\x42\\x6F\\x73\\x63\\x61\\x6D\\x20\\x41\\x29\",\"\\x28\\x42\\x6F\\x73\\x63\\x61\\x6D\\x20\\x42\\x29\",\"\\x28\\x42\\x6F\\x73\\x63\\x61\\x6D\\x20\\x43\\x29\",\"\\x28\\x46\\x61\\x74\\x73\\x68\\x61\\x72\\x6B\\x29\",\"\\x28\\x52\\x61\\x63\\x65\\x62\\x61\\x6E\\x64\\x29\"];var racerNames=[\"\\x52\\x61\\x63\\x65\\x72\\x5F\\x31\",\"\\x52\\x61\\x63\\x65\\x72\\x5F\\x32\",\"\\x52\\x61\\x63\\x65\\x72\\x5F\\x33\",\"\\x52\\x61\\x63\\x65\\x72\\x5F\\x34\",\"\\x52\\x61\\x63\\x65\\x72\\x5F\\x35\"];var startX=90;var startY=100;var boxWidth=50;var boxHeight=25;var boxRadius=5;var racerBand=[-1,-1,-1,-1,-1];var racerChannel=[-1,-1,-1,-1,-1];var racerColor=[\"\\x67\\x72\\x65\\x65\\x6E\",\"\\x62\\x6C\\x75\\x65\",\"\\x70\\x75\\x72\\x70\\x6C\\x65\",\"\\x54\\x65\\x61\\x6C\",\"\\x53\\x69\\x65\\x6E\\x6E\\x61\"];var currentRacer=0;var channelSeparation=50;var channelSeparationColor=\"\\x67\\x72\\x65\\x65\\x6E\";var channelH=20;var channelHColor=\"\\x23\\x66\\x66\\x36\\x36\\x36\\x36\";var channelIMD=20;var channelIMDColor=\"\\x23\\x66\\x66\\x36\\x36\\x36\\x36\";var settingH=true;var settingIMD=true;canvas[\"\\x61\\x64\\x64\\x45\\x76\\x65\\x6E\\x74\\x4C\\x69\\x73\\x74\\x65\\x6E\\x65\\x72\"](\"\\x6D\\x6F\\x75\\x73\\x65\\x6D\\x6F\\x76\\x65\",onMouseMove,false);canvas[\"\\x61\\x64\\x64\\x45\\x76\\x65\\x6E\\x74\\x4C\\x69\\x73\\x74\\x65\\x6E\\x65\\x72\"](\"\\x63\\x6C\\x69\\x63\\x6B\",onClick,false);readParameters();drawAll();function readParameters(){if(getUrlVars()[\"\\x4E\\x31\"]){racerNames[0]=getUrlVars()[\"\\x4E\\x31\"]};if(getUrlVars()[\"\\x4E\\x32\"]){racerNames[1]=getUrlVars()[\"\\x4E\\x32\"]};if(getUrlVars()[\"\\x4E\\x33\"]){racerNames[2]=getUrlVars()[\"\\x4E\\x33\"]};if(getUrlVars()[\"\\x4E\\x34\"]){racerNames[3]=getUrlVars()[\"\\x4E\\x34\"]};if(getUrlVars()[\"\\x4E\\x35\"]){racerNames[4]=getUrlVars()[\"\\x4E\\x35\"]};if(getUrlVars()[\"\\x42\\x31\"]){racerBand[0]=(getUrlVars()[\"\\x42\\x31\"])-1};if(getUrlVars()[\"\\x42\\x32\"]){racerBand[1]=(getUrlVars()[\"\\x42\\x32\"])-1};if(getUrlVars()[\"\\x42\\x33\"]){racerBand[2]=(getUrlVars()[\"\\x42\\x33\"])-1};if(getUrlVars()[\"\\x42\\x34\"]){racerBand[3]=(getUrlVars()[\"\\x42\\x34\"])-1};if(getUrlVars()[\"\\x42\\x35\"]){racerBand[4]=(getUrlVars()[\"\\x42\\x35\"])-1};if(getUrlVars()[\"\\x43\\x31\"]){racerChannel[0]=(getUrlVars()[\"\\x43\\x31\"])-1};if(getUrlVars()[\"\\x43\\x32\"]){racerChannel[1]=(getUrlVars()[\"\\x43\\x32\"])-1};if(getUrlVars()[\"\\x43\\x33\"]){racerChannel[2]=(getUrlVars()[\"\\x43\\x33\"])-1};if(getUrlVars()[\"\\x43\\x34\"]){racerChannel[3]=(getUrlVars()[\"\\x43\\x34\"])-1};if(getUrlVars()[\"\\x43\\x35\"]){racerChannel[4]=(getUrlVars()[\"\\x43\\x35\"])-1}}function drawAll(){context[\"\\x63\\x6C\\x65\\x61\\x72\\x52\\x65\\x63\\x74\"](0,0,canvas[\"\\x77\\x69\\x64\\x74\\x68\"],canvas[\"\\x68\\x65\\x69\\x67\\x68\\x74\"]);context[\"\\x73\\x68\\x61\\x64\\x6F\\x77\\x43\\x6F\\x6C\\x6F\\x72\"]=\"\\x23\\x62\\x33\\x62\\x33\\x62\\x33\";context[\"\\x73\\x68\\x61\\x64\\x6F\\x77\\x4F\\x66\\x66\\x73\\x65\\x74\\x58\"]=1;context[\"\\x73\\x68\\x61\\x64\\x6F\\x77\\x4F\\x66\\x66\\x73\\x65\\x74\\x59\"]=1;context[\"\\x73\\x68\\x61\\x64\\x6F\\x77\\x42\\x6C\\x75\\x72\"]=3;drawBackground();drawTable();drawSettings();for(var i=0;i<5;i++){for(var j=0;j<8;j++){if(IsChannelPossible(i,j)){drawChannel(i,j,\"\\x23\\x61\\x36\\x61\\x36\\x61\\x36\")}else {drawChannel(i,j,\"\\x23\\x66\\x66\\x36\\x36\\x36\\x36\")}}};drawRacers()}function drawBackground(){context[\"\\x73\\x61\\x76\\x65\"]();context[\"\\x73\\x74\\x72\\x6F\\x6B\\x65\\x53\\x74\\x79\\x6C\\x65\"]=\"\\x23\\x32\\x36\\x32\\x36\\x32\\x36\";context[\"\\x73\\x65\\x74\\x4C\\x69\\x6E\\x65\\x44\\x61\\x73\\x68\"]([2]);context[\"\\x62\\x65\\x67\\x69\\x6E\\x50\\x61\\x74\\x68\"]();for(var i=1;i<6;i++){context[\"\\x6D\\x6F\\x76\\x65\\x54\\x6F\"](0,startY*i);context[\"\\x6C\\x69\\x6E\\x65\\x54\\x6F\"](canvas[\"\\x77\\x69\\x64\\x74\\x68\"],startY*i)};context[\"\\x73\\x74\\x72\\x6F\\x6B\\x65\"]();context[\"\\x62\\x65\\x67\\x69\\x6E\\x50\\x61\\x74\\x68\"]();context[\"\\x72\\x65\\x63\\x74\"](0,50,1000,20);context[\"\\x72\\x65\\x63\\x74\"](0,550,1000,20);context[\"\\x66\\x69\\x6C\\x6C\\x53\\x74\\x79\\x6C\\x65\"]=\"\\x23\\x62\\x33\\x62\\x33\\x62\\x33\";context[\"\\x66\\x69\\x6C\\x6C\"]();context[\"\\x73\\x68\\x61\\x64\\x6F\\x77\\x43\\x6F\\x6C\\x6F\\x72\"]=\"\\x23\\x62\\x33\\x62\\x33\\x62\\x33\";context[\"\\x74\\x65\\x78\\x74\\x41\\x6C\\x69\\x67\\x6E\"]=\"\\x6C\\x65\\x66\\x74\";context[\"\\x66\\x6F\\x6E\\x74\"]=\"\\x42\\x6F\\x6C\\x64\\x20\\x31\\x30\\x70\\x74\\x20\\x56\\x65\\x72\\x64\\x65\\x6E\\x61\";context[\"\\x66\\x69\\x6C\\x6C\\x53\\x74\\x79\\x6C\\x65\"]=\"\\x23\\x32\\x36\\x32\\x36\\x32\\x36\";for(var i=0;i<5;i++){context[\"\\x66\\x69\\x6C\\x6C\\x54\\x65\\x78\\x74\"](bandNames[i],5,95+100*i)};context[\"\\x66\\x6F\\x6E\\x74\"]=\"\\x49\\x74\\x61\\x6C\\x69\\x63\\x20\\x38\\x70\\x74\\x20\\x56\\x65\\x72\\x64\\x65\\x6E\\x61\";context[\"\\x66\\x69\\x6C\\x6C\\x53\\x74\\x79\\x6C\\x65\"]=\"\\x23\\x32\\x36\\x32\\x36\\x32\\x36\";for(var i=0;i<5;i++){context[\"\\x66\\x69\\x6C\\x6C\\x54\\x65\\x78\\x74\"](bandLabels[i],5,113+100*i)};context[\"\\x72\\x65\\x73\\x74\\x6F\\x72\\x65\"]()}function drawSettings(){context[\"\\x73\\x61\\x76\\x65\"]();context[\"\\x66\\x6F\\x6E\\x74\"]=\"\\x31\\x30\\x70\\x74\\x20\\x56\\x65\\x72\\x64\\x65\\x6E\\x61\";context[\"\\x74\\x65\\x78\\x74\\x41\\x6C\\x69\\x67\\x6E\"]=\"\\x63\\x65\\x6E\\x74\\x65\\x72\";context[\"\\x62\\x65\\x67\\x69\\x6E\\x50\\x61\\x74\\x68\"]();context[\"\\x72\\x65\\x63\\x74\"](570,610,30,20);context[\"\\x72\\x65\\x63\\x74\"](570,630,30,20);context[\"\\x72\\x65\\x63\\x74\"](570,650,30,20);context[\"\\x72\\x65\\x63\\x74\"](600,610,240,20);context[\"\\x72\\x65\\x63\\x74\"](600,630,240,20);context[\"\\x72\\x65\\x63\\x74\"](600,650,240,20);context[\"\\x72\\x65\\x63\\x74\"](840,610,100,20);context[\"\\x72\\x65\\x63\\x74\"](840,630,100,20);context[\"\\x72\\x65\\x63\\x74\"](840,650,100,20);context[\"\\x73\\x68\\x61\\x64\\x6F\\x77\\x43\\x6F\\x6C\\x6F\\x72\"]=\"\\x23\\x62\\x33\\x62\\x33\\x62\\x33\";context[\"\\x66\\x69\\x6C\\x6C\\x53\\x74\\x79\\x6C\\x65\"]=\"\\x23\\x62\\x33\\x62\\x33\\x62\\x33\";context[\"\\x66\\x69\\x6C\\x6C\"]();context[\"\\x73\\x74\\x72\\x6F\\x6B\\x65\\x53\\x74\\x79\\x6C\\x65\"]=\"\\x77\\x68\\x69\\x74\\x65\";context[\"\\x73\\x74\\x72\\x6F\\x6B\\x65\"]();context[\"\\x62\\x65\\x67\\x69\\x6E\\x50\\x61\\x74\\x68\"]();context[\"\\x73\\x68\\x61\\x64\\x6F\\x77\\x43\\x6F\\x6C\\x6F\\x72\"]=\"\\x23\\x34\\x30\\x34\\x30\\x34\\x30\";context[\"\\x66\\x69\\x6C\\x6C\\x53\\x74\\x79\\x6C\\x65\"]=\"\\x23\\x65\\x36\\x65\\x36\\x65\\x36\";context[\"\\x72\\x65\\x63\\x74\"](580,615,10,10);context[\"\\x72\\x65\\x63\\x74\"](580,635,10,10);context[\"\\x72\\x65\\x63\\x74\"](580,655,10,10);context[\"\\x66\\x69\\x6C\\x6C\"]();context[\"\\x62\\x65\\x67\\x69\\x6E\\x50\\x61\\x74\\x68\"]();context[\"\\x73\\x68\\x61\\x64\\x6F\\x77\\x43\\x6F\\x6C\\x6F\\x72\"]=\"\\x23\\x62\\x33\\x62\\x33\\x62\\x33\";context[\"\\x66\\x69\\x6C\\x6C\\x53\\x74\\x79\\x6C\\x65\"]=\"\\x23\\x34\\x30\\x34\\x30\\x34\\x30\";context[\"\\x72\\x65\\x63\\x74\"](582,617,6,6);context[\"\\x66\\x69\\x6C\\x6C\"]();if(settingH){context[\"\\x62\\x65\\x67\\x69\\x6E\\x50\\x61\\x74\\x68\"]();context[\"\\x73\\x68\\x61\\x64\\x6F\\x77\\x43\\x6F\\x6C\\x6F\\x72\"]=\"\\x23\\x62\\x33\\x62\\x33\\x62\\x33\";context[\"\\x66\\x69\\x6C\\x6C\\x53\\x74\\x79\\x6C\\x65\"]=\"\\x23\\x34\\x30\\x34\\x30\\x34\\x30\";context[\"\\x72\\x65\\x63\\x74\"](582,637,6,6);context[\"\\x66\\x69\\x6C\\x6C\"]()};if(settingIMD){context[\"\\x62\\x65\\x67\\x69\\x6E\\x50\\x61\\x74\\x68\"]();context[\"\\x73\\x68\\x61\\x64\\x6F\\x77\\x43\\x6F\\x6C\\x6F\\x72\"]=\"\\x23\\x62\\x33\\x62\\x33\\x62\\x33\";context[\"\\x66\\x69\\x6C\\x6C\\x53\\x74\\x79\\x6C\\x65\"]=\"\\x23\\x34\\x30\\x34\\x30\\x34\\x30\";context[\"\\x72\\x65\\x63\\x74\"](582,657,6,6);context[\"\\x66\\x69\\x6C\\x6C\"]()};context[\"\\x73\\x68\\x61\\x64\\x6F\\x77\\x43\\x6F\\x6C\\x6F\\x72\"]=\"\\x23\\x34\\x30\\x34\\x30\\x34\\x30\";context[\"\\x66\\x69\\x6C\\x6C\\x53\\x74\\x79\\x6C\\x65\"]=\"\\x77\\x68\\x69\\x74\\x65\";context[\"\\x66\\x69\\x6C\\x6C\\x54\\x65\\x78\\x74\"](\"\\x43\\x68\\x61\\x6E\\x6E\\x65\\x6C\\x20\\x53\\x65\\x70\\x61\\x72\\x61\\x74\\x69\\x6F\\x6E\",720,623);context[\"\\x66\\x69\\x6C\\x6C\\x54\\x65\\x78\\x74\"](\"\\x31\\x39\\x30\\x20\\x4D\\x68\\x7A\\x20\\x61\\x6E\\x64\\x20\\x32\\x34\\x30\\x20\\x4D\\x68\\x7A\\x20\\x48\\x61\\x72\\x6D\\x6F\\x6E\\x69\\x63\\x73\\x20\\x28\\x48\\x29\",720,643);context[\"\\x66\\x69\\x6C\\x6C\\x54\\x65\\x78\\x74\"](\"\\x49\\x6E\\x74\\x65\\x72\\x6D\\x6F\\x64\\x75\\x6C\\x61\\x74\\x69\\x6F\\x6E\\x20\\x44\\x69\\x73\\x74\\x6F\\x72\\x74\\x69\\x6F\\x6E\\x20\\x28\\x49\\x4D\\x44\\x29\",720,663);context[\"\\x66\\x69\\x6C\\x6C\\x54\\x65\\x78\\x74\"](channelSeparation+\"\\x20\\x4D\\x68\\x7A\",890,624);context[\"\\x66\\x69\\x6C\\x6C\\x54\\x65\\x78\\x74\"](channelH+\"\\x20\\x4D\\x68\\x7A\",890,644);context[\"\\x66\\x69\\x6C\\x6C\\x54\\x65\\x78\\x74\"](channelIMD+\"\\x20\\x4D\\x68\\x7A\",890,664);context[\"\\x74\\x65\\x78\\x74\\x41\\x6C\\x69\\x67\\x6E\"]=\"\\x6C\\x65\\x66\\x74\";drawTriangle(850,620,\"\\x23\\x65\\x36\\x65\\x36\\x65\\x36\",true);drawTriangle(850,640,\"\\x23\\x65\\x36\\x65\\x36\\x65\\x36\",true);drawTriangle(850,660,\"\\x23\\x65\\x36\\x65\\x36\\x65\\x36\",true);drawTriangle(924,620,\"\\x23\\x65\\x36\\x65\\x36\\x65\\x36\",false);drawTriangle(924,640,\"\\x23\\x65\\x36\\x65\\x36\\x65\\x36\",false);drawTriangle(924,660,\"\\x23\\x65\\x36\\x65\\x36\\x65\\x36\",false);context[\"\\x72\\x65\\x73\\x74\\x6F\\x72\\x65\"]()}function drawTable(){context[\"\\x73\\x61\\x76\\x65\"]();context[\"\\x66\\x6F\\x6E\\x74\"]=\"\\x31\\x30\\x70\\x74\\x20\\x56\\x65\\x72\\x64\\x65\\x6E\\x61\";context[\"\\x74\\x65\\x78\\x74\\x41\\x6C\\x69\\x67\\x6E\"]=\"\\x63\\x65\\x6E\\x74\\x65\\x72\";for(var i=0;i<5;i++){context[\"\\x62\\x65\\x67\\x69\\x6E\\x50\\x61\\x74\\x68\"]();context[\"\\x72\\x65\\x63\\x74\"](1,590+20*i,120,20);context[\"\\x73\\x68\\x61\\x64\\x6F\\x77\\x43\\x6F\\x6C\\x6F\\x72\"]=\"\\x23\\x62\\x33\\x62\\x33\\x62\\x33\";if(racerBand[i]!=-1&&racerChannel[i]!= -1){context[\"\\x66\\x69\\x6C\\x6C\\x53\\x74\\x79\\x6C\\x65\"]=racerColor[i]}else {context[\"\\x66\\x69\\x6C\\x6C\\x53\\x74\\x79\\x6C\\x65\"]=\"\\x23\\x62\\x33\\x62\\x33\\x62\\x33\"};context[\"\\x66\\x69\\x6C\\x6C\"]();context[\"\\x73\\x74\\x72\\x6F\\x6B\\x65\\x53\\x74\\x79\\x6C\\x65\"]=\"\\x77\\x68\\x69\\x74\\x65\";context[\"\\x73\\x74\\x72\\x6F\\x6B\\x65\"]();context[\"\\x62\\x65\\x67\\x69\\x6E\\x50\\x61\\x74\\x68\"]();context[\"\\x72\\x65\\x63\\x74\"](121,590+20*i,120,20);context[\"\\x72\\x65\\x63\\x74\"](241,590+20*i,120,20);context[\"\\x72\\x65\\x63\\x74\"](361,590+20*i,120,20);context[\"\\x67\\x6C\\x6F\\x62\\x61\\x6C\\x41\\x6C\\x70\\x68\\x61\"]=0.5;if(racerBand[i]!=-1&&racerChannel[i]!= -1){context[\"\\x66\\x69\\x6C\\x6C\\x53\\x74\\x79\\x6C\\x65\"]=racerColor[i]}else {context[\"\\x66\\x69\\x6C\\x6C\\x53\\x74\\x79\\x6C\\x65\"]=\"\\x23\\x62\\x33\\x62\\x33\\x62\\x33\"};context[\"\\x66\\x69\\x6C\\x6C\"]();context[\"\\x67\\x6C\\x6F\\x62\\x61\\x6C\\x41\\x6C\\x70\\x68\\x61\"]=1.0;context[\"\\x73\\x74\\x72\\x6F\\x6B\\x65\\x53\\x74\\x79\\x6C\\x65\"]=\"\\x77\\x68\\x69\\x74\\x65\";context[\"\\x73\\x74\\x72\\x6F\\x6B\\x65\"]();context[\"\\x73\\x68\\x61\\x64\\x6F\\x77\\x43\\x6F\\x6C\\x6F\\x72\"]=\"\\x23\\x34\\x30\\x34\\x30\\x34\\x30\";context[\"\\x66\\x69\\x6C\\x6C\\x53\\x74\\x79\\x6C\\x65\"]=\"\\x77\\x68\\x69\\x74\\x65\";context[\"\\x66\\x69\\x6C\\x6C\\x54\\x65\\x78\\x74\"](racerNames[i],60,603+20*i);if(racerBand[i]!= -1){context[\"\\x66\\x69\\x6C\\x6C\\x54\\x65\\x78\\x74\"](bandNames[racerBand[i]],180,603+20*i);context[\"\\x66\\x69\\x6C\\x6C\\x54\\x65\\x78\\x74\"](\"\\x43\\x48\"+(racerChannel[i]+1),300,603+20*i);context[\"\\x66\\x69\\x6C\\x6C\\x54\\x65\\x78\\x74\"](channels[racerBand[i]][racerChannel[i]]+\"\\x20\\x4D\\x68\\x7A\",420,603+20*i)}else {context[\"\\x66\\x69\\x6C\\x6C\\x54\\x65\\x78\\x74\"](\"\\x2D\",180,603+20*i);context[\"\\x66\\x69\\x6C\\x6C\\x54\\x65\\x78\\x74\"](\"\\x2D\",300,603+20*i);context[\"\\x66\\x69\\x6C\\x6C\\x54\\x65\\x78\\x74\"](\"\\x2D\",420,603+20*i)}};context[\"\\x72\\x65\\x73\\x74\\x6F\\x72\\x65\"]()}function drawRacers(){for(var i=0;i<5;i++){if(racerBand[i]!=-1&&racerChannel[i]!= -1){drawRacer(racerBand[i],racerChannel[i],racerColor[i],i+1,false);drawChannel(racerBand[i],racerChannel[i],racerColor[i]);if(settingIMD){drawIMD(racerBand[i],racerChannel[i],channelIMDColor)};if(settingH){drawHarmonics(racerBand[i],racerChannel[i],channelHColor)}}}}function drawRacer(band,channel,color,number,bMove){context[\"\\x73\\x61\\x76\\x65\"]();var x=startX+(channels[band][channel]-5645)*2.9;var xMin=startX+(channels[band][channel]-5645-channelSeparation\/2)*2.9;var xMax=channelSeparation*2.9;context[\"\\x67\\x6C\\x6F\\x62\\x61\\x6C\\x41\\x6C\\x70\\x68\\x61\"]=0.1;context[\"\\x62\\x65\\x67\\x69\\x6E\\x50\\x61\\x74\\x68\"]();context[\"\\x72\\x65\\x63\\x74\"](xMin,50,xMax,520);context[\"\\x66\\x69\\x6C\\x6C\\x53\\x74\\x79\\x6C\\x65\"]=racerColor[number-1];context[\"\\x66\\x69\\x6C\\x6C\"]();context[\"\\x67\\x6C\\x6F\\x62\\x61\\x6C\\x41\\x6C\\x70\\x68\\x61\"]=1.0;if(!bMove){context[\"\\x66\\x69\\x6C\\x6C\\x53\\x74\\x79\\x6C\\x65\"]=color;context[\"\\x62\\x65\\x67\\x69\\x6E\\x50\\x61\\x74\\x68\"]();context[\"\\x72\\x65\\x63\\x74\"](xMin,50,xMax,20);context[\"\\x72\\x65\\x63\\x74\"](xMin,550,xMax,20);context[\"\\x66\\x69\\x6C\\x6C\"]()};context[\"\\x73\\x68\\x61\\x64\\x6F\\x77\\x43\\x6F\\x6C\\x6F\\x72\"]=\"\\x23\\x34\\x30\\x34\\x30\\x34\\x30\";context[\"\\x66\\x6F\\x6E\\x74\"]=\"\\x31\\x30\\x70\\x74\\x20\\x56\\x65\\x72\\x64\\x65\\x6E\\x61\";context[\"\\x74\\x65\\x78\\x74\\x41\\x6C\\x69\\x67\\x6E\"]=\"\\x63\\x65\\x6E\\x74\\x65\\x72\";context[\"\\x66\\x69\\x6C\\x6C\\x53\\x74\\x79\\x6C\\x65\"]=\"\\x77\\x68\\x69\\x74\\x65\";context[\"\\x66\\x69\\x6C\\x6C\\x54\\x65\\x78\\x74\"](racerNames[number-1],x,65);context[\"\\x66\\x69\\x6C\\x6C\\x54\\x65\\x78\\x74\"](racerNames[number-1],x,565);context[\"\\x72\\x65\\x73\\x74\\x6F\\x72\\x65\"]()}function drawIMD(band,channel,color){context[\"\\x73\\x61\\x76\\x65\"]();context[\"\\x73\\x68\\x61\\x64\\x6F\\x77\\x4F\\x66\\x66\\x73\\x65\\x74\\x58\"]=0;context[\"\\x73\\x68\\x61\\x64\\x6F\\x77\\x4F\\x66\\x66\\x73\\x65\\x74\\x59\"]=0;context[\"\\x73\\x68\\x61\\x64\\x6F\\x77\\x42\\x6C\\x75\\x72\"]=0;context[\"\\x73\\x65\\x74\\x4C\\x69\\x6E\\x65\\x44\\x61\\x73\\x68\"]([3]);context[\"\\x73\\x74\\x72\\x6F\\x6B\\x65\\x53\\x74\\x79\\x6C\\x65\"]=color;context[\"\\x6C\\x69\\x6E\\x65\\x57\\x69\\x64\\x74\\x68\"]=2;for(var i=0;i<5;i++){if(racerBand[i]==-1||racerChannel[i]== -1){continue};if(racerBand[i]==band&&racerChannel[i]==channel){continue};var xIMDa=startX+(2*channels[band][channel]-channels[racerBand[i]][racerChannel[i]]-5645)*2.9;var xIMDb=startX+(2*channels[racerBand[i]][racerChannel[i]]-channels[band][channel]-5645)*2.9;context[\"\\x62\\x65\\x67\\x69\\x6E\\x50\\x61\\x74\\x68\"]();if(xIMDa>60&&xIMDa<canvas[\"\\x77\\x69\\x64\\x74\\x68\"]){context[\"\\x6D\\x6F\\x76\\x65\\x54\\x6F\"](xIMDa,70);context[\"\\x6C\\x69\\x6E\\x65\\x54\\x6F\"](xIMDa,550)};if(xIMDb>60&&xIMDb<canvas[\"\\x77\\x69\\x64\\x74\\x68\"]){context[\"\\x6D\\x6F\\x76\\x65\\x54\\x6F\"](xIMDb,70);context[\"\\x6C\\x69\\x6E\\x65\\x54\\x6F\"](xIMDb,550)};context[\"\\x73\\x74\\x72\\x6F\\x6B\\x65\"]()};context[\"\\x72\\x65\\x73\\x74\\x6F\\x72\\x65\"]()}function drawHarmonics(band,channel,color){context[\"\\x73\\x61\\x76\\x65\"]();context[\"\\x73\\x68\\x61\\x64\\x6F\\x77\\x4F\\x66\\x66\\x73\\x65\\x74\\x58\"]=0;context[\"\\x73\\x68\\x61\\x64\\x6F\\x77\\x4F\\x66\\x66\\x73\\x65\\x74\\x59\"]=0;context[\"\\x73\\x68\\x61\\x64\\x6F\\x77\\x42\\x6C\\x75\\x72\"]=0;context[\"\\x73\\x74\\x72\\x6F\\x6B\\x65\\x53\\x74\\x79\\x6C\\x65\"]=color;context[\"\\x73\\x65\\x74\\x4C\\x69\\x6E\\x65\\x44\\x61\\x73\\x68\"]([5]);context[\"\\x6C\\x69\\x6E\\x65\\x57\\x69\\x64\\x74\\x68\"]=2;var x190p=startX+(channels[band][channel]-5645+190)*2.9;var x240p=startX+(channels[band][channel]-5645+240)*2.9;var x190m=startX+(channels[band][channel]-5645-190)*2.9;var x240m=startX+(channels[band][channel]-5645-240)*2.9;context[\"\\x62\\x65\\x67\\x69\\x6E\\x50\\x61\\x74\\x68\"]();if(x190p<canvas[\"\\x77\\x69\\x64\\x74\\x68\"]){context[\"\\x6D\\x6F\\x76\\x65\\x54\\x6F\"](x190p,70);context[\"\\x6C\\x69\\x6E\\x65\\x54\\x6F\"](x190p,550)};if(x240p<canvas[\"\\x77\\x69\\x64\\x74\\x68\"]){context[\"\\x6D\\x6F\\x76\\x65\\x54\\x6F\"](x240p,70);context[\"\\x6C\\x69\\x6E\\x65\\x54\\x6F\"](x240p,550)};if(x190m>60){context[\"\\x6D\\x6F\\x76\\x65\\x54\\x6F\"](x190m,70);context[\"\\x6C\\x69\\x6E\\x65\\x54\\x6F\"](x190m,550)};if(x240m>60){context[\"\\x6D\\x6F\\x76\\x65\\x54\\x6F\"](x240m,70);context[\"\\x6C\\x69\\x6E\\x65\\x54\\x6F\"](x240m,550)};context[\"\\x73\\x74\\x72\\x6F\\x6B\\x65\"]();context[\"\\x72\\x65\\x73\\x74\\x6F\\x72\\x65\"]()}function drawChannel(band,channel,color){context[\"\\x73\\x61\\x76\\x65\"]();var x=startX+(channels[band][channel]-5645)*2.9;var y=startY*(band+1);var posY=y+boxRadius*1.5;var posX=x-boxWidth\/2;context[\"\\x73\\x74\\x72\\x6F\\x6B\\x65\\x53\\x74\\x79\\x6C\\x65\"]=color;context[\"\\x66\\x69\\x6C\\x6C\\x53\\x74\\x79\\x6C\\x65\"]=color;context[\"\\x73\\x68\\x61\\x64\\x6F\\x77\\x43\\x6F\\x6C\\x6F\\x72\"]=\"\\x23\\x62\\x33\\x62\\x33\\x62\\x33\";context[\"\\x73\\x65\\x74\\x4C\\x69\\x6E\\x65\\x44\\x61\\x73\\x68\"]([0]);context[\"\\x62\\x65\\x67\\x69\\x6E\\x50\\x61\\x74\\x68\"]();context[\"\\x6D\\x6F\\x76\\x65\\x54\\x6F\"](posX+boxRadius,posY);context[\"\\x6C\\x69\\x6E\\x65\\x54\\x6F\"](posX+boxWidth\/2-boxRadius,posY);context[\"\\x6C\\x69\\x6E\\x65\\x54\\x6F\"](posX+boxWidth\/2,posY-boxRadius);context[\"\\x6C\\x69\\x6E\\x65\\x54\\x6F\"](posX+boxWidth\/2+boxRadius,posY);context[\"\\x6C\\x69\\x6E\\x65\\x54\\x6F\"](posX+boxWidth-boxRadius,posY);context[\"\\x71\\x75\\x61\\x64\\x72\\x61\\x74\\x69\\x63\\x43\\x75\\x72\\x76\\x65\\x54\\x6F\"](posX+boxWidth,posY,posX+boxWidth,posY+boxRadius);context[\"\\x6C\\x69\\x6E\\x65\\x54\\x6F\"](posX+boxWidth,posY+boxHeight-boxRadius);context[\"\\x71\\x75\\x61\\x64\\x72\\x61\\x74\\x69\\x63\\x43\\x75\\x72\\x76\\x65\\x54\\x6F\"](posX+boxWidth,posY+boxHeight,posX+boxWidth-boxRadius,posY+boxHeight);context[\"\\x6C\\x69\\x6E\\x65\\x54\\x6F\"](posX+boxRadius,posY+boxHeight);context[\"\\x71\\x75\\x61\\x64\\x72\\x61\\x74\\x69\\x63\\x43\\x75\\x72\\x76\\x65\\x54\\x6F\"](posX,posY+boxHeight,posX,posY+boxHeight-boxRadius);context[\"\\x6C\\x69\\x6E\\x65\\x54\\x6F\"](posX,posY+boxRadius);context[\"\\x71\\x75\\x61\\x64\\x72\\x61\\x74\\x69\\x63\\x43\\x75\\x72\\x76\\x65\\x54\\x6F\"](posX,posY,posX+boxRadius,posY);context[\"\\x63\\x6C\\x6F\\x73\\x65\\x50\\x61\\x74\\x68\"]();context[\"\\x73\\x74\\x72\\x6F\\x6B\\x65\"]();context[\"\\x66\\x69\\x6C\\x6C\"]();context[\"\\x73\\x68\\x61\\x64\\x6F\\x77\\x43\\x6F\\x6C\\x6F\\x72\"]=\"\\x23\\x34\\x30\\x34\\x30\\x34\\x30\";context[\"\\x66\\x6F\\x6E\\x74\"]=\"\\x31\\x30\\x70\\x74\\x20\\x56\\x65\\x72\\x64\\x65\\x6E\\x61\";context[\"\\x66\\x69\\x6C\\x6C\\x53\\x74\\x79\\x6C\\x65\"]=\"\\x77\\x68\\x69\\x74\\x65\";context[\"\\x66\\x69\\x6C\\x6C\\x54\\x65\\x78\\x74\"](channels[band][channel],posX+11,posY+17);context[\"\\x73\\x68\\x61\\x64\\x6F\\x77\\x43\\x6F\\x6C\\x6F\\x72\"]=\"\\x23\\x62\\x33\\x62\\x33\\x62\\x33\";context[\"\\x66\\x6F\\x6E\\x74\"]=\"\\x31\\x30\\x70\\x74\\x20\\x56\\x65\\x72\\x64\\x65\\x6E\\x61\";context[\"\\x66\\x69\\x6C\\x6C\\x53\\x74\\x79\\x6C\\x65\"]=\"\\x67\\x72\\x65\\x79\";context[\"\\x66\\x69\\x6C\\x6C\\x54\\x65\\x78\\x74\"](\"\\x43\\x48\"+(channel+1),posX+12,posY-17);context[\"\\x72\\x65\\x73\\x74\\x6F\\x72\\x65\"]()}function drawTriangle(x,y,color,left){context[\"\\x73\\x61\\x76\\x65\"]();context[\"\\x73\\x74\\x72\\x6F\\x6B\\x65\\x53\\x74\\x79\\x6C\\x65\"]=color;context[\"\\x66\\x69\\x6C\\x6C\\x53\\x74\\x79\\x6C\\x65\"]=color;context[\"\\x62\\x65\\x67\\x69\\x6E\\x50\\x61\\x74\\x68\"]();if(left){context[\"\\x6D\\x6F\\x76\\x65\\x54\\x6F\"](x+5,y+5);context[\"\\x6C\\x69\\x6E\\x65\\x54\\x6F\"](x+5,y-5);context[\"\\x6C\\x69\\x6E\\x65\\x54\\x6F\"](x,y);context[\"\\x6C\\x69\\x6E\\x65\\x54\\x6F\"](x+5,y+5)}else {context[\"\\x6D\\x6F\\x76\\x65\\x54\\x6F\"](x,y+5);context[\"\\x6C\\x69\\x6E\\x65\\x54\\x6F\"](x,y-5);context[\"\\x6C\\x69\\x6E\\x65\\x54\\x6F\"](x+5,y);context[\"\\x6C\\x69\\x6E\\x65\\x54\\x6F\"](x,y+5)};context[\"\\x63\\x6C\\x6F\\x73\\x65\\x50\\x61\\x74\\x68\"]();context[\"\\x73\\x74\\x72\\x6F\\x6B\\x65\"]();context[\"\\x66\\x69\\x6C\\x6C\"]();context[\"\\x72\\x65\\x73\\x74\\x6F\\x72\\x65\"]()}function getMousePos(canvas,evt){var rect=canvas[\"\\x67\\x65\\x74\\x42\\x6F\\x75\\x6E\\x64\\x69\\x6E\\x67\\x43\\x6C\\x69\\x65\\x6E\\x74\\x52\\x65\\x63\\x74\"]();return {x:evt[\"\\x63\\x6C\\x69\\x65\\x6E\\x74\\x58\"]-rect[\"\\x6C\\x65\\x66\\x74\"],y:evt[\"\\x63\\x6C\\x69\\x65\\x6E\\x74\\x59\"]-rect[\"\\x74\\x6F\\x70\"]}}function IsMouseOnChannel(mousePos,band,channel){var xMin=startX+(channels[band][channel]-5645)*2.9-boxWidth\/2;var yMin=startY*(band+1);var xMax=xMin+boxWidth;var yMax=yMin+boxHeight+boxRadius*1.5;if(mousePos[\"\\x78\"]>xMin&&mousePos[\"\\x78\"]<xMax&&mousePos[\"\\x79\"]>yMin&&mousePos[\"\\x79\"]<yMax){return true};return false}function RacerOnChannel(band,channel){for(var i=0;i<5;i++){if(racerBand[i]==band&&racerChannel[i]==channel){return i}};return -1}function IsChannelPossible(band,channel){for(var i=0;i<5;i++){if(band==racerBand[i]&&channel==racerChannel[i]){continue};if(racerBand[i]!=-1&&racerChannel[i]!= -1){if((channels[band][channel]>channels[racerBand[i]][racerChannel[i]]-channelSeparation&&channels[band][channel]<channels[racerBand[i]][racerChannel[i]]+channelSeparation)){return false};if(settingH){var h190p=channels[racerBand[i]][racerChannel[i]]+190;var h240p=channels[racerBand[i]][racerChannel[i]]+240;var h190m=channels[racerBand[i]][racerChannel[i]]-190;var h240m=channels[racerBand[i]][racerChannel[i]]-240;if((channels[band][channel]>h190p-channelH&&channels[band][channel]<h190p+channelH)){return false};if((channels[band][channel]>h240p-channelH&&channels[band][channel]<h240p+channelH)){return false};if((channels[band][channel]>h190m-channelH&&channels[band][channel]<h190m+channelH)){return false};if((channels[band][channel]>h240m-channelH&&channels[band][channel]<h240m+channelH)){return false}};if(settingIMD){for(var j=0;j<5;j++){if(racerBand[j]==-1||racerChannel[j]== -1){continue};if(racerBand[j]==racerBand[i]&&racerChannel[j]==racerChannel[i]){continue};var hIMDa=2*channels[racerBand[j]][racerChannel[j]]-channels[racerBand[i]][racerChannel[i]];var hIMDb=2*channels[racerBand[i]][racerChannel[i]]-channels[racerBand[j]][racerChannel[j]];if((channels[band][channel]>hIMDa-channelIMD&&channels[band][channel]<hIMDa+channelIMD)){return false};if((channels[band][channel]>hIMDb-channelIMD&&channels[band][channel]<hIMDb+channelIMD)){return false}}}}};return true}function onMouseMove(evt){drawAll();var mousePos=getMousePos(canvas,evt);if(mousePos[\"\\x78\"]>840&&mousePos[\"\\x78\"]<860&&mousePos[\"\\x79\"]>610&&mousePos[\"\\x79\"]<630){drawTriangle(850,620,\"\\x77\\x68\\x69\\x74\\x65\",true)};if(mousePos[\"\\x78\"]>840&&mousePos[\"\\x78\"]<860&&mousePos[\"\\x79\"]>630&&mousePos[\"\\x79\"]<650){drawTriangle(850,640,\"\\x77\\x68\\x69\\x74\\x65\",true)};if(mousePos[\"\\x78\"]>840&&mousePos[\"\\x78\"]<860&&mousePos[\"\\x79\"]>650&&mousePos[\"\\x79\"]<670){drawTriangle(850,660,\"\\x77\\x68\\x69\\x74\\x65\",true)};if(mousePos[\"\\x78\"]>914&&mousePos[\"\\x78\"]<934&&mousePos[\"\\x79\"]>610&&mousePos[\"\\x79\"]<630){drawTriangle(924,620,\"\\x77\\x68\\x69\\x74\\x65\",false)};if(mousePos[\"\\x78\"]>914&&mousePos[\"\\x78\"]<934&&mousePos[\"\\x79\"]>630&&mousePos[\"\\x79\"]<650){drawTriangle(924,640,\"\\x77\\x68\\x69\\x74\\x65\",false)};if(mousePos[\"\\x78\"]>914&&mousePos[\"\\x78\"]<934&&mousePos[\"\\x79\"]>650&&mousePos[\"\\x79\"]<670){drawTriangle(924,660,\"\\x77\\x68\\x69\\x74\\x65\",false)};if(mousePos[\"\\x78\"]>570&&mousePos[\"\\x78\"]<600&&mousePos[\"\\x79\"]>630&&mousePos[\"\\x79\"]<650){context[\"\\x62\\x65\\x67\\x69\\x6E\\x50\\x61\\x74\\x68\"]();context[\"\\x73\\x74\\x72\\x6F\\x6B\\x65\\x53\\x74\\x79\\x6C\\x65\"]=\"\\x77\\x68\\x69\\x74\\x65\";context[\"\\x72\\x65\\x63\\x74\"](580,635,10,10);context[\"\\x73\\x74\\x72\\x6F\\x6B\\x65\"]()};if(mousePos[\"\\x78\"]>570&&mousePos[\"\\x78\"]<600&&mousePos[\"\\x79\"]>650&&mousePos[\"\\x79\"]<670){context[\"\\x62\\x65\\x67\\x69\\x6E\\x50\\x61\\x74\\x68\"]();context[\"\\x73\\x74\\x72\\x6F\\x6B\\x65\\x53\\x74\\x79\\x6C\\x65\"]=\"\\x77\\x68\\x69\\x74\\x65\";context[\"\\x72\\x65\\x63\\x74\"](580,655,10,10);context[\"\\x73\\x74\\x72\\x6F\\x6B\\x65\"]()};for(var i=0;i<5;i++){for(var j=0;j<8;j++){if(IsMouseOnChannel(mousePos,i,j)&&RacerOnChannel(i,j)== -1){if(currentRacer<5&&IsChannelPossible(i,j)){drawChannel(i,j,racerColor[currentRacer]);drawRacer(i,j,racerColor[currentRacer],currentRacer+1,true);if(settingH){drawHarmonics(i,j,channelHColor)};if(settingIMD){drawIMD(i,j,channelIMDColor)}}}}}}function firstUnassignedRacer(){for(var i=0;i<5;i++){if(racerBand[i]==-1&&racerChannel[i]== -1){return i}};return 5}function onClick(evt){var mousePos=getMousePos(canvas,evt);if(mousePos[\"\\x78\"]>840&&mousePos[\"\\x78\"]<860&&mousePos[\"\\x79\"]>610&&mousePos[\"\\x79\"]<630){channelSeparation--};if(mousePos[\"\\x78\"]>840&&mousePos[\"\\x78\"]<860&&mousePos[\"\\x79\"]>630&&mousePos[\"\\x79\"]<650){channelH--};if(mousePos[\"\\x78\"]>840&&mousePos[\"\\x78\"]<860&&mousePos[\"\\x79\"]>650&&mousePos[\"\\x79\"]<670){channelIMD--};if(mousePos[\"\\x78\"]>914&&mousePos[\"\\x78\"]<934&&mousePos[\"\\x79\"]>610&&mousePos[\"\\x79\"]<630){channelSeparation++};if(mousePos[\"\\x78\"]>914&&mousePos[\"\\x78\"]<934&&mousePos[\"\\x79\"]>630&&mousePos[\"\\x79\"]<650){channelH++};if(mousePos[\"\\x78\"]>914&&mousePos[\"\\x78\"]<934&&mousePos[\"\\x79\"]>650&&mousePos[\"\\x79\"]<670){channelIMD++};if(channelSeparation<20){channelSeparation=20};if(channelSeparation>70){channelSeparation=70};if(channelH<5){channelH=5};if(channelH>50){channelH=50};if(channelIMD<5){channelIMD=5};if(channelIMD>50){channelIMD=50};if(mousePos[\"\\x78\"]>570&&mousePos[\"\\x78\"]<600&&mousePos[\"\\x79\"]>630&&mousePos[\"\\x79\"]<650){settingH= !settingH};if(mousePos[\"\\x78\"]>570&&mousePos[\"\\x78\"]<600&&mousePos[\"\\x79\"]>650&&mousePos[\"\\x79\"]<670){settingIMD= !settingIMD};for(var i=0;i<5;i++){for(var j=0;j<8;j++){if(IsMouseOnChannel(mousePos,i,j)){var racer=RacerOnChannel(i,j);if(racer!= -1){racerBand[racer]= -1;racerChannel[racer]= -1};if(racer==-1&&IsChannelPossible(i,j)){racerBand[currentRacer]=i;racerChannel[currentRacer]=j};currentRacer=firstUnassignedRacer()}}};var param=\"\\x3F\";for(var i=0;i<5;i++){if(racerBand[i]==-1&&racerChannel[i]== -1){continue};param+=\"\\x4E\"+(i+1)+\"\\x3D\"+racerNames[i]+\"\\x26\\x42\"+(i+1)+\"\\x3D\"+(racerBand[i]+1)+\"\\x26\\x43\"+(i+1)+\"\\x3D\"+(racerChannel[i]+1)+\"\\x26\"};history[\"\\x72\\x65\\x70\\x6C\\x61\\x63\\x65\\x53\\x74\\x61\\x74\\x65\"](null,null,param);for(var i=0;i<5;i++){if(!IsChannelPossible(racerBand[i],racerChannel[i])){context[\"\\x66\\x69\\x6C\\x6C\\x54\\x65\\x78\\x74\"](\"\\x52\\x20\\x20\"+i,5,5+10*i);racerBand[i]= -1;racerChannel[i]= -1;currentRacer=firstUnassignedRacer()}};drawAll()}function getUrlVars(){var vars={};var parts=window[\"\\x6C\\x6F\\x63\\x61\\x74\\x69\\x6F\\x6E\"][\"\\x68\\x72\\x65\\x66\"][\"\\x72\\x65\\x70\\x6C\\x61\\x63\\x65\"](\/[?&]+([^=&]+)=([^&]*)\/gi,function(m,key,value){vars[key]=value});return vars}\r\n\t\t\t\t\t\r\n    <\/script>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"parent":89,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"page-fullwidth.php","meta":{"footnotes":""},"class_list":["post-10","page","type-page","status-publish","hentry"],"translation":{"provider":"WPGlobus","version":"3.0.0","language":"en","enabled_languages":["lt","en"],"languages":{"lt":{"title":true,"content":true,"excerpt":false},"en":{"title":true,"content":true,"excerpt":false}}},"_links":{"self":[{"href":"http:\/\/fpv.team\/en\/wp-json\/wp\/v2\/pages\/10","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/fpv.team\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/fpv.team\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/fpv.team\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/fpv.team\/en\/wp-json\/wp\/v2\/comments?post=10"}],"version-history":[{"count":19,"href":"http:\/\/fpv.team\/en\/wp-json\/wp\/v2\/pages\/10\/revisions"}],"predecessor-version":[{"id":31,"href":"http:\/\/fpv.team\/en\/wp-json\/wp\/v2\/pages\/10\/revisions\/31"}],"up":[{"embeddable":true,"href":"http:\/\/fpv.team\/en\/wp-json\/wp\/v2\/pages\/89"}],"wp:attachment":[{"href":"http:\/\/fpv.team\/en\/wp-json\/wp\/v2\/media?parent=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}