{"wrkspace":"<xml xmlns=\"http://www.w3.org/1999/xhtml\"><variables><variable type=\"\" id=\"U`9aA+=)r+L1tzA.)-qi\" islocal=\"false\" iscloud=\"false\" arraylength=\"0\" arraywidth=\"0\">my variable</variable><variable type=\"\" id=\";}c^ldfJ?K^?2Lu!umF~\" islocal=\"false\" iscloud=\"false\" arraylength=\"0\" arraywidth=\"0\">front_left</variable><variable type=\"\" id=\"s8vMDp8g5ZzumbQ;{=NJ\" islocal=\"false\" iscloud=\"false\" arraylength=\"0\" arraywidth=\"0\">back_left</variable><variable type=\"\" id=\"Yv!uaUjqRcQchq~;UPiT\" islocal=\"false\" iscloud=\"false\" arraylength=\"0\" arraywidth=\"0\">front_right</variable><variable type=\"\" id=\":x?5`^2qH]EMx)!W]+7y\" islocal=\"false\" iscloud=\"false\" arraylength=\"0\" arraywidth=\"0\">back_right</variable><variable type=\"\" id=\"k?]w1^02-$O~D)w_#$2:\" islocal=\"false\" iscloud=\"false\" arraylength=\"0\" arraywidth=\"0\">max_raw_value</variable><variable type=\"list\" id=\"/Z#:{.%B|4psx{6_NWHi\" islocal=\"false\" iscloud=\"false\" arraylength=\"5\" arraywidth=\"0\">maxJoystickPosition</variable></variables><block type=\"v5_events_when_started\" id=\".NsXwU_L.OuU1l7Sho$F\" x=\"1330\" y=\"-530\"><next><block type=\"v5_control_forever\" id=\"~+1N2F5YwjZ.11,gi)36\"><statement name=\"SUBSTACK\"><block type=\"v5_other_comment\" id=\"e}-l54;p26pa6GC8Xf5I\"><value name=\"COMMENT\"><shadow type=\"comment_text\" id=\"565{7CS^/Owvo}IHP?Cc\"><field name=\"comment\">Get the raw sums of appropriate joystick axes</field></shadow></value><next><block type=\"v5_variables_set_variable\" id=\"o]a#|a4GfM4!uJvNhB)^\"><field name=\"VARIABLE\" id=\";}c^ldfJ?K^?2Lu!umF~\" variabletype=\"\">front_left</field><value name=\"VALUE\"><shadow type=\"math_number\" id=\"HX[$66F-@.JK2|O3r*=:\"><field name=\"NUM\">0</field></shadow><block type=\"v5_operator_add\" id=\"VJ~tG~u?qlLFQfu4FnN7\"><value name=\"NUM1\"><shadow type=\"math_number\" id=\";{?;-?UVy[{Lw*f/k{hk\"><field name=\"NUM\"></field></shadow><block type=\"v5_sensing_position_of_controller\" id=\"bsV/,}YWdSGK5URNib2P\"><field name=\"CONTROLLER\">Controller1</field><field name=\"AXIS\">Axis3</field></block></value><value name=\"NUM2\"><shadow type=\"math_number\" id=\"zV-M@NXlBL3)1RI(TzXF\"><field name=\"NUM\"></field></shadow><block type=\"v5_operator_add\" id=\"$(wV#Pb~;e{+I./(bP?v\"><value name=\"NUM1\"><shadow type=\"math_number\" id=\"nq78)o{CTF2*zD4+eu7r\"><field name=\"NUM\"></field></shadow><block type=\"v5_sensing_position_of_controller\" id=\"n-+7KGaqKCohu^.Ja$HA\"><field name=\"CONTROLLER\">Controller1</field><field name=\"AXIS\">Axis4</field></block></value><value name=\"NUM2\"><shadow type=\"math_number\" id=\"8D!:0KcyR/(P`+Bz-s$_\"><field name=\"NUM\"></field></shadow><block type=\"v5_sensing_position_of_controller\" id=\"EF.4p@3Q[4$aJ_SfQ==?\"><field name=\"CONTROLLER\">Controller1</field><field name=\"AXIS\">Axis1</field></block></value></block></value></block></value><next><block type=\"v5_variables_set_variable\" id=\"NRaRzrtc|#_lTyN#|MZL\"><field name=\"VARIABLE\" id=\"s8vMDp8g5ZzumbQ;{=NJ\" variabletype=\"\">back_left</field><value name=\"VALUE\"><shadow type=\"math_number\" id=\"Yk^8tv@.ck3Qa%NCTx^Y\"><field name=\"NUM\">0</field></shadow><block type=\"v5_operator_subtract\" id=\"ibI^@;4@q*oRnQ1-K?+.\"><value name=\"NUM1\"><shadow type=\"math_number\" id=\"y1+?IPYSV=Y8!QbyCK*i\"><field name=\"NUM\"></field></shadow><block type=\"v5_sensing_position_of_controller\" id=\"[93#YUWmip-7=tRk;C8#\"><field name=\"CONTROLLER\">Controller1</field><field name=\"AXIS\">Axis3</field></block></value><value name=\"NUM2\"><shadow type=\"math_number\" id=\"aVz{`QD6UDiN/8`-Y39%\"><field name=\"NUM\"></field></shadow><block type=\"v5_operator_add\" id=\"k|#ql8=$cn,zA;_AM=_,\"><value name=\"NUM1\"><shadow type=\"math_number\" id=\"-H?gNH,UAdZZvalncS8o\"><field name=\"NUM\"></field></shadow><block type=\"v5_sensing_position_of_controller\" id=\"4(P$,+[Y.riT$If4?#$r\"><field name=\"CONTROLLER\">Controller1</field><field name=\"AXIS\">Axis4</field></block></value><value name=\"NUM2\"><shadow type=\"math_number\" id=\"xO*g{1H40s6kes4*x_PS\"><field name=\"NUM\"></field></shadow><block type=\"v5_sensing_position_of_controller\" id=\"!Dh5ajzo=393apkm~yZV\"><field name=\"CONTROLLER\">Controller1</field><field name=\"AXIS\">Axis1</field></block></value></block></value></block></value><next><block type=\"v5_variables_set_variable\" id=\"S,$dP1Z0|xo=PYX;qsR2\"><field name=\"VARIABLE\" id=\"Yv!uaUjqRcQchq~;UPiT\" variabletype=\"\">front_right</field><value name=\"VALUE\"><shadow type=\"math_number\" id=\"XeiM:F[t4ZT1X@1z_}go\"><field name=\"NUM\">0</field></shadow><block type=\"v5_operator_subtract\" id=\"S{=Ov%ictUIAsWI%d$:M\"><value name=\"NUM1\"><shadow type=\"math_number\" id=\"igx$ucTwkbVj:BdB;Lji\"><field name=\"NUM\"></field></shadow><block type=\"v5_sensing_position_of_controller\" id=\"S5gmeH|aRTmos*qJVeXD\"><field name=\"CONTROLLER\">Controller1</field><field name=\"AXIS\">Axis3</field></block></value><value name=\"NUM2\"><shadow type=\"math_number\" id=\"^FaIp@3dG@lPgPWmxE5?\"><field name=\"NUM\"></field></shadow><block type=\"v5_operator_subtract\" id=\"6fy18ZfpF`}D8$]i]+)=\"><value name=\"NUM1\"><shadow type=\"math_number\" id=\"D7JbwUxt])}mU6GufZ%z\"><field name=\"NUM\"></field></shadow><block type=\"v5_sensing_position_of_controller\" id=\"qCsa*LN`S*f_2}Z3_tTK\"><field name=\"CONTROLLER\">Controller1</field><field name=\"AXIS\">Axis4</field></block></value><value name=\"NUM2\"><shadow type=\"math_number\" id=\"|tUU#=T}_0%lgwsdeJZ1\"><field name=\"NUM\"></field></shadow><block type=\"v5_sensing_position_of_controller\" id=\"eaJwIQ`vtO]WW9cBgHyK\"><field name=\"CONTROLLER\">Controller1</field><field name=\"AXIS\">Axis1</field></block></value></block></value></block></value><next><block type=\"v5_variables_set_variable\" id=\"XgDWE07S=7xb7}@*DXEi\"><field name=\"VARIABLE\" id=\":x?5`^2qH]EMx)!W]+7y\" variabletype=\"\">back_right</field><value name=\"VALUE\"><shadow type=\"math_number\" id=\"eOe;cP#XYK@=k@/AW^^)\"><field name=\"NUM\">0</field></shadow><block type=\"v5_operator_add\" id=\")d]fLK6m8Ywf-uiEU/}]\"><value name=\"NUM1\"><shadow type=\"math_number\" id=\"x|lpZya)KoL([QfP:vG=\"><field name=\"NUM\"></field></shadow><block type=\"v5_sensing_position_of_controller\" id=\"dP6?RT9lx6FcSYHZV3);\"><field name=\"CONTROLLER\">Controller1</field><field name=\"AXIS\">Axis3</field></block></value><value name=\"NUM2\"><shadow type=\"math_number\" id=\"s[^+eht7aABoTxqyQF3T\"><field name=\"NUM\"></field></shadow><block type=\"v5_operator_subtract\" id=\"MvGOr~!SH{u+-woJyPB$\"><value name=\"NUM1\"><shadow type=\"math_number\" id=\"ne{CZ%X])Md0rlio!J+M\"><field name=\"NUM\"></field></shadow><block type=\"v5_sensing_position_of_controller\" id=\"qh7Yz5]~B@:WFY]J^b5C\"><field name=\"CONTROLLER\">Controller1</field><field name=\"AXIS\">Axis4</field></block></value><value name=\"NUM2\"><shadow type=\"math_number\" id=\"n=I[io`.C2+NF_R5GvBg\"><field name=\"NUM\"></field></shadow><block type=\"v5_sensing_position_of_controller\" id=\"sYF5k*I#)|K2aTTP@xEl\"><field name=\"CONTROLLER\">Controller1</field><field name=\"AXIS\">Axis1</field></block></value></block></value></block></value><next><block type=\"v5_other_comment\" id=\"[y+V_D1vW-}{K-%/9{PH\"><value name=\"COMMENT\"><shadow type=\"comment_text\" id=\"W@ycF{tGog$SS!O$28)n\"><field name=\"comment\">** Find the largest raw sum **</field></shadow></value><next><block type=\"v5_other_comment\" id=\"TOA3e2YN#*1y_D]]IROd\"><value name=\"COMMENT\"><shadow type=\"comment_text\" id=\"?MVozE~KsS,G}WagP57$\"><field name=\"comment\">Check if Front Left is the Largest, if so, set it's position to max_raw_value</field></shadow></value><next><block type=\"v5_control_if_then\" id=\"!ezWciV0yh/o{d{iTAs:\"><value name=\"CONDITION\"><block type=\"v5_operator_and\" id=\"Peg#~*|wos{`@X^}DIN?\"><value name=\"OPERAND1\"><block type=\"v5_operator_greater_than\" id=\"v6G%zglq$%2;WIu2$=H!\"><value name=\"OPERAND1\"><shadow type=\"math_number\" id=\"zEpLzZsb*c2coVgZgRH+\"><field name=\"NUM\"></field></shadow><block type=\"v5_operator_function\" id=\"rnH.fA$#fnq_{Qu9Ce^g\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"Yq=/$/#[a{I[zPszc6QF\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"B8C{G-il5-9nRH9ll@S:\"><field name=\"VARIABLE\" id=\";}c^ldfJ?K^?2Lu!umF~\" variabletype=\"\">front_left</field></block></value></block></value><value name=\"OPERAND2\"><shadow type=\"math_number\" id=\"2a8vc)Sz25fp=C9t;fa9\"><field name=\"NUM\">50</field></shadow><block type=\"v5_operator_function\" id=\"_|j}!@2ftj(HhGr!CohR\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"K]L-WDYf$LRP1Z^+qLd2\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"R!((`4}1pN}c/-GVq~Pr\"><field name=\"VARIABLE\" id=\"s8vMDp8g5ZzumbQ;{=NJ\" variabletype=\"\">back_left</field></block></value></block></value></block></value><value name=\"OPERAND2\"><block type=\"v5_operator_and\" id=\"aCfZQGo5pNYJD05yE,)g\"><value name=\"OPERAND1\"><block type=\"v5_operator_greater_than\" id=\"pAOqueK+*w-5:iJj`xBy\"><value name=\"OPERAND1\"><shadow type=\"math_number\" id=\"41pPAK{tM%rhhXyobf#6\"><field name=\"NUM\"></field></shadow><block type=\"v5_operator_function\" id=\"oVF[f;jKOxw[U]fx9X}N\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"oH3iF*Tw0*zfBve|?*RE\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"cQ4;$6cQI5*zB~.Qj]Mo\"><field name=\"VARIABLE\" id=\";}c^ldfJ?K^?2Lu!umF~\" variabletype=\"\">front_left</field></block></value></block></value><value name=\"OPERAND2\"><shadow type=\"math_number\" id=\"RkOhG#)_oZg|}48t=Ji`\"><field name=\"NUM\">50</field></shadow><block type=\"v5_operator_function\" id=\"N;WVd_WVMnp9D|?(W][^\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\".tETAwerAWK%vj|;-iq|\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"!k!Y6,6QKd[KlZ1+yp%W\"><field name=\"VARIABLE\" id=\"Yv!uaUjqRcQchq~;UPiT\" variabletype=\"\">front_right</field></block></value></block></value></block></value><value name=\"OPERAND2\"><block type=\"v5_operator_greater_than\" id=\"kaGzZI$#Q#?1?-(s)+$7\"><value name=\"OPERAND1\"><shadow type=\"math_number\" id=\"/_#0JHatDxB80d$q8f:#\"><field name=\"NUM\"></field></shadow><block type=\"v5_operator_function\" id=\"uGdPrH,cMuPr-O)QX`.x\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"c%c8|]T+Qf-zT|k~UFuG\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"PQ!H3J1m!ydrv3_b(Ca$\"><field name=\"VARIABLE\" id=\";}c^ldfJ?K^?2Lu!umF~\" variabletype=\"\">front_left</field></block></value></block></value><value name=\"OPERAND2\"><shadow type=\"math_number\" id=\"[yyO9XnOLB-lTV$r:MT`\"><field name=\"NUM\">50</field></shadow><block type=\"v5_operator_function\" id=\"7o2Nt`qAm_{Zn}@m?gAw\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\",6K[lD9SzztTHF;|g2fi\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"fmI?)a(cL*!s0p7F4u|r\"><field name=\"VARIABLE\" id=\":x?5`^2qH]EMx)!W]+7y\" variabletype=\"\">back_right</field></block></value></block></value></block></value></block></value></block></value><statement name=\"SUBSTACK\"><block type=\"v5_variables_set_variable\" id=\"NiSPAFAZlJ]|Qfi:0]vc\"><field name=\"VARIABLE\" id=\"k?]w1^02-$O~D)w_#$2:\" variabletype=\"\">max_raw_value</field><value name=\"VALUE\"><shadow type=\"math_number\" id=\"^#xDj;N$U|ylo44w#~Cp\"><field name=\"NUM\">0</field></shadow><block type=\"v5_operator_function\" id=\"$ngiM+i):=P3(hYvrVhs\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"+1VWx8U((A%G6}7cK2pS\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"_j}Jti!u+qD#4G.+fQw%\"><field name=\"VARIABLE\" id=\";}c^ldfJ?K^?2Lu!umF~\" variabletype=\"\">front_left</field></block></value></block></value></block></statement><next><block type=\"v5_other_comment\" id=\"UBi/Ek^FfRW$1rjCK,47\"><value name=\"COMMENT\"><shadow type=\"comment_text\" id=\"lV86O`;I3Va(O1523wt/\"><field name=\"comment\">Check if Back Left is the Largest, if so, set it's position to max_raw_value</field></shadow></value><next><block type=\"v5_control_if_then\" id=\"+q@ty23u[wvZC,qM0YD.\"><value name=\"CONDITION\"><block type=\"v5_operator_and\" id=\"oj]_~DXnw.^ShODvOL_u\"><value name=\"OPERAND1\"><block type=\"v5_operator_greater_than\" id=\"a]^u$H)S#]m*TotA/*=:\"><value name=\"OPERAND1\"><shadow type=\"math_number\" id=\"#fMI0/MrPT3}B?Bk?dwk\"><field name=\"NUM\"></field></shadow><block type=\"v5_operator_function\" id=\"`5X2gi[*f4/e*_01ySUq\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"^)RUJ2CSO@wWuBX$$Bga\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"08[H](^S2Fe1%nJ{:K%s\"><field name=\"VARIABLE\" id=\"s8vMDp8g5ZzumbQ;{=NJ\" variabletype=\"\">back_left</field></block></value></block></value><value name=\"OPERAND2\"><shadow type=\"math_number\" id=\"U^6(oLryscmane%.R{|3\"><field name=\"NUM\">50</field></shadow><block type=\"v5_operator_function\" id=\"Krsv{vM%HB0d+:FMlW|o\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"vJ8GNoYJw;x@IPV._jx.\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\")4(*K~Hk5lRmG+1JtUML\"><field name=\"VARIABLE\" id=\";}c^ldfJ?K^?2Lu!umF~\" variabletype=\"\">front_left</field></block></value></block></value></block></value><value name=\"OPERAND2\"><block type=\"v5_operator_and\" id=\"B1L#50@Z%T0kW/yVO7JZ\"><value name=\"OPERAND1\"><block type=\"v5_operator_greater_than\" id=\"ynl%Qq?)K=kn!P+@jDD*\"><value name=\"OPERAND1\"><shadow type=\"math_number\" id=\"E(;M#LW2fXi5Webi,3aN\"><field name=\"NUM\"></field></shadow><block type=\"v5_operator_function\" id=\"B/Ax7V#r8dubejj(i|Oa\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"`HA@ezdJbaxKS.RsnaB#\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"G}%wz=)Ob(s~DCM,a].T\"><field name=\"VARIABLE\" id=\"s8vMDp8g5ZzumbQ;{=NJ\" variabletype=\"\">back_left</field></block></value></block></value><value name=\"OPERAND2\"><shadow type=\"math_number\" id=\"CPMo3bgp]rD}tIW5`~7,\"><field name=\"NUM\">50</field></shadow><block type=\"v5_operator_function\" id=\"@C.#s-~LU9oS!f:5iCZ$\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\".2,hGlnQhlUE3#_80Dvi\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"(;!zUY?=`1wM?pkcw?-P\"><field name=\"VARIABLE\" id=\"Yv!uaUjqRcQchq~;UPiT\" variabletype=\"\">front_right</field></block></value></block></value></block></value><value name=\"OPERAND2\"><block type=\"v5_operator_greater_than\" id=\"E=!Ly5%vvQK}=?Sjy(Ra\"><value name=\"OPERAND1\"><shadow type=\"math_number\" id=\"JLSU852aU|W%K*zZN)f^\"><field name=\"NUM\"></field></shadow><block type=\"v5_operator_function\" id=\"s08UB+k/3*{w_6=.Lx=S\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"Ac/391s:NVBg.v[wIKb#\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\".#E78|m:KGDA@b|Hv{:!\"><field name=\"VARIABLE\" id=\"s8vMDp8g5ZzumbQ;{=NJ\" variabletype=\"\">back_left</field></block></value></block></value><value name=\"OPERAND2\"><shadow type=\"math_number\" id=\"R?a!g8IxuDJssr*$%[vY\"><field name=\"NUM\">50</field></shadow><block type=\"v5_operator_function\" id=\"1fp2_E8?{]L=b~oZS)`o\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"3O!Z+RFHK6cT6-kInHJE\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"{ZxLBPwG0D663!Ogz_cm\"><field name=\"VARIABLE\" id=\":x?5`^2qH]EMx)!W]+7y\" variabletype=\"\">back_right</field></block></value></block></value></block></value></block></value></block></value><statement name=\"SUBSTACK\"><block type=\"v5_variables_set_variable\" id=\"m=g*3i2uVj0+:zwpJ12-\"><field name=\"VARIABLE\" id=\"k?]w1^02-$O~D)w_#$2:\" variabletype=\"\">max_raw_value</field><value name=\"VALUE\"><shadow type=\"math_number\" id=\"n(rEDG(1L6H|U-!Z:8b!\"><field name=\"NUM\">0</field></shadow><block type=\"v5_operator_function\" id=\"_.Rs^iuX0x`h%pi;e{hp\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"tn/]TfXyLJ+$lH)TFeS;\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"2leR8PIgR5/U[*^p!0#q\"><field name=\"VARIABLE\" id=\"s8vMDp8g5ZzumbQ;{=NJ\" variabletype=\"\">back_left</field></block></value></block></value></block></statement><next><block type=\"v5_other_comment\" id=\"AQ$PSr86Gv@d?bCWkVMO\"><value name=\"COMMENT\"><shadow type=\"comment_text\" id=\":0@yPHtG.5rw35J0]M/o\"><field name=\"comment\">Check if Front Right is the Largest, if so, set it's position to max_raw_value</field></shadow></value><next><block type=\"v5_control_if_then\" id=\"#OYFs!BA[!d;yhlL~;Z{\"><value name=\"CONDITION\"><block type=\"v5_operator_and\" id=\"h|`i7#Y%ylr|zAhWWU1{\"><value name=\"OPERAND1\"><block type=\"v5_operator_greater_than\" id=\"ZKVaj}IbuK=Er{N4HerM\"><value name=\"OPERAND1\"><shadow type=\"math_number\" id=\"Z)?!0^{N@Uv}a#4Oz51S\"><field name=\"NUM\"></field></shadow><block type=\"v5_operator_function\" id=\"[xEcnB9(gw,Cqqlq]hR6\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"Fa#/g1c}~3+*`$LqCQc3\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"bSd1v3Aec^BoUdB1e=Cc\"><field name=\"VARIABLE\" id=\"Yv!uaUjqRcQchq~;UPiT\" variabletype=\"\">front_right</field></block></value></block></value><value name=\"OPERAND2\"><shadow type=\"math_number\" id=\"Z0{)6:EdB(MkEThGa={6\"><field name=\"NUM\">50</field></shadow><block type=\"v5_operator_function\" id=\"Ae4[x4i$z[EH7%z%M+;b\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"ps[Hw!SPLxmqKYn84ZFz\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"LI`UbK]z^R1*O$#B](=L\"><field name=\"VARIABLE\" id=\";}c^ldfJ?K^?2Lu!umF~\" variabletype=\"\">front_left</field></block></value></block></value></block></value><value name=\"OPERAND2\"><block type=\"v5_operator_and\" id=\"O6F.FE^A#DlFa{9#%~f-\"><value name=\"OPERAND1\"><block type=\"v5_operator_greater_than\" id=\"EslWiS~Y*.WxVw(QDeXM\"><value name=\"OPERAND1\"><shadow type=\"math_number\" id=\"0.zkYK-?v3hdM+Iso%LB\"><field name=\"NUM\"></field></shadow><block type=\"v5_operator_function\" id=\"j{B.JB]yW[W^aKaBO4v~\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"Lp/{NPdF#LfEBx(~oYUt\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"fU}tTE;MyJ6s*Sl|NUTn\"><field name=\"VARIABLE\" id=\"Yv!uaUjqRcQchq~;UPiT\" variabletype=\"\">front_right</field></block></value></block></value><value name=\"OPERAND2\"><shadow type=\"math_number\" id=\"r{7[-xi5dQ!tIh-mpr,i\"><field name=\"NUM\">50</field></shadow><block type=\"v5_operator_function\" id=\"OJm@QpUyVYC(ljs8,9WK\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"P=vrAu8p2~B_ob;V|yPV\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"r@t4Z,~bRMl!csR(ZH$P\"><field name=\"VARIABLE\" id=\"s8vMDp8g5ZzumbQ;{=NJ\" variabletype=\"\">back_left</field></block></value></block></value></block></value><value name=\"OPERAND2\"><block type=\"v5_operator_greater_than\" id=\"RYoJx{hWd5gjZoW#^LH]\"><value name=\"OPERAND1\"><shadow type=\"math_number\" id=\"F#u7C^iYjwd%!nfh=LAY\"><field name=\"NUM\"></field></shadow><block type=\"v5_operator_function\" id=\"{Y-.vGQ]}(kLmbk+x~[s\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"4dEhdf|BtQjO:b)4ymBl\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"{.94l1}m-SkVKW4dqC?G\"><field name=\"VARIABLE\" id=\"Yv!uaUjqRcQchq~;UPiT\" variabletype=\"\">front_right</field></block></value></block></value><value name=\"OPERAND2\"><shadow type=\"math_number\" id=\".]lMbb(amnkJkDNBio9[\"><field name=\"NUM\">50</field></shadow><block type=\"v5_operator_function\" id=\"U?2.a-e/wR)XKqtm03]w\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"IgB!(t!*LBJ}sOE%T4i}\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"@vR}~iyS6LsVgoX3O/Rt\"><field name=\"VARIABLE\" id=\":x?5`^2qH]EMx)!W]+7y\" variabletype=\"\">back_right</field></block></value></block></value></block></value></block></value></block></value><statement name=\"SUBSTACK\"><block type=\"v5_variables_set_variable\" id=\"x@tcz:;Gl`AO@UJ3MWS$\"><field name=\"VARIABLE\" id=\"k?]w1^02-$O~D)w_#$2:\" variabletype=\"\">max_raw_value</field><value name=\"VALUE\"><shadow type=\"math_number\" id=\"@epmIN;Rf)H,j[5C~|K)\"><field name=\"NUM\">0</field></shadow><block type=\"v5_operator_function\" id=\"d.`y#@HB=yZhWK,;:ChV\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"%XJoho5Ssac^;gROv!/2\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"gh6z[xl6^cs8HW0-DMKb\"><field name=\"VARIABLE\" id=\"Yv!uaUjqRcQchq~;UPiT\" variabletype=\"\">front_right</field></block></value></block></value></block></statement><next><block type=\"v5_other_comment\" id=\"3(dJupI{U/S](zBl~U6C\"><value name=\"COMMENT\"><shadow type=\"comment_text\" id=\"0%*tVc=#qZX3*oNf,k)?\"><field name=\"comment\">Check if Back Right is the Largest, if so, set it's position to max_raw_value</field></shadow></value><next><block type=\"v5_control_if_then\" id=\"hIm:6PVca{0%*02756uA\"><value name=\"CONDITION\"><block type=\"v5_operator_and\" id=\"48yfeh!xLt0e~h(K5dv0\"><value name=\"OPERAND1\"><block type=\"v5_operator_greater_than\" id=\"}Ng7?NpeZ^Brvm-~YUt3\"><value name=\"OPERAND1\"><shadow type=\"math_number\" id=\"~~eytvZi*P%V)@GJc!hU\"><field name=\"NUM\"></field></shadow><block type=\"v5_operator_function\" id=\"0E}Bu%#o|fMK*;aK2nK-\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"?8AL45tC=p]#kpQps;!r\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\":-y@an*CU4=;}s1dOe]I\"><field name=\"VARIABLE\" id=\":x?5`^2qH]EMx)!W]+7y\" variabletype=\"\">back_right</field></block></value></block></value><value name=\"OPERAND2\"><shadow type=\"math_number\" id=\"sYP~o4-~a#8N)_a!cO*z\"><field name=\"NUM\">50</field></shadow><block type=\"v5_operator_function\" id=\"p45VG1@@80y(_v5N8uS$\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"w(xY5,)=K-@y`A`%^%-f\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"%lq:1jw~/fw8wBU[u:98\"><field name=\"VARIABLE\" id=\";}c^ldfJ?K^?2Lu!umF~\" variabletype=\"\">front_left</field></block></value></block></value></block></value><value name=\"OPERAND2\"><block type=\"v5_operator_and\" id=\"O6b9X*p2/y/=0X.w9s++\"><value name=\"OPERAND1\"><block type=\"v5_operator_greater_than\" id=\"X=IwOeJ8#(LPl#$T}~7g\"><value name=\"OPERAND1\"><shadow type=\"math_number\" id=\"3fc06IXsx?f~JEGrUCpi\"><field name=\"NUM\"></field></shadow><block type=\"v5_operator_function\" id=\"LmHrqbjTr8B,k+87/m[e\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"r,r)zRukFpCr$Jdys+st\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\".iG;0,omBvK#,$SRVAwD\"><field name=\"VARIABLE\" id=\":x?5`^2qH]EMx)!W]+7y\" variabletype=\"\">back_right</field></block></value></block></value><value name=\"OPERAND2\"><shadow type=\"math_number\" id=\"5`R_;t;v6j,I@t4/jvaI\"><field name=\"NUM\">50</field></shadow><block type=\"v5_operator_function\" id=\"8R}ixlInUZc;!Es{~w*I\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"lsUx3`C0zfVn%4$KW8H/\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"(^E13i1-KW;2d8HnZ~Be\"><field name=\"VARIABLE\" id=\"s8vMDp8g5ZzumbQ;{=NJ\" variabletype=\"\">back_left</field></block></value></block></value></block></value><value name=\"OPERAND2\"><block type=\"v5_operator_greater_than\" id=\"Q2RdcVsX2n#2,b$~~uM-\"><value name=\"OPERAND1\"><shadow type=\"math_number\" id=\"Vc:rk[C#=Qrua]0l!5]d\"><field name=\"NUM\"></field></shadow><block type=\"v5_operator_function\" id=\"6[]G3p_c0[#zMju=U`GB\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"YmPvPt4fHrz|/,FWZYvb\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"F?_Bg_%Be5xHbI6]pm=*\"><field name=\"VARIABLE\" id=\":x?5`^2qH]EMx)!W]+7y\" variabletype=\"\">back_right</field></block></value></block></value><value name=\"OPERAND2\"><shadow type=\"math_number\" id=\"(PH-;8]nY$/*6D6|FRyX\"><field name=\"NUM\">50</field></shadow><block type=\"v5_operator_function\" id=\"(?SLmtx?chCXYK~,k*.c\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"(8yqK[fadu(Hegp.@;3,\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"VjJ8j3f8tJybAgqP5Ofz\"><field name=\"VARIABLE\" id=\"Yv!uaUjqRcQchq~;UPiT\" variabletype=\"\">front_right</field></block></value></block></value></block></value></block></value></block></value><statement name=\"SUBSTACK\"><block type=\"v5_variables_set_variable\" id=\"iTGk|VudBK-wue2}RE+`\"><field name=\"VARIABLE\" id=\"k?]w1^02-$O~D)w_#$2:\" variabletype=\"\">max_raw_value</field><value name=\"VALUE\"><shadow type=\"math_number\" id=\"Bf)9yO@Xi^oTY~,Pg1sj\"><field name=\"NUM\">0</field></shadow><block type=\"v5_operator_function\" id=\"4sWO?@M(}.GV],[wIewu\"><field name=\"OPERATOR\">abs</field><value name=\"NUM\"><shadow type=\"math_number\" id=\"^wXp^d9#:*.?`sa@gwG;\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"+]6NV*+}kLK?(41Ei[Zr\"><field name=\"VARIABLE\" id=\":x?5`^2qH]EMx)!W]+7y\" variabletype=\"\">back_right</field></block></value></block></value></block></statement><next><block type=\"v5_other_comment\" id=\"`yC9h8!:Y|k@n!=4h:ML\"><value name=\"COMMENT\"><shadow type=\"comment_text\" id=\"W1Cr^A6IWpLBnF5eq$YT\"><field name=\"comment\">Check if all Joysticks are under the threshold, then set it to the threshold</field></shadow></value><next><block type=\"v5_control_if_then\" id=\"iNLTCkx8{yowNRs1+Y:n\"><value name=\"CONDITION\"><block type=\"v5_operator_less_than\" id=\"v}mH%rtg/HmuwvXqppfA\"><value name=\"OPERAND1\"><shadow type=\"math_number\" id=\"m5WHxT_BTI9@5O#ancss\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"3Bts!|{xIZb)%^0[s}|L\"><field name=\"VARIABLE\" id=\"k?]w1^02-$O~D)w_#$2:\" variabletype=\"\">max_raw_value</field></block></value><value name=\"OPERAND2\"><shadow type=\"math_number\" id=\".N*Cudi5Ar%u8IGiJmgX\"><field name=\"NUM\">100</field></shadow></value></block></value><statement name=\"SUBSTACK\"><block type=\"v5_variables_set_variable\" id=\"kAW+Z%+X5|8XDz4SkG9[\"><field name=\"VARIABLE\" id=\"k?]w1^02-$O~D)w_#$2:\" variabletype=\"\">max_raw_value</field><value name=\"VALUE\"><shadow type=\"math_number\" id=\"Vopf8OjiT[Dj|.!:Q.)_\"><field name=\"NUM\">100</field></shadow></value></block></statement><next><block type=\"v5_other_comment\" id=\"5=}N-P0gk4d,/a/$,o2[\"><value name=\"COMMENT\"><shadow type=\"comment_text\" id=\"-y$x]pc7B7t9xXN3eK4w\"><field name=\"comment\">Scale down each value if there was one larger than 100, otherwise leave them alone</field></shadow></value><next><block type=\"v5_other_comment\" id=\"V_0=eck[B=FIGi4q2lXC\"><value name=\"COMMENT\"><shadow type=\"comment_text\" id=\"Y4r9)+=[HhP}}zx@!8^#\"><field name=\"comment\">The largest value will be scaled to 100, and the others will be reduced by the same factor</field></shadow></value><next><block type=\"v5_variables_set_variable\" id=\"{4Rt{GZ$IF8l[qi3xNFo\"><field name=\"VARIABLE\" id=\";}c^ldfJ?K^?2Lu!umF~\" variabletype=\"\">front_left</field><value name=\"VALUE\"><shadow type=\"math_number\" id=\"x!%@zC(zWbH8u18%?90h\"><field name=\"NUM\">0</field></shadow><block type=\"v5_operator_divide\" id=\"%o~v2I0N.Tds!CMVOtF=\"><value name=\"NUM1\"><shadow type=\"math_number\" id=\"LH::01tH)n$#GYfY4gy^\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"}1lD5_}@iH|CR5$yxeZh\"><field name=\"VARIABLE\" id=\";}c^ldfJ?K^?2Lu!umF~\" variabletype=\"\">front_left</field></block></value><value name=\"NUM2\"><shadow type=\"math_number\" id=\"_tWYGTu$ED*xsz1~M#qR\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"J}PXRj0%k+t-(sg}C5m~\"><field name=\"VARIABLE\" id=\"k?]w1^02-$O~D)w_#$2:\" variabletype=\"\">max_raw_value</field></block></value></block></value><next><block type=\"v5_variables_set_variable\" id=\"H~Bag5;;ZVItGMl`6*`V\"><field name=\"VARIABLE\" id=\";}c^ldfJ?K^?2Lu!umF~\" variabletype=\"\">front_left</field><value name=\"VALUE\"><shadow type=\"math_number\" id=\"aU3H0;DV_:y1WF;Qp;#[\"><field name=\"NUM\">0</field></shadow><block type=\"v5_operator_multiply\" id=\"a$O/-N]9P_(vp(gf{fUP\"><value name=\"NUM1\"><shadow type=\"math_number\" id=\"s=L64+r3]W({k]4hZ]0a\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"U$5PN5IQG}OW|]I4b|.Q\"><field name=\"VARIABLE\" id=\";}c^ldfJ?K^?2Lu!umF~\" variabletype=\"\">front_left</field></block></value><value name=\"NUM2\"><shadow type=\"math_number\" id=\"ya(%SbKMz(dS^;qkqbc#\"><field name=\"NUM\">100</field></shadow></value></block></value><next><block type=\"v5_variables_set_variable\" id=\"[V|RBO=Y/8tF`JD8!G=q\"><field name=\"VARIABLE\" id=\"s8vMDp8g5ZzumbQ;{=NJ\" variabletype=\"\">back_left</field><value name=\"VALUE\"><shadow type=\"math_number\" id=\"-).FKGi%T*QgmkXTZh||\"><field name=\"NUM\">0</field></shadow><block type=\"v5_operator_divide\" id=\"%4B]F6.YD|_Y{{gm-S+b\"><value name=\"NUM1\"><shadow type=\"math_number\" id=\"s6huGqoM?EW?k;S#wG%z\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"1F`JkA437`lsecMzN6Oy\"><field name=\"VARIABLE\" id=\"s8vMDp8g5ZzumbQ;{=NJ\" variabletype=\"\">back_left</field></block></value><value name=\"NUM2\"><shadow type=\"math_number\" id=\"xjz+eg+LLJ~(GZ~nCOnr\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"KKZJH}rFe$1Th!UPg-fr\"><field name=\"VARIABLE\" id=\"k?]w1^02-$O~D)w_#$2:\" variabletype=\"\">max_raw_value</field></block></value></block></value><next><block type=\"v5_variables_set_variable\" id=\"?yQS)3E**m0X/@,ll%^Z\"><field name=\"VARIABLE\" id=\"s8vMDp8g5ZzumbQ;{=NJ\" variabletype=\"\">back_left</field><value name=\"VALUE\"><shadow type=\"math_number\" id=\"G8$m~@;39nq;=:?h!xYw\"><field name=\"NUM\">0</field></shadow><block type=\"v5_operator_multiply\" id=\"}bxPte~fX$)Ka6p9Vwqk\"><value name=\"NUM1\"><shadow type=\"math_number\" id=\"4=P7DHCtgkzsC7T-J_/g\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"=AQov%zQJ@}pCshhj^Ho\"><field name=\"VARIABLE\" id=\"s8vMDp8g5ZzumbQ;{=NJ\" variabletype=\"\">back_left</field></block></value><value name=\"NUM2\"><shadow type=\"math_number\" id=\"$v_PVdLW@;!=?J]^G{@Q\"><field name=\"NUM\">100</field></shadow></value></block></value><next><block type=\"v5_variables_set_variable\" id=\"CykgN^gBN}S*kCzYhpG~\"><field name=\"VARIABLE\" id=\"Yv!uaUjqRcQchq~;UPiT\" variabletype=\"\">front_right</field><value name=\"VALUE\"><shadow type=\"math_number\" id=\"*Mc!r|jzudfKHSh.7-#$\"><field name=\"NUM\">0</field></shadow><block type=\"v5_operator_divide\" id=\";pXEoM:GIeSPh(+-pO47\"><value name=\"NUM1\"><shadow type=\"math_number\" id=\"e:to~9x2-}6{,eNXIV/)\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"-|/-0M!hR2^|28C-4Z8A\"><field name=\"VARIABLE\" id=\"Yv!uaUjqRcQchq~;UPiT\" variabletype=\"\">front_right</field></block></value><value name=\"NUM2\"><shadow type=\"math_number\" id=\"N^);kwk*j+$XX22Xb#w0\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"DWc*9y4PV,*|fO(@[41D\"><field name=\"VARIABLE\" id=\"k?]w1^02-$O~D)w_#$2:\" variabletype=\"\">max_raw_value</field></block></value></block></value><next><block type=\"v5_variables_set_variable\" id=\"@s~CIhSQ8o-=_Fy*ft^K\"><field name=\"VARIABLE\" id=\"Yv!uaUjqRcQchq~;UPiT\" variabletype=\"\">front_right</field><value name=\"VALUE\"><shadow type=\"math_number\" id=\"+XqNH3D=-~i.y;@RglU/\"><field name=\"NUM\">0</field></shadow><block type=\"v5_operator_multiply\" id=\"_:mQ$yOVg7EAM1_dDx6w\"><value name=\"NUM1\"><shadow type=\"math_number\" id=\"}mX%0]?AwI`ReSi%6=ei\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"0xP8uL!EL.;?qVsZ%T?+\"><field name=\"VARIABLE\" id=\"Yv!uaUjqRcQchq~;UPiT\" variabletype=\"\">front_right</field></block></value><value name=\"NUM2\"><shadow type=\"math_number\" id=\"4{d^dTr(w7izU?.H5,ve\"><field name=\"NUM\">100</field></shadow></value></block></value><next><block type=\"v5_variables_set_variable\" id=\"Md]8/f~$}`N9L1;TLGw,\"><field name=\"VARIABLE\" id=\":x?5`^2qH]EMx)!W]+7y\" variabletype=\"\">back_right</field><value name=\"VALUE\"><shadow type=\"math_number\" id=\"MI2K0vC!R))|pUQgIcdM\"><field name=\"NUM\">0</field></shadow><block type=\"v5_operator_divide\" id=\"IsHTak%R}s:4/pf(]H(P\"><value name=\"NUM1\"><shadow type=\"math_number\" id=\"-}VMrP#61W2dLdKqmqC7\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"ZIn+/38tc(9HI~xCtcv}\"><field name=\"VARIABLE\" id=\":x?5`^2qH]EMx)!W]+7y\" variabletype=\"\">back_right</field></block></value><value name=\"NUM2\"><shadow type=\"math_number\" id=\"YXQr:bS^-m}J,G7oFti#\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"bS4=`W*JbcCMN2^iw-qf\"><field name=\"VARIABLE\" id=\"k?]w1^02-$O~D)w_#$2:\" variabletype=\"\">max_raw_value</field></block></value></block></value><next><block type=\"v5_variables_set_variable\" id=\"%kolVDq@[dh@XEEjnHhU\"><field name=\"VARIABLE\" id=\":x?5`^2qH]EMx)!W]+7y\" variabletype=\"\">back_right</field><value name=\"VALUE\"><shadow type=\"math_number\" id=\"3ay6?fhPpDM(F}sizS*B\"><field name=\"NUM\">0</field></shadow><block type=\"v5_operator_multiply\" id=\"C#d3JV38Zz=TGCvWk#vk\"><value name=\"NUM1\"><shadow type=\"math_number\" id=\"YA[D`}fPH};8*/32`4|c\"><field name=\"NUM\"></field></shadow><block type=\"v5_variables_variable\" id=\"K6%w*ouGwWWoD*Q.[M{7\"><field name=\"VARIABLE\" id=\":x?5`^2qH]EMx)!W]+7y\" variabletype=\"\">back_right</field></block></value><value name=\"NUM2\"><shadow type=\"math_number\" id=\"hc~#_UTA!N`JF87EWi.K\"><field name=\"NUM\">100</field></shadow></value></block></value><next><block type=\"v5_other_comment\" id=\"cF+0${V!R0.Ooj=#+Hhb\"><value name=\"COMMENT\"><shadow type=\"comment_text\" id=\"w-Zb%(.[OVZP]oib8o,G\"><field name=\"comment\">Write the scaled sums out to the various motors</field></shadow></value><next><block type=\"v5_motion_spin\" id=\"iw^X6;EHEg1X|;.4fsu6\"><field name=\"MOTOR\">mtr_front_left</field><field name=\"DIRECTION\">fwd</field><next><block type=\"v5_motion_set_motor_velocity\" id=\"rXOc1Q)Kzs,g23Olu/cC\"><field name=\"MOTOR\">mtr_front_left</field><field name=\"UNITS\">pct</field><value name=\"VELOCITY\"><shadow type=\"math_number\" id=\"e+vkXye5`PR!jiFFKi6Y\"><field name=\"NUM\">50</field></shadow><block type=\"v5_variables_variable\" id=\"BmPLXR]8,QT?|I/Mif5^\"><field name=\"VARIABLE\" id=\";}c^ldfJ?K^?2Lu!umF~\" variabletype=\"\">front_left</field></block></value><next><block type=\"v5_motion_spin\" id=\"Te8,43TmOV/Ivy(4Wj-J\"><field name=\"MOTOR\">mtr_back_left</field><field name=\"DIRECTION\">fwd</field><next><block type=\"v5_motion_set_motor_velocity\" id=\"PkZh2^fY+2w[M8op^j{}\"><field name=\"MOTOR\">mtr_back_left</field><field name=\"UNITS\">pct</field><value name=\"VELOCITY\"><shadow type=\"math_number\" id=\":f73KwL%9a0=D3Qw~O;_\"><field name=\"NUM\">50</field></shadow><block type=\"v5_variables_variable\" id=\"YZQC|oZeH~=b#ZzTTKnv\"><field name=\"VARIABLE\" id=\"s8vMDp8g5ZzumbQ;{=NJ\" variabletype=\"\">back_left</field></block></value><next><block type=\"v5_motion_spin\" id=\"u1^^T{wUgO=KxWN^0C4T\"><field name=\"MOTOR\">mtr_front_right</field><field name=\"DIRECTION\">fwd</field><next><block type=\"v5_motion_set_motor_velocity\" id=\"VA]AF^shNZ~Ib}e2qEdw\"><field name=\"MOTOR\">mtr_front_right</field><field name=\"UNITS\">pct</field><value name=\"VELOCITY\"><shadow type=\"math_number\" id=\"`atHj6ORiOaUjEeM$u3N\"><field name=\"NUM\">50</field></shadow><block type=\"v5_variables_variable\" id=\"966.ZM0/v_QmbU4qIsb(\"><field name=\"VARIABLE\" id=\"Yv!uaUjqRcQchq~;UPiT\" variabletype=\"\">front_right</field></block></value><next><block type=\"v5_motion_spin\" id=\"tDT]oU|+T(LUW:FFirpl\"><field name=\"MOTOR\">mtr_back_right</field><field name=\"DIRECTION\">fwd</field><next><block type=\"v5_motion_set_motor_velocity\" id=\"*y9C}8/SRQn*5H4Fr67q\"><field name=\"MOTOR\">mtr_back_right</field><field name=\"UNITS\">pct</field><value name=\"VELOCITY\"><shadow type=\"math_number\" id=\"Se*XSwYf.ouBmZY-LLBc\"><field name=\"NUM\">50</field></shadow><block type=\"v5_variables_variable\" id=\"Ia#F)1elz7E4LkKH7jJu\"><field name=\"VARIABLE\" id=\":x?5`^2qH]EMx)!W]+7y\" variabletype=\"\">back_right</field></block></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block></next></block></xml>","rconfig":[{"port":[1],"name":"mtr_front_left","customName":true,"deviceType":"Motor","setting":{"reversed":"false","fwd":"forward","rev":"reverse","gear":"ratio18_1"}},{"port":[2],"name":"mtr_back_left","customName":true,"deviceType":"Motor","setting":{"reversed":"false","fwd":"forward","rev":"reverse","gear":"ratio18_1"}},{"port":[3],"name":"mtr_front_right","customName":true,"deviceType":"Motor","setting":{"reversed":"false","fwd":"forward","rev":"reverse","gear":"ratio18_1"}},{"port":[4],"name":"mtr_back_right","customName":true,"deviceType":"Motor","setting":{"reversed":"false","fwd":"forward","rev":"reverse","gear":"ratio18_1"}},{"port":[],"name":"Controller1","customName":false,"deviceType":"Controller","setting":{"left":"","leftDir":"false","right":"","rightDir":"false","upDown":"","upDownDir":"false","xB":"","xBDir":"false","drive":"none","id":"primary"}}],"slot":0,"cpp":"// Make sure all required headers are included.\n#include <stdio.h>\n#include <stdlib.h>\n#include <stdbool.h>\n#include <math.h>\n#include <string.h>\n\n\n#include \"v5.h\"\n#include \"v5_cpp.h\"\n\nusing namespace vex;\n\n// Brain should be defined by default\nbrain Brain;\n\n// Robot configuration code.\nmotor mtr_front_left = motor(vex::PORT1, vex::gearSetting::ratio18_1, false);\n\nmotor mtr_back_left = motor(vex::PORT2, vex::gearSetting::ratio18_1, false);\n\nmotor mtr_front_right = motor(vex::PORT3, vex::gearSetting::ratio18_1, false);\n\nmotor mtr_back_right = motor(vex::PORT4, vex::gearSetting::ratio18_1, false);\n\ncontroller Controller1 = controller(vex::controllerType::primary);\n\n//Vision sensor index vars.\nint Vision1_objectIndex = 0;\n\nint Brain_precision, Controller1_precision;\n\n\n// Generated code.\n\nfloat my_variable, front_left, back_left, front_right, back_right, max_raw_value;\n\nfloat maxJoystickPosition[5];\n\nint whenStarted1() {\n  while (true) {\n    // Get the raw sums of appropriate joystick axes\n    front_left = Controller1.Axis3.position() + (Controller1.Axis4.position() + Controller1.Axis1.position());\n    back_left = Controller1.Axis3.position() - (Controller1.Axis4.position() + Controller1.Axis1.position());\n    front_right = Controller1.Axis3.position() - (Controller1.Axis4.position() - Controller1.Axis1.position());\n    back_right = Controller1.Axis3.position() + (Controller1.Axis4.position() - Controller1.Axis1.position());\n    // ** Find the largest raw sum **\n    // Check if Front Left is the Largest, if so, set it's position to max_raw_value\n    if (fabs(front_left) > fabs(back_left) && (fabs(front_left) > fabs(front_right) && fabs(front_left) > fabs(back_right))) {\n      max_raw_value = fabs(front_left);\n    }\n    // Check if Back Left is the Largest, if so, set it's position to max_raw_value\n    if (fabs(back_left) > fabs(front_left) && (fabs(back_left) > fabs(front_right) && fabs(back_left) > fabs(back_right))) {\n      max_raw_value = fabs(back_left);\n    }\n    // Check if Front Right is the Largest, if so, set it's position to max_raw_value\n    if (fabs(front_right) > fabs(front_left) && (fabs(front_right) > fabs(back_left) && fabs(front_right) > fabs(back_right))) {\n      max_raw_value = fabs(front_right);\n    }\n    // Check if Back Right is the Largest, if so, set it's position to max_raw_value\n    if (fabs(back_right) > fabs(front_left) && (fabs(back_right) > fabs(back_left) && fabs(back_right) > fabs(front_right))) {\n      max_raw_value = fabs(back_right);\n    }\n    // Check if all Joysticks are under the threshold, then set it to the threshold\n    if (max_raw_value < 100.0) {\n      max_raw_value = 100.0;\n    }\n    // Scale down each value if there was one larger than 100, otherwise leave them alone\n    // The largest value will be scaled to 100, and the others will be reduced by the same factor\n    front_left = front_left / max_raw_value;\n    front_left = front_left * 100.0;\n    back_left = back_left / max_raw_value;\n    back_left = back_left * 100.0;\n    front_right = front_right / max_raw_value;\n    front_right = front_right * 100.0;\n    back_right = back_right / max_raw_value;\n    back_right = back_right * 100.0;\n    // Write the scaled sums out to the various motors\n    mtr_front_left.spin(vex::directionType::fwd);\n    mtr_front_left.setVelocity(front_left, vex::velocityUnits::pct);\n    mtr_back_left.spin(vex::directionType::fwd);\n    mtr_back_left.setVelocity(back_left, vex::velocityUnits::pct);\n    mtr_front_right.spin(vex::directionType::fwd);\n    mtr_front_right.setVelocity(front_right, vex::velocityUnits::pct);\n    mtr_back_right.spin(vex::directionType::fwd);\n    mtr_back_right.setVelocity(back_right, vex::velocityUnits::pct);\n  task::sleep(5);\n  }\nreturn 0;\n}\n\n\nint main() {\n\n\n  srand(vex::timer::system());\n\n\n\n  // pre event registration\n  // register event handlers\n\n  task::sleep(15);\n  // post event registration\n\n  // when started blocks...\n\n  whenStarted1();\n  return 0;\n}","cppStatus":"true","platform":"V5","sdkVersion":"20190805.09.00.00","appVersion":"1.0.1-344","fileFormat":"0.1.1","icon":""}