Advertisement
ByRussX

Car Colors

Feb 7th, 2021
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.41 KB | None | 0 0
  1. https://lab.open-roberta.org/#loadProgram&&ev3lejosv1&&CarColors&&%3Cexport%20xmlns=%22http://de.fhg.iais.roberta.blockly%22%3E%3Cprogram%3E%3Cblock_set%20xmlns=%22http://de.fhg.iais.roberta.blockly%22%20robottype=%22ev3%22%20xmlversion=%223.1%22%20description=%22%22%20tags=%22%22%3E%3Cinstance%20x=%2223%22%20y=%2290%22%3E%3Cblock%20type=%22robControls_start%22%20id=%22MWDpO!Ph/EJ%25g%5DJ;npt%7C%22%20intask=%22true%22%20deletable=%22false%22%3E%3Cmutation%20declare=%22false%22%3E%3C/mutation%3E%3Cfield%20name=%22DEBUG%22%3EFALSE%3C/field%3E%3C/block%3E%3Cblock%20type=%22robActions_motorDiff_on%22%20id=%22E%7DFdC%5Bw3v:%252A7WESkGm%22%20intask=%22true%22%3E%3Cfield%20name=%22DIRECTION%22%3EFOREWARD%3C/field%3E%3Cvalue%20name=%22POWER%22%3E%3Cblock%20type=%22math_number%22%20id=%22M%7B2P;gI%25DHxb%5BG;K4iX9%22%20intask=%22true%22%3E%3Cfield%20name=%22NUM%22%3E50%3C/field%3E%3C/block%3E%3C/value%3E%3C/block%3E%3Cblock%20type=%22robControls_loopForever%22%20id=%22To%257Mk,AuDl8-~BlB3o,%22%20intask=%22true%22%3E%3Cstatement%20name=%22DO%22%3E%3Cblock%20type=%22robControls_if%22%20id=%22R-bKOxk%7B=%7De%5EmvVBinF,%22%20intask=%22true%22%3E%3Cvalue%20name=%22IF0%22%3E%3Cblock%20type=%22logic_compare%22%20id=%22n%7D7Y98L@WLPz=,3hq./I%22%20intask=%22true%22%3E%3Cfield%20name=%22OP%22%3EEQ%3C/field%3E%3Cvalue%20name=%22A%22%3E%3Cblock%20type=%22robSensors_colour_getSample%22%20id=%22Ng5x%5B?+70RXH(Ld%25xMS_%22%20intask=%22true%22%3E%3Cmutation%20mode=%22COLOUR%22%3E%3C/mutation%3E%3Cfield%20name=%22MODE%22%3ECOLOUR%3C/field%3E%3Cfield%20name=%22SENSORPORT%22%3E3%3C/field%3E%3Cfield%20name=%22SLOT%22%3E%3C/field%3E%3C/block%3E%3C/value%3E%3Cvalue%20name=%22B%22%3E%3Cblock%20type=%22robColour_picker%22%20id=%22KnI%7D1F3%25F=PUu/DP.l;s%22%20intask=%22true%22%3E%3Cfield%20name=%22COLOUR%22%3E#0057a6%3C/field%3E%3C/block%3E%3C/value%3E%3C/block%3E%3C/value%3E%3Cstatement%20name=%22DO0%22%3E%3Cblock%20type=%22robActions_sayText%22%20id=%22RDDgt%25ZRzZ;9_h9F)BG,%22%20intask=%22true%22%3E%3Cvalue%20name=%22OUT%22%3E%3Cblock%20type=%22text%22%20id=%22%5E%25_oj6.JdSxU;t#8t%5Dfy%22%20intask=%22true%22%3E%3Cfield%20name=%22TEXT%22%3EBlue%3C/field%3E%3C/block%3E%3C/value%3E%3C/block%3E%3C/statement%3E%3C/block%3E%3Cblock%20type=%22robControls_if%22%20id=%22N/V%7DuhQ,BW#%25=%7C#RoOQk%22%20intask=%22true%22%3E%3Cvalue%20name=%22IF0%22%3E%3Cblock%20type=%22logic_compare%22%20id=%22NyccN%7DlfoeUi-GN%5Bs%5DRS%22%20intask=%22true%22%3E%3Cfield%20name=%22OP%22%3EEQ%3C/field%3E%3Cvalue%20name=%22A%22%3E%3Cblock%20type=%22robSensors_colour_getSample%22%20id=%22%7B~h%5Eu19t9Mo*Mmn.=K*%7D%22%20intask=%22true%22%3E%3Cmutation%20mode=%22COLOUR%22%3E%3C/mutation%3E%3Cfield%20name=%22MODE%22%3ECOLOUR%3C/field%3E%3Cfield%20name=%22SENSORPORT%22%3E3%3C/field%3E%3Cfield%20name=%22SLOT%22%3E%3C/field%3E%3C/block%3E%3C/value%3E%3Cvalue%20name=%22B%22%3E%3Cblock%20type=%22robColour_picker%22%20id=%22%7BMl0p7)R8pQPNiQ)eHWn%22%20intask=%22true%22%3E%3Cfield%20name=%22COLOUR%22%3E#f7d117%3C/field%3E%3C/block%3E%3C/value%3E%3C/block%3E%3C/value%3E%3Cstatement%20name=%22DO0%22%3E%3Cblock%20type=%22robActions_sayText%22%20id=%22NDa%7C5(eKz2cDh@0m#Qu-%22%20intask=%22true%22%3E%3Cvalue%20name=%22OUT%22%3E%3Cblock%20type=%22text%22%20id=%22W%60==*?dFlTTxgiy%5E%7Bg@g%22%20intask=%22true%22%3E%3Cfield%20name=%22TEXT%22%3EYellow%3C/field%3E%3C/block%3E%3C/value%3E%3C/block%3E%3C/statement%3E%3C/block%3E%3Cblock%20type=%22robControls_if%22%20id=%22R?qx%7Co!O(%7Bg?kQv/oB,x%22%20intask=%22true%22%3E%3Cvalue%20name=%22IF0%22%3E%3Cblock%20type=%22logic_compare%22%20id=%22Q%5E%7DU%5E+b#-Cchb3PX?@%7Bx%22%20intask=%22true%22%3E%3Cfield%20name=%22OP%22%3EEQ%3C/field%3E%3Cvalue%20name=%22A%22%3E%3Cblock%20type=%22robSensors_colour_getSample%22%20id=%22(,Nv=Bo(LvpaVWXV9NRv%22%20intask=%22true%22%3E%3Cmutation%20mode=%22COLOUR%22%3E%3C/mutation%3E%3Cfield%20name=%22MODE%22%3ECOLOUR%3C/field%3E%3Cfield%20name=%22SENSORPORT%22%3E3%3C/field%3E%3Cfield%20name=%22SLOT%22%3E%3C/field%3E%3C/block%3E%3C/value%3E%3Cvalue%20name=%22B%22%3E%3Cblock%20type=%22robColour_picker%22%20id=%22;m*04hN_*6(/!l%25=QgBW%22%20intask=%22true%22%3E%3Cfield%20name=%22COLOUR%22%3E#00642e%3C/field%3E%3C/block%3E%3C/value%3E%3C/block%3E%3C/value%3E%3Cstatement%20name=%22DO0%22%3E%3Cblock%20type=%22robActions_sayText%22%20id=%22a.eHaT/tv%7D%25fzy_B4(4=%22%20intask=%22true%22%3E%3Cvalue%20name=%22OUT%22%3E%3Cblock%20type=%22text%22%20id=%22MdWG@F;y%5B%5Da!afVw%7C=%5EZ%22%20intask=%22true%22%3E%3Cfield%20name=%22TEXT%22%3EGreen%3C/field%3E%3C/block%3E%3C/value%3E%3C/block%3E%3C/statement%3E%3C/block%3E%3Cblock%20type=%22robControls_if%22%20id=%22u1H~Tik3%5B%5DCh#l;tBtx,%22%20intask=%22true%22%3E%3Cvalue%20name=%22IF0%22%3E%3Cblock%20type=%22logic_compare%22%20id=%22Y~zM%7BNm4X5%5D6Ch3C%60T(6%22%20intask=%22true%22%3E%3Cfield%20name=%22OP%22%3EEQ%3C/field%3E%3Cvalue%20name=%22A%22%3E%3Cblock%20type=%22robSensors_colour_getSample%22%20id=%22%5EQ/d)o%5DI8%5D-XGYG%5EU0h(%22%20intask=%22true%22%3E%3Cmutation%20mode=%22COLOUR%22%3E%3C/mutation%3E%3Cfield%20name=%22MODE%22%3ECOLOUR%3C/field%3E%3Cfield%20name=%22SENSORPORT%22%3E3%3C/field%3E%3Cfield%20name=%22SLOT%22%3E%3C/field%3E%3C/block%3E%3C/value%3E%3Cvalue%20name=%22B%22%3E%3Cblock%20type=%22robColour_picker%22%20id=%22I5S_%7BD%5B%7Bb@.2eU!L,h,o%22%20intask=%22true%22%3E%3Cfield%20name=%22COLOUR%22%3E#b30006%3C/field%3E%3C/block%3E%3C/value%3E%3C/block%3E%3C/value%3E%3Cstatement%20name=%22DO0%22%3E%3Cblock%20type=%22robActions_sayText%22%20id=%22y#%600%5B,M%5ExSuYqhrXKDj#%22%20intask=%22true%22%3E%3Cvalue%20name=%22OUT%22%3E%3Cblock%20type=%22text%22%20id=%22fU%60kY%259e?sba1_d6yHw.%22%20intask=%22true%22%3E%3Cfield%20name=%22TEXT%22%3ERed%3C/field%3E%3C/block%3E%3C/value%3E%3C/block%3E%3C/statement%3E%3C/block%3E%3Cblock%20type=%22robControls_if%22%20id=%22b%7BBJ2@G=wdGqEjK:3f%60%7D%22%20intask=%22true%22%3E%3Cvalue%20name=%22IF0%22%3E%3Cblock%20type=%22logic_compare%22%20id=%22FhAIB1Bt8KLJ3rw-X6f%60%22%20intask=%22true%22%3E%3Cfield%20name=%22OP%22%3EEQ%3C/field%3E%3Cvalue%20name=%22A%22%3E%3Cblock%20type=%22robSensors_colour_getSample%22%20id=%22DxzqHbQ?m@3QZ4/q)R%7CH%22%20intask=%22true%22%3E%3Cmutation%20mode=%22COLOUR%22%3E%3C/mutation%3E%3Cfield%20name=%22MODE%22%3ECOLOUR%3C/field%3E%3Cfield%20name=%22SENSORPORT%22%3E3%3C/field%3E%3Cfield%20name=%22SLOT%22%3E%3C/field%3E%3C/block%3E%3C/value%3E%3Cvalue%20name=%22B%22%3E%3Cblock%20type=%22robColour_picker%22%20id=%22OKp4Tgcgo@p)m%5B)%7C;sp:%22%20intask=%22true%22%3E%3Cfield%20name=%22COLOUR%22%3E#000000%3C/field%3E%3C/block%3E%3C/value%3E%3C/block%3E%3C/value%3E%3Cstatement%20name=%22DO0%22%3E%3Cblock%20type=%22robActions_motorDiff_stop%22%20id=%22A%5D%7CLu%60uR_F/%60hILj)++z%22%20intask=%22true%22%3E%3C/block%3E%3Cblock%20type=%22robActions_brickLight_on%22%20id=%22jVpn2UhNW2YuXi.PioPO%22%20intask=%22true%22%3E%3Cfield%20name=%22SWITCH_COLOR%22%3EGREEN%3C/field%3E%3Cfield%20name=%22SWITCH_BLINK%22%3EON%3C/field%3E%3C/block%3E%3C/statement%3E%3C/block%3E%3C/statement%3E%3C/block%3E%3C/instance%3E%3C/block_set%3E%3C/program%3E%3Cconfig%3E%3Cblock_set%20xmlns=%22http://de.fhg.iais.roberta.blockly%22%20robottype=%22ev3%22%20xmlversion=%223.1%22%20description=%22%22%20tags=%22%22%3E%3Cinstance%20x=%22213%22%20y=%22213%22%3E%3Cblock%20type=%22robBrick_EV3-Brick%22%20id=%221%22%20intask=%22true%22%20deletable=%22false%22%3E%3Cfield%20name=%22WHEEL_DIAMETER%22%3E5.6%3C/field%3E%3Cfield%20name=%22TRACK_WIDTH%22%3E18%3C/field%3E%3Cvalue%20name=%22S1%22%3E%3Cblock%20type=%22robBrick_touch%22%20id=%222%22%20intask=%22true%22%3E%3C/block%3E%3C/value%3E%3Cvalue%20name=%22S2%22%3E%3Cblock%20type=%22robBrick_gyro%22%20id=%223%22%20intask=%22true%22%3E%3C/block%3E%3C/value%3E%3Cvalue%20name=%22S3%22%3E%3Cblock%20type=%22robBrick_colour%22%20id=%224%22%20intask=%22true%22%3E%3C/block%3E%3C/value%3E%3Cvalue%20name=%22S4%22%3E%3Cblock%20type=%22robBrick_ultrasonic%22%20id=%225%22%20intask=%22true%22%3E%3C/block%3E%3C/value%3E%3Cvalue%20name=%22MB%22%3E%3Cblock%20type=%22robBrick_motor_big%22%20id=%226%22%20intask=%22true%22%3E%3Cfield%20name=%22MOTOR_REGULATION%22%3ETRUE%3C/field%3E%3Cfield%20name=%22MOTOR_REVERSE%22%3EOFF%3C/field%3E%3Cfield%20name=%22MOTOR_DRIVE%22%3ERIGHT%3C/field%3E%3C/block%3E%3C/value%3E%3Cvalue%20name=%22MC%22%3E%3Cblock%20type=%22robBrick_motor_big%22%20id=%227%22%20intask=%22true%22%3E%3Cfield%20name=%22MOTOR_REGULATION%22%3ETRUE%3C/field%3E%3Cfield%20name=%22MOTOR_REVERSE%22%3EOFF%3C/field%3E%3Cfield%20name=%22MOTOR_DRIVE%22%3ELEFT%3C/field%3E%3C/block%3E%3C/value%3E%3C/block%3E%3C/instance%3E%3C/block_set%3E%3C/config%3E%3C/export%3E
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement