by @Lua Fork
{"functions":[],"name":"New Program","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_31f6b80e_945f_4b5a_82a4_e41d93054c78"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"sensorizq","lengthValue2":"5","id":"id_9f2c63ed_7d79_4d8d_bbfa_341aba49715c","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"sensoeder","lengthValue2":"5","id":"id_bdd68932_f7cc_4b6d_b80d_c2d178ed9813","initValue":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Boolean","name":"posicionmotor","lengthValue2":"5","id":"id_c0cf6d0b_d0a0_4f0c_a2ef_e7bc9f17af8c","initValue":"false"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Boolean","name":"modoida","lengthValue2":"5","id":"id_70c859cf_78a1_4fca_840f_3fce8f4fd1dd","initValue":"true"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Boolean","name":"modovuelta","lengthValue2":"5","id":"id_debe8df3_9aea_46dd_a6ab_b24c3ac8fb4e","initValue":"false"},{"@type":"Input","name":"leer sensores delanteros","id":"id_1262a5cb_acb0_4cf8_9b23_1fed7f0f53c0","prompt":null},{"falseBlock":{"statements":[{"@type":"Input","name":"leer sensores delanteros","id":"id_89bf914a_34a2_4baa_8e60_b2fd16d6728b","prompt":null},{"falseBlock":{"statements":[{"@type":"Input","name":"leer sensores delanteros","id":"id_d69408ce_ec7d_4e99_8c24_4dad809549b3","prompt":null},{"falseBlock":{"statements":[{"@type":"Input","name":"leer sensores delanteros","id":"id_f05c7898_fd87_431f_9adc_ac1b93a669bb","prompt":null}],"id":"id_5d2b222d_0e60_49ff_b7ed_2cfff75d055c"},"trueBlock":{"statements":[{"@type":"Input","name":"girar a la izq","id":"id_d80a31f9_21b6_4f37_a05f_e9ba1ae7cd90","prompt":null}],"id":"id_538777c1_7917_418b_9c62_b931803c4bf8"},"condition":"sensores izq false, sensor derecho true","@type":"If","id":"id_7479e3da_8c33_424d_9637_24a9dbccf75c"}],"id":"id_0044fec1_64b5_4086_8f19_b12c84fdcba8"},"trueBlock":{"statements":[{"@type":"Input","name":"girar a la derecha","id":"id_a3fffa13_0f61_4280_8e5f_62fc196f7806","prompt":null}],"id":"id_10a26508_00d9_469a_8972_741c1a874aa7"},"condition":"sensor izq true, sensor derecho false","@type":"If","id":"id_e4f4c8bd_5704_45b5_bb6d_c7bfd68cf6ad"}],"id":"id_d36bf79d_4bd6_493d_8b09_431c0aeedd6a"},"trueBlock":{"statements":[{"@type":"Input","name":"no correguir nada","id":"id_6b5a0b13_9fb7_4030_ae8f_7b0900d3b869","prompt":null}],"id":"id_c7bc7002_3c7b_4193_8b87_449d1c6114f5"},"condition":"sensores ambos false","@type":"If","id":"id_d9af4b86_2c6c_4be6_a0f6_c89a6123b824"},{"falseBlock":{"statements":[{"@type":"Input","name":"continuar segun el modo activo","id":"id_64de8ee5_4630_44c1_8915_2aab5fbd2fb1","prompt":null},{"condition":"aun no se alcanza el objetivo","@type":"DoWhile","id":"id_6698aa36_a7ae_4af7_b2ea_70291f742223","body":{"statements":[],"id":"id_5b1f5337_8c16_4d22_b48a_b8aa5e885193"}},{"@type":"Input","name":"detener motores","id":"id_c105a5fa_c3b0_4a20_8f36_02f9f800f7a3","prompt":null},{"@type":"Input","name":"servo motor gira 180","id":"id_5ae01f28_7991_44a8_bb46_612e1ea6b1da","prompt":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Boolean","name":"modoida","lengthValue2":"5","id":"id_83650a42_779b_489a_9562_2467888a7c4c","initValue":"false"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Boolean","name":"modo vuelta","lengthValue2":"5","id":"id_8d4b1f6d_a835_4f59_905a_406d143678be","initValue":"true"}],"id":"id_f8d0c8d9_d642_4046_8f70_20e830f40679"},"trueBlock":{"statements":[{"@type":"Input","name":"detener motores","id":"id_80fcbfbe_3cee_4819_a912_f55ae6f3ff75","prompt":null},{"@type":"Input","name":"servomotor gira 180","id":"id_e363c505_191f_4668_91de_747084c7d05d","prompt":null},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Boolean","name":"modoida","lengthValue2":"5","id":"id_c6f4ad95_a470_4a77_b658_b884623b56b3","initValue":"false"},{"lengthValue":-1,"@type":"Declare","lengthValue1":"5","tpe":"Integer","name":"modovuelta","lengthValue2":"5","id":"id_6c7ee897_99f1_4585_9dbf_b49223203758","initValue":"true"}],"id":"id_4dca9de4_0f01_408e_9243_cc30a1039520"},"condition":"objetivoalcanzado","@type":"If","id":"id_40c2ebcc_863a_43a7_abff_1d34cff1bd71"},{"@type":"Input","name":"leer sensores traseros","id":"id_268c7447_d6d7_427a_8945_7f6ca4d26bde","prompt":null},{"falseBlock":{"statements":[{"@type":"Input","name":"leer sensores traseros","id":"id_53abaff9_301a_4ef1_8752_2c6b99ff6e5d","prompt":null},{"falseBlock":{"statements":[{"@type":"Input","name":"leer sensores traseros","id":"id_712306e2_768d_4fe0_bbca_e92ab3293745","prompt":null},{"falseBlock":{"statements":[],"id":"id_48a0571b_12d6_41e7_ac79_0b4f097f4a51"},"trueBlock":{"statements":[{"@type":"Input","name":"girar a la izq","id":"id_3e0f1431_ab93_49c8_a87d_eed4f48d9ace","prompt":null}],"id":"id_02031100_2472_4195_9ae2_f67765e3d70d"},"condition":"sensor izq false, sensor der true","@type":"If","id":"id_ab4c4b41_bee0_471b_a707_1be24aa42d33"}],"id":"id_5c2d29d8_2d71_441d_a4f0_573a655eea0b"},"trueBlock":{"statements":[{"@type":"Input","name":"girar a la derecha","id":"id_112ec75b_facf_4c22_9b2e_11751376a91b","prompt":null}],"id":"id_c3b84178_f08b_4bfc_9b66_6908d0106134"},"condition":"sensor izq true,sensor der false","@type":"If","id":"id_cdf49b02_d2f5_4872_ad67_2a0101687f1d"}],"id":"id_96921624_da6d_46d0_a29f_61414c54bcf8"},"trueBlock":{"statements":[{"@type":"Input","name":"no correguir nada","id":"id_f8654992_fd57_4521_b09d_251b62afa959","prompt":null}],"id":"id_f3d77add_88de_426c_b885_034a9efbb9db"},"condition":"ambos sensores false","@type":"If","id":"id_1d88f625_ea52_40e1_8303_f65a2ca2b052"},{"@type":"Return","id":"id_bc05d7c9_fef4_492c_9b0b_c8197f1d192d","maybeValue":null}],"parameters":[]},"id":"id_78912302_81ef_45e8_bc41_7a05cd99fde7","config":{"showDebugVars":true,"useInputPrompt":false,"echoEnteredValue":false,"showIoBtns":true,"showFunctions":false,"lang":"java","showGenCode":false},"version":"0.3","revision":1418}