-
Notifications
You must be signed in to change notification settings - Fork 0
/
_history
1 lines (1 loc) · 120 KB
/
_history
1
{"entries":[{"timestamp":1730311404736,"editorVersion":"7.0.51","changes":[{"type":"edited","filename":"main.blocks","patch":[{"diffs":[[0,"=\"10"],[-1,"12"],[1,"35"],[0,"\" y=\"-2"],[-1,"98"],[1,"54"],[0,"\"><s"]],"start1":240,"start2":240,"length1":19,"length2":19},{"diffs":[[0," x=\""],[-1,"-159"],[1,"23"],[0,"\" y=\""],[-1,"-118"],[1,"44"],[0,"\"><s"]],"start1":624,"start2":624,"length1":21,"length2":17},{"diffs":[[0," x=\""],[-1,"991"],[1,"1014"],[0,"\" y=\""],[-1,"-24"],[1,"20"],[0,"\"><v"]],"start1":2243,"start2":2243,"length1":19,"length2":19},{"diffs":[[0,"=\"10"],[-1,"20"],[1,"43"],[0,"\" y=\"1"],[-1,"35"],[1,"79"],[0,"\"><s"]],"start1":2546,"start2":2546,"length1":18,"length2":18},{"diffs":[[0,"=\"-1"],[-1,"50"],[1,"27"],[0,"\" y=\"3"],[1,"8"],[0,"3"],[-1,"9"],[0,"\"><s"]],"start1":2886,"start2":2886,"length1":18,"length2":18},{"diffs":[[0,"=\"10"],[-1,"06"],[1,"29"],[0,"\" y=\"3"],[-1,"20"],[1,"64"],[0,"\"><s"]],"start1":5628,"start2":5628,"length1":18,"length2":18},{"diffs":[[0,"=\"10"],[-1,"06"],[1,"29"],[0,"\" y=\""],[-1,"580"],[1,"624"],[0,"\"><v"]],"start1":6672,"start2":6672,"length1":18,"length2":18},{"diffs":[[0,"=\"10"],[1,"4"],[0,"1"],[-1,"8"],[0,"\" y=\"7"],[-1,"41"],[1,"85"],[0,"\"><v"]],"start1":7171,"start2":7171,"length1":18,"length2":18},{"diffs":[[0,"=\"-1"],[-1,"95"],[1,"34"],[0,"\" y=\"9"],[-1,"0"],[1,"2"],[0,"4\"><"]],"start1":7669,"start2":7669,"length1":17,"length2":17},{"diffs":[[0,"eld "],[-1,"name=\"OP\">NEQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value></block></value><statement name=\"DO0\"><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">6000</field></shadow></value></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"argument_reporter_string\"><field name=\"VALUE\">name</field></block></value><value name=\"B\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value></block></value><statement name=\"DO0\"><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">6000</field></shadow></value></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field "],[0,"name"]],"start1":8195,"start2":8195,"length1":1568,"length2":8},{"diffs":[[0,"k></"],[-1,"next></block></next></block></"],[0,"stat"]],"start1":15664,"start2":15664,"length1":38,"length2":8},{"diffs":[[0,"=\"10"],[-1,"12"],[1,"35"],[0,"\" y=\""],[-1,"886"],[1,"930"],[0,"\"><f"]],"start1":15722,"start2":15722,"length1":18,"length2":18},{"diffs":[[0,"></block><block "],[1,"type=\"device_get_button2\" disabled-reasons=\"ORPHANED_BLOCK,MANUALLY_DISABLED\" x=\"314\" y=\"1182\"><field name=\"NAME\">Button.A</field></block><block "],[0,"type=\"device_ges"]],"start1":16583,"start2":16583,"length1":32,"length2":177},{"diffs":[[0,"=\"10"],[1,"5"],[0,"3"],[-1,"0"],[0,"\" y=\"1"],[-1,"159"],[1,"203"],[0,"\"><f"]],"start1":16773,"start2":16773,"length1":19,"length2":19},{"diffs":[[0,"=\"10"],[-1,"26"],[1,"49"],[0,"\" y=\"14"],[-1,"31"],[1,"75"],[0,"\"><f"]],"start1":17689,"start2":17689,"length1":19,"length2":19},{"diffs":[[0,"=\"10"],[-1,"23"],[1,"46"],[0,"\" y=\"1"],[-1,"657"],[1,"701"],[0,"\"><f"]],"start1":18613,"start2":18613,"length1":19,"length2":19},{"diffs":[[0,"=\"10"],[-1,"19"],[1,"42"],[0,"\" y=\"19"],[-1,"19"],[1,"63"],[0,"\"><f"]],"start1":19517,"start2":19517,"length1":19,"length2":19},{"diffs":[[0,"=\"10"],[-1,"12"],[1,"35"],[0,"\" y=\"2"],[-1,"186"],[1,"230"],[0,"\"><f"]],"start1":20420,"start2":20420,"length1":19,"length2":19},{"diffs":[[0,"=\"10"],[-1,"11"],[1,"34"],[0,"\" y=\"2"],[-1,"456"],[1,"500"],[0,"\"><f"]],"start1":21320,"start2":21320,"length1":19,"length2":19}]},{"type":"edited","filename":"main.ts","patch":[{"diffs":[[0,"4\n}\n"],[-1,"let Autorised: string[] = []\n"],[0,"radi"]],"start1":39,"start2":39,"length1":37,"length2":8},{"diffs":[[0,") {\n"],[-1," if (value != Autorised) {\n control.waitMicros(6000)\n }\n if (name == \"Autorised\") {\n control.waitMicros(6000)\n }\n"],[0," "]],"start1":987,"start2":987,"length1":147,"length2":8},{"diffs":[[0,"nction () {\n"],[1," let Autorised: string[] = []\n"],[0," Autorise"]],"start1":3907,"start2":3907,"length1":24,"length2":57}]},{"type":"edited","filename":"pxt.json","patch":[{"diffs":[[0,"itor\": \""],[-1,"t"],[1,"block"],[0,"sprj\",\n "]],"start1":825,"start2":825,"length1":17,"length2":21}]}]},{"timestamp":1730311667635,"editorVersion":"7.0.51","changes":[{"type":"edited","filename":"pxt.json","patch":[{"diffs":[[0,"E750"],[-1," q"],[0,"\",\n "]],"start1":20,"start2":20,"length1":10,"length2":8}]}]},{"timestamp":1731083712712,"editorVersion":"7.0.51","changes":[{"type":"edited","filename":"pxt.json","patch":[{"diffs":[[0,"verE750 "],[1,"q"],[0,"\",\n \""]],"start1":17,"start2":17,"length1":16,"length2":17}]}]},{"timestamp":1731083713248,"editorVersion":"7.0.51","changes":[{"type":"edited","filename":"pxt.json","patch":[{"diffs":[[0,"750 "],[-1,"JS"],[0,"\",\n "]],"start1":21,"start2":21,"length1":10,"length2":8}]}]},{"timestamp":1731083714300,"editorVersion":"7.0.51","changes":[{"type":"edited","filename":"main.blocks","patch":[{"diffs":[[0,"iables><"],[1,"block type=\"device_forever\" x=\"1012\" y=\"-298\"><statement name=\"HANDLER\"><block type=\"radio_datagram_send\"><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"sonar_ping\"><field name=\"trig\">DigitalPin.P2</field><field name=\"echo\">DigitalPin.P1</field><field name=\"unit\">PingUnit.Centimeters</field></block></value></block></statement></block><block type=\"device_forever\" x=\"-159\" y=\"-118\"><statement name=\"HANDLER\"><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_operation\"><field name=\"OP\">AND</field><value name=\"A\"><shadow type=\"logic_boolean\" disabled-reasons=\"MANUALLY_DISABLED\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"control_device_serial_number\"></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">4785</field></shadow></value></block></value><value name=\"B\"><shadow type=\"logic_boolean\" disabled-reasons=\"ORPHANED_BLOCK,MANUALLY_DISABLED\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"control_device_name\"></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"text\"><field name=\"TEXT\">E750rover_perif</field></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"serial_redirect\"><field name=\"tx\">SerialPin.USB_TX</field><field name=\"rx\">SerialPin.USB_RX</field><field name=\"rate\">BaudRate.BaudRate4800</field><next><block type=\"serial_writestring\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">Séance modifications lancer veuillez communiquer via la console micro:bit</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"serial_on_data_received\" x=\"991\" y=\"-24\"><value name=\"delimiters\"><shadow type=\"serial_delimiter_conv\"><field name=\"del\">Delimiters.CarriageReturn</field></shadow></value><statement name=\"HANDLER\"><block type=\"rover_stop_all\"><field name=\"act\">MotorActions.Stop</field></block></statement></block><block type=\"device_forever\" x=\"1020\" y=\"135\"><statement name=\"HANDLER\"><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">Robot en marche</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></statement></block><block type=\"control_in_background\" x=\"-150\" y=\"339\"><statement name=\"HANDLER\"><block type=\"array_insertAt\"><value name=\"list\"><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value><value name=\"index\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value><value name=\"value\"><block type=\"text\"><field name=\"TEXT\">RoverMove_Front</field></block></value><next><block type=\"array_insertAt\"><value name=\"list\"><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value><value name=\"index\"><shadow type=\"math_number\"><field name=\"NUM\">2</field></shadow></value><value name=\"value\"><block type=\"text\"><field name=\"TEXT\">RoverMove_Back</field></block></value><next><block type=\"array_insertAt\"><value name=\"list\"><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value><value name=\"index\"><shadow type=\"math_number\"><field name=\"NUM\">3</field></shadow></value><value name=\"value\"><block type=\"text\"><field name=\"TEXT\">RoverMove_Left</field></block></value><next><block type=\"array_insertAt\"><value name=\"list\"><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value><value name=\"index\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value><value name=\"value\"><block type=\"text\"><field name=\"TEXT\">RoverMove_Back</field></block></value><next><block type=\"array_insertAt\"><value name=\"list\"><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value><value name=\"index\"><shadow type=\"math_number\"><field name=\"NUM\">5</field></shadow></value><value name=\"value\"><block type=\"text\"><field name=\"TEXT\">Battery_Tension</field></block></value><next><block type=\"synth_set_volume\"><value name=\"volume\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Volume\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_set_group\"><value name=\"ID\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" precision=\"0\"></mutation><field name=\"SLIDER\">2012</field></shadow></value><next><block type=\"radio_set_frequency_band\"><value name=\"band\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"83\" precision=\"0\"></mutation><field name=\"SLIDER\">80</field></shadow></value><next><block type=\"radio_set_transmit_power\"><value name=\"power\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"7\" precision=\"0\"></mutation><field name=\"SLIDER\">450</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type=\"device_forever\" x=\"1006\" y=\"320\"><statement name=\"HANDLER\"><block type=\"music_playable_play\"><field name=\"playbackMode\">music.PlaybackMode.UntilDone</field><value name=\"toPlay\"><shadow type=\"music_tone_playable\" disabled-reasons=\"MANUALLY_DISABLED\"><value name=\"note\"><shadow type=\"device_note\" disabled-reasons=\"MANUALLY_DISABLED\"><field name=\"name\">262</field></shadow></value><value name=\"duration\"><shadow type=\"device_beat\" disabled-reasons=\"MANUALLY_DISABLED\"><field name=\"fraction\">BeatFraction.Whole</field></shadow></value></shadow><block type=\"music_tone_playable\"><value name=\"note\"><shadow type=\"device_note\" disabled-reasons=\"MANUALLY_DISABLED\"><field name=\"name\">262</field></shadow><block type=\"sonar_ping\"><field name=\"trig\">DigitalPin.P2</field><field name=\"echo\">DigitalPin.P1</field><field name=\"unit\">PingUnit.Centimeters</field></block></value><value name=\"duration\"><shadow type=\"device_beat\"><field name=\"fraction\">BeatFraction.Breve</field></shadow></value></block></value></block></statement></block><block type=\"radio_on_string_drag\" x=\"1006\" y=\"580\"><value name=\"HANDLER_DRAG_PARAM_receivedString\"><block type=\"argument_reporter_string\"><mutation duplicateondrag=\"true\"></mutation><field name=\"VALUE\">receivedString</field></block></value><statement name=\"HANDLER\"><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">6000</field></shadow></value></block></statement></block><block type=\"radio_on_number_drag\" x=\"1018\" y=\"741\"><value name=\"HANDLER_DRAG_PARAM_receivedNumber\"><block type=\"argument_reporter_number\"><mutation duplicateondrag=\"true\"></mutation><field name=\"VALUE\">receivedNumber</field></block></value><statement name=\"HANDLER\"><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">6000</field></shadow></value></block></statement></block><block type=\"radio_on_value_drag\" x=\"-195\" y=\"904\"><value name=\"HANDLER_DRAG_PARAM_name\"><block type=\"argument_reporter_string\"><mutation duplicateondrag=\"true\"></mutation><field name=\"VALUE\">name</field></block></value><value name=\"HANDLER_DRAG_PARAM_value\"><block type=\"argument_reporter_number\"><mutation duplicateondrag=\"true\"></mutation><field name=\"VALUE\">value</field></block></value><statement name=\"HANDLER\"><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">NEQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value></block></value><statement name=\"DO0\"><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">6000</field></shadow></value></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"argument_reporter_string\"><field name=\"VALUE\">name</field></block></value><value name=\"B\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value></block></value><statement name=\"DO0\"><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">6000</field></shadow></value></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"argument_reporter_string\"><field name=\"VALUE\">name</field></block></value><value name=\"B\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Front</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"rover_setAllRGB\"><value name=\"ccolor\"><shadow type=\"rover_colors\"><field name=\"color\">RoverColors.Red</field></shadow></value><next><block type=\"rover_set_receive_string\"><value name=\"receivedString\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Front</field></shadow></value><next><block type=\"rover_motor_dual\"><value name=\"speed1\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed1\" precision=\"0\"></mutation><field name=\"SLIDER\">50</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><value name=\"speed2\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed2\" precision=\"0\"></mutation><field name=\"SLIDER\">50</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><next><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">4</field></shadow></value><next><block type=\"rover_stop_all\"><field name=\"act\">MotorActions.Brake</field></block></next></block></next></block></next></block></next></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"argument_reporter_string\"><field name=\"VALUE\">name</field></block></value><value name=\"B\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Back</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"rover_setAllRGB\"><value name=\"ccolor\"><shadow type=\"rover_colors\"><field name=\"color\">RoverColors.Orange</field></shadow></value><next><block type=\"rover_set_receive_string\"><value name=\"receivedString\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Back</field></shadow></value><next><block type=\"rover_motor_dual\"><value name=\"speed1\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed1\" precision=\"0\"></mutation><field name=\"SLIDER\">50</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><value name=\"speed2\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed2\" precision=\"0\"></mutation><field name=\"SLIDER\">50</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><next><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">4</field></shadow></value><next><block type=\"rover_stop_all\"><field name=\"act\">MotorActions.Brake</field></block></next></block></next></block></next></block></next></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"argument_reporter_string\"><field name=\"VALUE\">name</field></block></value><value name=\"B\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Left</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"rover_setAllRGB\"><value name=\"ccolor\"><shadow type=\"rover_colors\"><field name=\"color\">RoverColors.Green</field></shadow></value><next><block type=\"rover_set_receive_string\"><value name=\"receivedString\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Left</field></shadow></value><next><block type=\"rover_motor_dual\"><value name=\"speed1\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed1\" precision=\"0\"></mutation><field name=\"SLIDER\">50</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><value name=\"speed2\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed2\" precision=\"0\"></mutation><field name=\"SLIDER\">0</field></shadow></value><next><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">4</field></shadow></value><next><block type=\"rover_stop_all\"><field name=\"act\">MotorActions.Brake</field></block></next></block></next></block></next></block></next></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"argument_reporter_string\"><field name=\"VALUE\">name</field></block></value><value name=\"B\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Right</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"rover_setAllRGB\"><value name=\"ccolor\"><shadow type=\"rover_colors\"><field name=\"color\">RoverColors.Yellow</field></shadow></value><next><block type=\"rover_set_receive_string\"><value name=\"receivedString\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Right</field></shadow></value><next><block type=\"rover_motor_dual\"><value name=\"speed1\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed1\" precision=\"0\"></mutation><field name=\"SLIDER\">0</field></shadow></value><value name=\"speed2\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed2\" precision=\"0\"></mutation><field name=\"SLIDER\">50</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><next><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">4</field></shadow></value><next><block type=\"rover_stop_all\"><field name=\"act\">MotorActions.Brake</field></block></next></block></next></block></next></block></next></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"text\" disabled-reasons=\"MANUALLY_DISABLED\"><field name=\"TEXT\"></field></shadow><block type=\"argument_reporter_string\"><field name=\"VALUE\">name</field></block></value><value name=\"B\"><shadow type=\"text\"><field name=\"TEXT\">Battery_Tension</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"rover_setAllRGB\"><value name=\"ccolor\"><shadow type=\"rover_colors\"><field name=\"color\">RoverColors.Black</field></shadow></value><next><block type=\"rover_set_receive_string\"><value name=\"receivedString\"><shadow type=\"text\"><field name=\"TEXT\">Battery_Tension</field></shadow></value><next><block type=\"radioBroadcastMessage\"><value name=\"msg\"><shadow type=\"radioMessageCode\"><field name=\"MEMBER\">message1</field></shadow><block type=\"rover_bettery_level\"></block></value></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type=\"device_gesture_event\" x=\"1012\" y=\"886\"><field name=\"NAME\">Gesture.Shake</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.Shake</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-SECOUER</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"device_gesture_event\" x=\"1030\" y=\"1159\"><field name=\"NAME\">Gesture.FreeFall</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.FreeFall</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-CHUTELIBRE</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"device_gesture_event\" x=\"1026\" y=\"1431\"><field name=\"NAME\">Gesture.ScreenDown</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.ScreenDown</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-ECRANVERSLEBAS</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"device_gesture_event\" x=\"1023\" y=\"1657\"><field name=\"NAME\">Gesture.EightG</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.EightG</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-8G</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"device_gesture_event\" x=\"1019\" y=\"1919\"><field name=\"NAME\">Gesture.ThreeG</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.Shake</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-3G</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"device_gesture_event\" x=\"1012\" y=\"2186\"><field name=\"NAME\">Gesture.SixG</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.SixG</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-6G</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"device_gesture_event\" x=\"1011\" y=\"2456\"><field name=\"NAME\">Gesture.ScreenUp</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.ScreenUp</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-ECRANVERSLEHAUT</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block><"],[0,"/xml>"]],"start1":203,"start2":203,"length1":13,"length2":23457}]}]},{"timestamp":1731086126787,"editorVersion":"7.0.51","changes":[{"type":"edited","filename":"pxt.json","patch":[{"diffs":[[0," ],\n"],[-1," \"testFiles\": [\n \"test.ts\"\n ],\n"],[0," "]],"start1":557,"start2":557,"length1":52,"length2":8}]},{"type":"added","filename":"test.ts","value":"// les tests vont ici ; cela ne sera pas compilé si ce paquet est utilisé en tant qu'extension.\n"}]}],"snapshots":[{"timestamp":1730311404735,"editorVersion":"7.0.51","text":{"main.blocks":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable type=\"RadioMessage\" id=\"7F+ZMx~Z~KFwQ+zNfr)U\">0message1</variable><variable id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</variable></variables><block type=\"device_forever\" x=\"1035\" y=\"-254\"><statement name=\"HANDLER\"><block type=\"radio_datagram_send\"><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"sonar_ping\"><field name=\"trig\">DigitalPin.P2</field><field name=\"echo\">DigitalPin.P1</field><field name=\"unit\">PingUnit.Centimeters</field></block></value></block></statement></block><block type=\"device_forever\" x=\"23\" y=\"44\"><statement name=\"HANDLER\"><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_operation\"><field name=\"OP\">AND</field><value name=\"A\"><shadow type=\"logic_boolean\" disabled-reasons=\"MANUALLY_DISABLED\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"control_device_serial_number\"></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">4785</field></shadow></value></block></value><value name=\"B\"><shadow type=\"logic_boolean\" disabled-reasons=\"ORPHANED_BLOCK,MANUALLY_DISABLED\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"control_device_name\"></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"text\"><field name=\"TEXT\">E750rover_perif</field></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"serial_redirect\"><field name=\"tx\">SerialPin.USB_TX</field><field name=\"rx\">SerialPin.USB_RX</field><field name=\"rate\">BaudRate.BaudRate4800</field><next><block type=\"serial_writestring\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">Séance modifications lancer veuillez communiquer via la console micro:bit</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"serial_on_data_received\" x=\"1014\" y=\"20\"><value name=\"delimiters\"><shadow type=\"serial_delimiter_conv\"><field name=\"del\">Delimiters.CarriageReturn</field></shadow></value><statement name=\"HANDLER\"><block type=\"rover_stop_all\"><field name=\"act\">MotorActions.Stop</field></block></statement></block><block type=\"device_forever\" x=\"1043\" y=\"179\"><statement name=\"HANDLER\"><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">Robot en marche</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></statement></block><block type=\"control_in_background\" x=\"-127\" y=\"383\"><statement name=\"HANDLER\"><block type=\"array_insertAt\"><value name=\"list\"><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value><value name=\"index\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value><value name=\"value\"><block type=\"text\"><field name=\"TEXT\">RoverMove_Front</field></block></value><next><block type=\"array_insertAt\"><value name=\"list\"><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value><value name=\"index\"><shadow type=\"math_number\"><field name=\"NUM\">2</field></shadow></value><value name=\"value\"><block type=\"text\"><field name=\"TEXT\">RoverMove_Back</field></block></value><next><block type=\"array_insertAt\"><value name=\"list\"><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value><value name=\"index\"><shadow type=\"math_number\"><field name=\"NUM\">3</field></shadow></value><value name=\"value\"><block type=\"text\"><field name=\"TEXT\">RoverMove_Left</field></block></value><next><block type=\"array_insertAt\"><value name=\"list\"><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value><value name=\"index\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value><value name=\"value\"><block type=\"text\"><field name=\"TEXT\">RoverMove_Back</field></block></value><next><block type=\"array_insertAt\"><value name=\"list\"><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value><value name=\"index\"><shadow type=\"math_number\"><field name=\"NUM\">5</field></shadow></value><value name=\"value\"><block type=\"text\"><field name=\"TEXT\">Battery_Tension</field></block></value><next><block type=\"synth_set_volume\"><value name=\"volume\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Volume\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_set_group\"><value name=\"ID\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" precision=\"0\"></mutation><field name=\"SLIDER\">2012</field></shadow></value><next><block type=\"radio_set_frequency_band\"><value name=\"band\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"83\" precision=\"0\"></mutation><field name=\"SLIDER\">80</field></shadow></value><next><block type=\"radio_set_transmit_power\"><value name=\"power\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"7\" precision=\"0\"></mutation><field name=\"SLIDER\">450</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type=\"device_forever\" x=\"1029\" y=\"364\"><statement name=\"HANDLER\"><block type=\"music_playable_play\"><field name=\"playbackMode\">music.PlaybackMode.UntilDone</field><value name=\"toPlay\"><shadow type=\"music_tone_playable\" disabled-reasons=\"MANUALLY_DISABLED\"><value name=\"note\"><shadow type=\"device_note\" disabled-reasons=\"MANUALLY_DISABLED\"><field name=\"name\">262</field></shadow></value><value name=\"duration\"><shadow type=\"device_beat\" disabled-reasons=\"MANUALLY_DISABLED\"><field name=\"fraction\">BeatFraction.Whole</field></shadow></value></shadow><block type=\"music_tone_playable\"><value name=\"note\"><shadow type=\"device_note\" disabled-reasons=\"MANUALLY_DISABLED\"><field name=\"name\">262</field></shadow><block type=\"sonar_ping\"><field name=\"trig\">DigitalPin.P2</field><field name=\"echo\">DigitalPin.P1</field><field name=\"unit\">PingUnit.Centimeters</field></block></value><value name=\"duration\"><shadow type=\"device_beat\"><field name=\"fraction\">BeatFraction.Breve</field></shadow></value></block></value></block></statement></block><block type=\"radio_on_string_drag\" x=\"1029\" y=\"624\"><value name=\"HANDLER_DRAG_PARAM_receivedString\"><block type=\"argument_reporter_string\"><mutation duplicateondrag=\"true\"></mutation><field name=\"VALUE\">receivedString</field></block></value><statement name=\"HANDLER\"><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">6000</field></shadow></value></block></statement></block><block type=\"radio_on_number_drag\" x=\"1041\" y=\"785\"><value name=\"HANDLER_DRAG_PARAM_receivedNumber\"><block type=\"argument_reporter_number\"><mutation duplicateondrag=\"true\"></mutation><field name=\"VALUE\">receivedNumber</field></block></value><statement name=\"HANDLER\"><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">6000</field></shadow></value></block></statement></block><block type=\"radio_on_value_drag\" x=\"-134\" y=\"924\"><value name=\"HANDLER_DRAG_PARAM_name\"><block type=\"argument_reporter_string\"><mutation duplicateondrag=\"true\"></mutation><field name=\"VALUE\">name</field></block></value><value name=\"HANDLER_DRAG_PARAM_value\"><block type=\"argument_reporter_number\"><mutation duplicateondrag=\"true\"></mutation><field name=\"VALUE\">value</field></block></value><statement name=\"HANDLER\"><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"argument_reporter_string\"><field name=\"VALUE\">name</field></block></value><value name=\"B\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Front</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"rover_setAllRGB\"><value name=\"ccolor\"><shadow type=\"rover_colors\"><field name=\"color\">RoverColors.Red</field></shadow></value><next><block type=\"rover_set_receive_string\"><value name=\"receivedString\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Front</field></shadow></value><next><block type=\"rover_motor_dual\"><value name=\"speed1\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed1\" precision=\"0\"></mutation><field name=\"SLIDER\">50</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><value name=\"speed2\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed2\" precision=\"0\"></mutation><field name=\"SLIDER\">50</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><next><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">4</field></shadow></value><next><block type=\"rover_stop_all\"><field name=\"act\">MotorActions.Brake</field></block></next></block></next></block></next></block></next></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"argument_reporter_string\"><field name=\"VALUE\">name</field></block></value><value name=\"B\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Back</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"rover_setAllRGB\"><value name=\"ccolor\"><shadow type=\"rover_colors\"><field name=\"color\">RoverColors.Orange</field></shadow></value><next><block type=\"rover_set_receive_string\"><value name=\"receivedString\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Back</field></shadow></value><next><block type=\"rover_motor_dual\"><value name=\"speed1\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed1\" precision=\"0\"></mutation><field name=\"SLIDER\">50</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><value name=\"speed2\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed2\" precision=\"0\"></mutation><field name=\"SLIDER\">50</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><next><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">4</field></shadow></value><next><block type=\"rover_stop_all\"><field name=\"act\">MotorActions.Brake</field></block></next></block></next></block></next></block></next></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"argument_reporter_string\"><field name=\"VALUE\">name</field></block></value><value name=\"B\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Left</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"rover_setAllRGB\"><value name=\"ccolor\"><shadow type=\"rover_colors\"><field name=\"color\">RoverColors.Green</field></shadow></value><next><block type=\"rover_set_receive_string\"><value name=\"receivedString\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Left</field></shadow></value><next><block type=\"rover_motor_dual\"><value name=\"speed1\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed1\" precision=\"0\"></mutation><field name=\"SLIDER\">50</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><value name=\"speed2\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed2\" precision=\"0\"></mutation><field name=\"SLIDER\">0</field></shadow></value><next><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">4</field></shadow></value><next><block type=\"rover_stop_all\"><field name=\"act\">MotorActions.Brake</field></block></next></block></next></block></next></block></next></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"argument_reporter_string\"><field name=\"VALUE\">name</field></block></value><value name=\"B\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Right</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"rover_setAllRGB\"><value name=\"ccolor\"><shadow type=\"rover_colors\"><field name=\"color\">RoverColors.Yellow</field></shadow></value><next><block type=\"rover_set_receive_string\"><value name=\"receivedString\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Right</field></shadow></value><next><block type=\"rover_motor_dual\"><value name=\"speed1\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed1\" precision=\"0\"></mutation><field name=\"SLIDER\">0</field></shadow></value><value name=\"speed2\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed2\" precision=\"0\"></mutation><field name=\"SLIDER\">50</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><next><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">4</field></shadow></value><next><block type=\"rover_stop_all\"><field name=\"act\">MotorActions.Brake</field></block></next></block></next></block></next></block></next></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"text\" disabled-reasons=\"MANUALLY_DISABLED\"><field name=\"TEXT\"></field></shadow><block type=\"argument_reporter_string\"><field name=\"VALUE\">name</field></block></value><value name=\"B\"><shadow type=\"text\"><field name=\"TEXT\">Battery_Tension</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"rover_setAllRGB\"><value name=\"ccolor\"><shadow type=\"rover_colors\"><field name=\"color\">RoverColors.Black</field></shadow></value><next><block type=\"rover_set_receive_string\"><value name=\"receivedString\"><shadow type=\"text\"><field name=\"TEXT\">Battery_Tension</field></shadow></value><next><block type=\"radioBroadcastMessage\"><value name=\"msg\"><shadow type=\"radioMessageCode\"><field name=\"MEMBER\">message1</field></shadow><block type=\"rover_bettery_level\"></block></value></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></statement></block><block type=\"device_gesture_event\" x=\"1035\" y=\"930\"><field name=\"NAME\">Gesture.Shake</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.Shake</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-SECOUER</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"device_get_button2\" disabled-reasons=\"ORPHANED_BLOCK,MANUALLY_DISABLED\" x=\"314\" y=\"1182\"><field name=\"NAME\">Button.A</field></block><block type=\"device_gesture_event\" x=\"1053\" y=\"1203\"><field name=\"NAME\">Gesture.FreeFall</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.FreeFall</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-CHUTELIBRE</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"device_gesture_event\" x=\"1049\" y=\"1475\"><field name=\"NAME\">Gesture.ScreenDown</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.ScreenDown</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-ECRANVERSLEBAS</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"device_gesture_event\" x=\"1046\" y=\"1701\"><field name=\"NAME\">Gesture.EightG</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.EightG</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-8G</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"device_gesture_event\" x=\"1042\" y=\"1963\"><field name=\"NAME\">Gesture.ThreeG</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.Shake</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-3G</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"device_gesture_event\" x=\"1035\" y=\"2230\"><field name=\"NAME\">Gesture.SixG</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.SixG</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-6G</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"device_gesture_event\" x=\"1034\" y=\"2500\"><field name=\"NAME\">Gesture.ScreenUp</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.ScreenUp</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-ECRANVERSLEHAUT</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block></xml>","main.ts":"","README.md":"","main.py":"def on_data_received():\n Rover.motor_stop_all(MotorActions.STOP)\nserial.on_data_received(serial.delimiters(Delimiters.CARRIAGE_RETURN),\n on_data_received)\n\ndef on_received_value(name, value):\n if name == \"\":\n pass\n if name == \"\":\n pass\n if name == \"\":\n pass\n if \"\" == \"\":\n pass\nradio.on_received_value(on_received_value)\n\ndef on_forever():\n if control.device_serial_number() == 4785 and control.device_name() == \"E750rover_perif\":\n serial.redirect(SerialPin.USB_TX, SerialPin.USB_RX, BaudRate.BAUD_RATE4800)\n serial.write_string(\"Séance modifications lancer veuillez communiquer via la console micro:bit\")\nbasic.forever(on_forever)\n\ndef on_forever2():\n radio.send_number(sonar.ping(DigitalPin.P2, DigitalPin.P1, PingUnit.CENTIMETERS))\nbasic.forever(on_forever2)\n\ndef on_forever3():\n radio.send_value(\"Robot en marche\", 1e+44)\nbasic.forever(on_forever3)\n\ndef on_forever4():\n music.play(music.tone_playable(sonar.ping(DigitalPin.P2, DigitalPin.P1, PingUnit.CENTIMETERS),\n music.beat(BeatFraction.BREVE)),\n music.PlaybackMode.UNTIL_DONE)\nbasic.forever(on_forever4)\n\ndef on_forever5():\n pass\nbasic.forever(on_forever5)\n\ndef on_in_background():\n music.set_volume(255)\n radio.set_group(2012)\n radio.set_frequency_band(80)\n radio.set_transmit_power(450)\ncontrol.in_background(on_in_background)\n","pxt.json":"{\n \"name\": \"RoverE750\",\n \"description\": \"\",\n \"dependencies\": {\n \"core\": \"*\",\n \"radio\": \"*\",\n \"microphone\": \"*\",\n \"Rover\": \"github:freenove/makecode-extension-rover#v1.0.7\",\n \"pxt-muselab\": \"github:muselab/pxt-wifi-shield#v1.9.60\",\n \"pxt-sonar\": \"github:microsoft/pxt-sonar#v0.0.6\",\n \"radio-broadcast\": \"*\",\n \"pxt-microbit-hardwario\": \"github:hardwario/pxt-microbit-hardwario#v1.0.1\"\n },\n \"files\": [\n \"main.blocks\",\n \"main.ts\",\n \"README.md\",\n \"main.py\"\n ],\n \"targetVersions\": {\n \"branch\": \"v7.0.51\",\n \"tag\": \"v7.0.51\",\n \"commits\": \"https://github.com/microsoft/pxt-microbit/commits/c3819f016bd720d0eb86efea9a84dcd4fc7b2e1f\",\n \"target\": \"7.0.51\",\n \"pxt\": \"11.1.5\"\n },\n \"preferredEditor\": \"blocksprj\",\n \"yotta\": {\n \"config\": {\n \"microbit-dal\": {\n \"bluetooth\": {\n \"open\": 0,\n \"whitelist\": 1,\n \"security_level\": \"SECURITY_MODE_ENCRYPTION_WITH_MITM\"\n }\n }\n }\n }\n}\n"}},{"timestamp":1731083712712,"editorVersion":"7.0.51","text":{"main.blocks":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable type=\"RadioMessage\" id=\"7F+ZMx~Z~KFwQ+zNfr)U\">0message1</variable><variable id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</variable></variables><block type=\"device_forever\" x=\"1012\" y=\"-298\"><statement name=\"HANDLER\"><block type=\"radio_datagram_send\"><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"sonar_ping\"><field name=\"trig\">DigitalPin.P2</field><field name=\"echo\">DigitalPin.P1</field><field name=\"unit\">PingUnit.Centimeters</field></block></value></block></statement></block><block type=\"device_forever\" x=\"-159\" y=\"-118\"><statement name=\"HANDLER\"><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_operation\"><field name=\"OP\">AND</field><value name=\"A\"><shadow type=\"logic_boolean\" disabled-reasons=\"MANUALLY_DISABLED\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"control_device_serial_number\"></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">4785</field></shadow></value></block></value><value name=\"B\"><shadow type=\"logic_boolean\" disabled-reasons=\"ORPHANED_BLOCK,MANUALLY_DISABLED\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"control_device_name\"></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"text\"><field name=\"TEXT\">E750rover_perif</field></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"serial_redirect\"><field name=\"tx\">SerialPin.USB_TX</field><field name=\"rx\">SerialPin.USB_RX</field><field name=\"rate\">BaudRate.BaudRate4800</field><next><block type=\"serial_writestring\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">Séance modifications lancer veuillez communiquer via la console micro:bit</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"serial_on_data_received\" x=\"991\" y=\"-24\"><value name=\"delimiters\"><shadow type=\"serial_delimiter_conv\"><field name=\"del\">Delimiters.CarriageReturn</field></shadow></value><statement name=\"HANDLER\"><block type=\"rover_stop_all\"><field name=\"act\">MotorActions.Stop</field></block></statement></block><block type=\"device_forever\" x=\"1020\" y=\"135\"><statement name=\"HANDLER\"><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">Robot en marche</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></statement></block><block type=\"control_in_background\" x=\"-150\" y=\"339\"><statement name=\"HANDLER\"><block type=\"array_insertAt\"><value name=\"list\"><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value><value name=\"index\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value><value name=\"value\"><block type=\"text\"><field name=\"TEXT\">RoverMove_Front</field></block></value><next><block type=\"array_insertAt\"><value name=\"list\"><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value><value name=\"index\"><shadow type=\"math_number\"><field name=\"NUM\">2</field></shadow></value><value name=\"value\"><block type=\"text\"><field name=\"TEXT\">RoverMove_Back</field></block></value><next><block type=\"array_insertAt\"><value name=\"list\"><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value><value name=\"index\"><shadow type=\"math_number\"><field name=\"NUM\">3</field></shadow></value><value name=\"value\"><block type=\"text\"><field name=\"TEXT\">RoverMove_Left</field></block></value><next><block type=\"array_insertAt\"><value name=\"list\"><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value><value name=\"index\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value><value name=\"value\"><block type=\"text\"><field name=\"TEXT\">RoverMove_Back</field></block></value><next><block type=\"array_insertAt\"><value name=\"list\"><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value><value name=\"index\"><shadow type=\"math_number\"><field name=\"NUM\">5</field></shadow></value><value name=\"value\"><block type=\"text\"><field name=\"TEXT\">Battery_Tension</field></block></value><next><block type=\"synth_set_volume\"><value name=\"volume\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Volume\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_set_group\"><value name=\"ID\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" precision=\"0\"></mutation><field name=\"SLIDER\">2012</field></shadow></value><next><block type=\"radio_set_frequency_band\"><value name=\"band\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"83\" precision=\"0\"></mutation><field name=\"SLIDER\">80</field></shadow></value><next><block type=\"radio_set_transmit_power\"><value name=\"power\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"7\" precision=\"0\"></mutation><field name=\"SLIDER\">450</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type=\"device_forever\" x=\"1006\" y=\"320\"><statement name=\"HANDLER\"><block type=\"music_playable_play\"><field name=\"playbackMode\">music.PlaybackMode.UntilDone</field><value name=\"toPlay\"><shadow type=\"music_tone_playable\" disabled-reasons=\"MANUALLY_DISABLED\"><value name=\"note\"><shadow type=\"device_note\" disabled-reasons=\"MANUALLY_DISABLED\"><field name=\"name\">262</field></shadow></value><value name=\"duration\"><shadow type=\"device_beat\" disabled-reasons=\"MANUALLY_DISABLED\"><field name=\"fraction\">BeatFraction.Whole</field></shadow></value></shadow><block type=\"music_tone_playable\"><value name=\"note\"><shadow type=\"device_note\" disabled-reasons=\"MANUALLY_DISABLED\"><field name=\"name\">262</field></shadow><block type=\"sonar_ping\"><field name=\"trig\">DigitalPin.P2</field><field name=\"echo\">DigitalPin.P1</field><field name=\"unit\">PingUnit.Centimeters</field></block></value><value name=\"duration\"><shadow type=\"device_beat\"><field name=\"fraction\">BeatFraction.Breve</field></shadow></value></block></value></block></statement></block><block type=\"radio_on_string_drag\" x=\"1006\" y=\"580\"><value name=\"HANDLER_DRAG_PARAM_receivedString\"><block type=\"argument_reporter_string\"><mutation duplicateondrag=\"true\"></mutation><field name=\"VALUE\">receivedString</field></block></value><statement name=\"HANDLER\"><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">6000</field></shadow></value></block></statement></block><block type=\"radio_on_number_drag\" x=\"1018\" y=\"741\"><value name=\"HANDLER_DRAG_PARAM_receivedNumber\"><block type=\"argument_reporter_number\"><mutation duplicateondrag=\"true\"></mutation><field name=\"VALUE\">receivedNumber</field></block></value><statement name=\"HANDLER\"><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">6000</field></shadow></value></block></statement></block><block type=\"radio_on_value_drag\" x=\"-195\" y=\"904\"><value name=\"HANDLER_DRAG_PARAM_name\"><block type=\"argument_reporter_string\"><mutation duplicateondrag=\"true\"></mutation><field name=\"VALUE\">name</field></block></value><value name=\"HANDLER_DRAG_PARAM_value\"><block type=\"argument_reporter_number\"><mutation duplicateondrag=\"true\"></mutation><field name=\"VALUE\">value</field></block></value><statement name=\"HANDLER\"><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">NEQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value></block></value><statement name=\"DO0\"><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">6000</field></shadow></value></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"argument_reporter_string\"><field name=\"VALUE\">name</field></block></value><value name=\"B\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value></block></value><statement name=\"DO0\"><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">6000</field></shadow></value></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"argument_reporter_string\"><field name=\"VALUE\">name</field></block></value><value name=\"B\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Front</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"rover_setAllRGB\"><value name=\"ccolor\"><shadow type=\"rover_colors\"><field name=\"color\">RoverColors.Red</field></shadow></value><next><block type=\"rover_set_receive_string\"><value name=\"receivedString\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Front</field></shadow></value><next><block type=\"rover_motor_dual\"><value name=\"speed1\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed1\" precision=\"0\"></mutation><field name=\"SLIDER\">50</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><value name=\"speed2\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed2\" precision=\"0\"></mutation><field name=\"SLIDER\">50</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><next><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">4</field></shadow></value><next><block type=\"rover_stop_all\"><field name=\"act\">MotorActions.Brake</field></block></next></block></next></block></next></block></next></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"argument_reporter_string\"><field name=\"VALUE\">name</field></block></value><value name=\"B\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Back</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"rover_setAllRGB\"><value name=\"ccolor\"><shadow type=\"rover_colors\"><field name=\"color\">RoverColors.Orange</field></shadow></value><next><block type=\"rover_set_receive_string\"><value name=\"receivedString\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Back</field></shadow></value><next><block type=\"rover_motor_dual\"><value name=\"speed1\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed1\" precision=\"0\"></mutation><field name=\"SLIDER\">50</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><value name=\"speed2\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed2\" precision=\"0\"></mutation><field name=\"SLIDER\">50</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><next><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">4</field></shadow></value><next><block type=\"rover_stop_all\"><field name=\"act\">MotorActions.Brake</field></block></next></block></next></block></next></block></next></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"argument_reporter_string\"><field name=\"VALUE\">name</field></block></value><value name=\"B\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Left</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"rover_setAllRGB\"><value name=\"ccolor\"><shadow type=\"rover_colors\"><field name=\"color\">RoverColors.Green</field></shadow></value><next><block type=\"rover_set_receive_string\"><value name=\"receivedString\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Left</field></shadow></value><next><block type=\"rover_motor_dual\"><value name=\"speed1\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed1\" precision=\"0\"></mutation><field name=\"SLIDER\">50</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><value name=\"speed2\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed2\" precision=\"0\"></mutation><field name=\"SLIDER\">0</field></shadow></value><next><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">4</field></shadow></value><next><block type=\"rover_stop_all\"><field name=\"act\">MotorActions.Brake</field></block></next></block></next></block></next></block></next></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"argument_reporter_string\"><field name=\"VALUE\">name</field></block></value><value name=\"B\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Right</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"rover_setAllRGB\"><value name=\"ccolor\"><shadow type=\"rover_colors\"><field name=\"color\">RoverColors.Yellow</field></shadow></value><next><block type=\"rover_set_receive_string\"><value name=\"receivedString\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Right</field></shadow></value><next><block type=\"rover_motor_dual\"><value name=\"speed1\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed1\" precision=\"0\"></mutation><field name=\"SLIDER\">0</field></shadow></value><value name=\"speed2\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed2\" precision=\"0\"></mutation><field name=\"SLIDER\">50</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><next><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">4</field></shadow></value><next><block type=\"rover_stop_all\"><field name=\"act\">MotorActions.Brake</field></block></next></block></next></block></next></block></next></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"text\" disabled-reasons=\"MANUALLY_DISABLED\"><field name=\"TEXT\"></field></shadow><block type=\"argument_reporter_string\"><field name=\"VALUE\">name</field></block></value><value name=\"B\"><shadow type=\"text\"><field name=\"TEXT\">Battery_Tension</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"rover_setAllRGB\"><value name=\"ccolor\"><shadow type=\"rover_colors\"><field name=\"color\">RoverColors.Black</field></shadow></value><next><block type=\"rover_set_receive_string\"><value name=\"receivedString\"><shadow type=\"text\"><field name=\"TEXT\">Battery_Tension</field></shadow></value><next><block type=\"radioBroadcastMessage\"><value name=\"msg\"><shadow type=\"radioMessageCode\"><field name=\"MEMBER\">message1</field></shadow><block type=\"rover_bettery_level\"></block></value></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type=\"device_gesture_event\" x=\"1012\" y=\"886\"><field name=\"NAME\">Gesture.Shake</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.Shake</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-SECOUER</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"device_gesture_event\" x=\"1030\" y=\"1159\"><field name=\"NAME\">Gesture.FreeFall</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.FreeFall</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-CHUTELIBRE</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"device_gesture_event\" x=\"1026\" y=\"1431\"><field name=\"NAME\">Gesture.ScreenDown</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.ScreenDown</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-ECRANVERSLEBAS</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"device_gesture_event\" x=\"1023\" y=\"1657\"><field name=\"NAME\">Gesture.EightG</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.EightG</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-8G</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"device_gesture_event\" x=\"1019\" y=\"1919\"><field name=\"NAME\">Gesture.ThreeG</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.Shake</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-3G</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"device_gesture_event\" x=\"1012\" y=\"2186\"><field name=\"NAME\">Gesture.SixG</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.SixG</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-6G</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"device_gesture_event\" x=\"1011\" y=\"2456\"><field name=\"NAME\">Gesture.ScreenUp</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.ScreenUp</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-ECRANVERSLEHAUT</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block></xml>","main.ts":"enum RadioMessage {\n message1 = 49434\n}\nlet Autorised: string[] = []\nradio.onReceivedNumber(function (receivedNumber) {\n control.waitMicros(6000)\n})\ninput.onGesture(Gesture.EightG, function () {\n while (input.isGesture(Gesture.EightG)) {\n input.setSoundThreshold(SoundThreshold.Loud, 255)\n radio.sendValue(\"ALERTE-8G\", 1e+44)\n }\n})\ninput.onGesture(Gesture.SixG, function () {\n while (input.isGesture(Gesture.SixG)) {\n input.setSoundThreshold(SoundThreshold.Loud, 255)\n radio.sendValue(\"ALERTE-6G\", 1e+44)\n }\n})\nserial.onDataReceived(serial.delimiters(Delimiters.CarriageReturn), function () {\n Rover.MotorStopAll(MotorActions.Stop)\n})\nradio.onReceivedString(function (receivedString) {\n control.waitMicros(6000)\n})\ninput.onGesture(Gesture.Shake, function () {\n while (input.isGesture(Gesture.Shake)) {\n input.setSoundThreshold(SoundThreshold.Loud, 255)\n radio.sendValue(\"ALERTE-SECOUER\", 1e+44)\n }\n})\nradio.onReceivedValue(function (name, value) {\n if (value != Autorised) {\n control.waitMicros(6000)\n }\n if (name == \"Autorised\") {\n control.waitMicros(6000)\n }\n if (name == \"RoverMove_Front\") {\n Rover.setALLRGB(Rover.colors(RoverColors.Red))\n Rover.setReceiveString(\"RoverMove_Front\")\n Rover.MotorRunDual(value, value)\n control.waitMicros(4)\n Rover.MotorStopAll(MotorActions.Brake)\n }\n if (name == \"RoverMove_Back\") {\n Rover.setALLRGB(Rover.colors(RoverColors.Orange))\n Rover.setReceiveString(\"RoverMove_Back\")\n Rover.MotorRunDual(value, value)\n control.waitMicros(4)\n Rover.MotorStopAll(MotorActions.Brake)\n }\n if (name == \"RoverMove_Left\") {\n Rover.setALLRGB(Rover.colors(RoverColors.Green))\n Rover.setReceiveString(\"RoverMove_Left\")\n Rover.MotorRunDual(value, 0)\n control.waitMicros(4)\n Rover.MotorStopAll(MotorActions.Brake)\n }\n if (name == \"RoverMove_Right\") {\n Rover.setALLRGB(Rover.colors(RoverColors.Yellow))\n Rover.setReceiveString(\"RoverMove_Right\")\n Rover.MotorRunDual(0, value)\n control.waitMicros(4)\n Rover.MotorStopAll(MotorActions.Brake)\n }\n if (name == \"Battery_Tension\") {\n Rover.setALLRGB(Rover.colors(RoverColors.Black))\n Rover.setReceiveString(\"Battery_Tension\")\n radio.sendMessage(Rover.BatteryLevel())\n }\n})\ninput.onGesture(Gesture.ScreenUp, function () {\n while (input.isGesture(Gesture.ScreenUp)) {\n input.setSoundThreshold(SoundThreshold.Loud, 255)\n radio.sendValue(\"ALERTE-ECRANVERSLEHAUT\", 1e+44)\n }\n})\ninput.onGesture(Gesture.FreeFall, function () {\n while (input.isGesture(Gesture.FreeFall)) {\n input.setSoundThreshold(SoundThreshold.Loud, 255)\n radio.sendValue(\"ALERTE-CHUTELIBRE\", 1e+44)\n }\n})\ninput.onGesture(Gesture.ScreenDown, function () {\n while (input.isGesture(Gesture.ScreenDown)) {\n input.setSoundThreshold(SoundThreshold.Loud, 255)\n radio.sendValue(\"ALERTE-ECRANVERSLEBAS\", 1e+44)\n }\n})\ninput.onGesture(Gesture.ThreeG, function () {\n while (input.isGesture(Gesture.Shake)) {\n input.setSoundThreshold(SoundThreshold.Loud, 255)\n radio.sendValue(\"ALERTE-3G\", 1e+44)\n }\n})\nbasic.forever(function () {\n radio.sendNumber(sonar.ping(\n DigitalPin.P2,\n DigitalPin.P1,\n PingUnit.Centimeters\n ))\n})\nbasic.forever(function () {\n if (control.deviceSerialNumber() == 4785 && control.deviceName() == \"E750rover_perif\") {\n serial.redirect(\n SerialPin.USB_TX,\n SerialPin.USB_RX,\n BaudRate.BaudRate4800\n )\n serial.writeString(\"Séance modifications lancer veuillez communiquer via la console micro:bit\")\n }\n})\nbasic.forever(function () {\n radio.sendValue(\"Robot en marche\", 1e+44)\n})\nbasic.forever(function () {\n music.play(music.tonePlayable(sonar.ping(\n DigitalPin.P2,\n DigitalPin.P1,\n PingUnit.Centimeters\n ), music.beat(BeatFraction.Breve)), music.PlaybackMode.UntilDone)\n})\ncontrol.inBackground(function () {\n Autorised.insertAt(1, \"RoverMove_Front\")\n Autorised.insertAt(2, \"RoverMove_Back\")\n Autorised.insertAt(3, \"RoverMove_Left\")\n Autorised.insertAt(4, \"RoverMove_Back\")\n Autorised.insertAt(5, \"Battery_Tension\")\n music.setVolume(255)\n radio.setGroup(2012)\n radio.setFrequencyBand(80)\n radio.setTransmitPower(450)\n})\n","README.md":"","main.py":"def on_data_received():\n Rover.motor_stop_all(MotorActions.STOP)\nserial.on_data_received(serial.delimiters(Delimiters.CARRIAGE_RETURN),\n on_data_received)\n\ndef on_received_value(name, value):\n if name == \"\":\n pass\n if name == \"\":\n pass\n if name == \"\":\n pass\n if \"\" == \"\":\n pass\nradio.on_received_value(on_received_value)\n\ndef on_forever():\n if control.device_serial_number() == 4785 and control.device_name() == \"E750rover_perif\":\n serial.redirect(SerialPin.USB_TX, SerialPin.USB_RX, BaudRate.BAUD_RATE4800)\n serial.write_string(\"Séance modifications lancer veuillez communiquer via la console micro:bit\")\nbasic.forever(on_forever)\n\ndef on_forever2():\n radio.send_number(sonar.ping(DigitalPin.P2, DigitalPin.P1, PingUnit.CENTIMETERS))\nbasic.forever(on_forever2)\n\ndef on_forever3():\n radio.send_value(\"Robot en marche\", 1e+44)\nbasic.forever(on_forever3)\n\ndef on_forever4():\n music.play(music.tone_playable(sonar.ping(DigitalPin.P2, DigitalPin.P1, PingUnit.CENTIMETERS),\n music.beat(BeatFraction.BREVE)),\n music.PlaybackMode.UNTIL_DONE)\nbasic.forever(on_forever4)\n\ndef on_forever5():\n pass\nbasic.forever(on_forever5)\n\ndef on_in_background():\n music.set_volume(255)\n radio.set_group(2012)\n radio.set_frequency_band(80)\n radio.set_transmit_power(450)\ncontrol.in_background(on_in_background)\n","pxt.json":"{\n \"name\": \"RoverE750\",\n \"description\": \"\",\n \"dependencies\": {\n \"core\": \"*\",\n \"radio\": \"*\",\n \"microphone\": \"*\",\n \"Rover\": \"github:freenove/makecode-extension-rover#v1.0.7\",\n \"pxt-muselab\": \"github:muselab/pxt-wifi-shield#v1.9.60\",\n \"pxt-sonar\": \"github:microsoft/pxt-sonar#v0.0.6\",\n \"radio-broadcast\": \"*\",\n \"pxt-microbit-hardwario\": \"github:hardwario/pxt-microbit-hardwario#v1.0.1\"\n },\n \"files\": [\n \"main.blocks\",\n \"main.ts\",\n \"README.md\",\n \"main.py\"\n ],\n \"targetVersions\": {\n \"branch\": \"v7.0.51\",\n \"tag\": \"v7.0.51\",\n \"commits\": \"https://github.com/microsoft/pxt-microbit/commits/c3819f016bd720d0eb86efea9a84dcd4fc7b2e1f\",\n \"target\": \"7.0.51\",\n \"pxt\": \"11.1.5\"\n },\n \"preferredEditor\": \"tsprj\",\n \"yotta\": {\n \"config\": {\n \"microbit-dal\": {\n \"bluetooth\": {\n \"open\": 0,\n \"whitelist\": 1,\n \"security_level\": \"SECURITY_MODE_ENCRYPTION_WITH_MITM\"\n }\n }\n }\n }\n}\n"}},{"timestamp":1731086126787,"editorVersion":"7.0.51","text":{"main.blocks":"<xml xmlns=\"https://developers.google.com/blockly/xml\"><variables><variable type=\"RadioMessage\" id=\"7F+ZMx~Z~KFwQ+zNfr)U\">0message1</variable><variable id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</variable></variables><block type=\"device_forever\" x=\"1012\" y=\"-298\"><statement name=\"HANDLER\"><block type=\"radio_datagram_send\"><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"sonar_ping\"><field name=\"trig\">DigitalPin.P2</field><field name=\"echo\">DigitalPin.P1</field><field name=\"unit\">PingUnit.Centimeters</field></block></value></block></statement></block><block type=\"device_forever\" x=\"-159\" y=\"-118\"><statement name=\"HANDLER\"><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_operation\"><field name=\"OP\">AND</field><value name=\"A\"><shadow type=\"logic_boolean\" disabled-reasons=\"MANUALLY_DISABLED\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"control_device_serial_number\"></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">4785</field></shadow></value></block></value><value name=\"B\"><shadow type=\"logic_boolean\" disabled-reasons=\"ORPHANED_BLOCK,MANUALLY_DISABLED\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"control_device_name\"></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"text\"><field name=\"TEXT\">E750rover_perif</field></block></value></block></value></block></value><statement name=\"DO0\"><block type=\"serial_redirect\"><field name=\"tx\">SerialPin.USB_TX</field><field name=\"rx\">SerialPin.USB_RX</field><field name=\"rate\">BaudRate.BaudRate4800</field><next><block type=\"serial_writestring\"><value name=\"text\"><shadow type=\"text\"><field name=\"TEXT\">Séance modifications lancer veuillez communiquer via la console micro:bit</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"serial_on_data_received\" x=\"991\" y=\"-24\"><value name=\"delimiters\"><shadow type=\"serial_delimiter_conv\"><field name=\"del\">Delimiters.CarriageReturn</field></shadow></value><statement name=\"HANDLER\"><block type=\"rover_stop_all\"><field name=\"act\">MotorActions.Stop</field></block></statement></block><block type=\"device_forever\" x=\"1020\" y=\"135\"><statement name=\"HANDLER\"><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">Robot en marche</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></statement></block><block type=\"control_in_background\" x=\"-150\" y=\"339\"><statement name=\"HANDLER\"><block type=\"array_insertAt\"><value name=\"list\"><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value><value name=\"index\"><shadow type=\"math_number\"><field name=\"NUM\">1</field></shadow></value><value name=\"value\"><block type=\"text\"><field name=\"TEXT\">RoverMove_Front</field></block></value><next><block type=\"array_insertAt\"><value name=\"list\"><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value><value name=\"index\"><shadow type=\"math_number\"><field name=\"NUM\">2</field></shadow></value><value name=\"value\"><block type=\"text\"><field name=\"TEXT\">RoverMove_Back</field></block></value><next><block type=\"array_insertAt\"><value name=\"list\"><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value><value name=\"index\"><shadow type=\"math_number\"><field name=\"NUM\">3</field></shadow></value><value name=\"value\"><block type=\"text\"><field name=\"TEXT\">RoverMove_Left</field></block></value><next><block type=\"array_insertAt\"><value name=\"list\"><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value><value name=\"index\"><shadow type=\"math_number\"><field name=\"NUM\">4</field></shadow></value><value name=\"value\"><block type=\"text\"><field name=\"TEXT\">RoverMove_Back</field></block></value><next><block type=\"array_insertAt\"><value name=\"list\"><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value><value name=\"index\"><shadow type=\"math_number\"><field name=\"NUM\">5</field></shadow></value><value name=\"value\"><block type=\"text\"><field name=\"TEXT\">Battery_Tension</field></block></value><next><block type=\"synth_set_volume\"><value name=\"volume\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Volume\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_set_group\"><value name=\"ID\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" precision=\"0\"></mutation><field name=\"SLIDER\">2012</field></shadow></value><next><block type=\"radio_set_frequency_band\"><value name=\"band\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"83\" precision=\"0\"></mutation><field name=\"SLIDER\">80</field></shadow></value><next><block type=\"radio_set_transmit_power\"><value name=\"power\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"7\" precision=\"0\"></mutation><field name=\"SLIDER\">450</field></shadow></value></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type=\"device_forever\" x=\"1006\" y=\"320\"><statement name=\"HANDLER\"><block type=\"music_playable_play\"><field name=\"playbackMode\">music.PlaybackMode.UntilDone</field><value name=\"toPlay\"><shadow type=\"music_tone_playable\" disabled-reasons=\"MANUALLY_DISABLED\"><value name=\"note\"><shadow type=\"device_note\" disabled-reasons=\"MANUALLY_DISABLED\"><field name=\"name\">262</field></shadow></value><value name=\"duration\"><shadow type=\"device_beat\" disabled-reasons=\"MANUALLY_DISABLED\"><field name=\"fraction\">BeatFraction.Whole</field></shadow></value></shadow><block type=\"music_tone_playable\"><value name=\"note\"><shadow type=\"device_note\" disabled-reasons=\"MANUALLY_DISABLED\"><field name=\"name\">262</field></shadow><block type=\"sonar_ping\"><field name=\"trig\">DigitalPin.P2</field><field name=\"echo\">DigitalPin.P1</field><field name=\"unit\">PingUnit.Centimeters</field></block></value><value name=\"duration\"><shadow type=\"device_beat\"><field name=\"fraction\">BeatFraction.Breve</field></shadow></value></block></value></block></statement></block><block type=\"radio_on_string_drag\" x=\"1006\" y=\"580\"><value name=\"HANDLER_DRAG_PARAM_receivedString\"><block type=\"argument_reporter_string\"><mutation duplicateondrag=\"true\"></mutation><field name=\"VALUE\">receivedString</field></block></value><statement name=\"HANDLER\"><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">6000</field></shadow></value></block></statement></block><block type=\"radio_on_number_drag\" x=\"1018\" y=\"741\"><value name=\"HANDLER_DRAG_PARAM_receivedNumber\"><block type=\"argument_reporter_number\"><mutation duplicateondrag=\"true\"></mutation><field name=\"VALUE\">receivedNumber</field></block></value><statement name=\"HANDLER\"><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">6000</field></shadow></value></block></statement></block><block type=\"radio_on_value_drag\" x=\"-195\" y=\"904\"><value name=\"HANDLER_DRAG_PARAM_name\"><block type=\"argument_reporter_string\"><mutation duplicateondrag=\"true\"></mutation><field name=\"VALUE\">name</field></block></value><value name=\"HANDLER_DRAG_PARAM_value\"><block type=\"argument_reporter_number\"><mutation duplicateondrag=\"true\"></mutation><field name=\"VALUE\">value</field></block></value><statement name=\"HANDLER\"><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">NEQ</field><value name=\"A\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><value name=\"B\"><shadow type=\"math_number\"><field name=\"NUM\">0</field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value></block></value><statement name=\"DO0\"><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">6000</field></shadow></value></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"argument_reporter_string\"><field name=\"VALUE\">name</field></block></value><value name=\"B\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"variables_get\"><field name=\"VAR\" id=\"/{-^,{fX]aG%J26dUHp}\">Autorised</field></block></value></block></value><statement name=\"DO0\"><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">6000</field></shadow></value></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"argument_reporter_string\"><field name=\"VALUE\">name</field></block></value><value name=\"B\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Front</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"rover_setAllRGB\"><value name=\"ccolor\"><shadow type=\"rover_colors\"><field name=\"color\">RoverColors.Red</field></shadow></value><next><block type=\"rover_set_receive_string\"><value name=\"receivedString\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Front</field></shadow></value><next><block type=\"rover_motor_dual\"><value name=\"speed1\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed1\" precision=\"0\"></mutation><field name=\"SLIDER\">50</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><value name=\"speed2\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed2\" precision=\"0\"></mutation><field name=\"SLIDER\">50</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><next><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">4</field></shadow></value><next><block type=\"rover_stop_all\"><field name=\"act\">MotorActions.Brake</field></block></next></block></next></block></next></block></next></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"argument_reporter_string\"><field name=\"VALUE\">name</field></block></value><value name=\"B\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Back</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"rover_setAllRGB\"><value name=\"ccolor\"><shadow type=\"rover_colors\"><field name=\"color\">RoverColors.Orange</field></shadow></value><next><block type=\"rover_set_receive_string\"><value name=\"receivedString\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Back</field></shadow></value><next><block type=\"rover_motor_dual\"><value name=\"speed1\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed1\" precision=\"0\"></mutation><field name=\"SLIDER\">50</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><value name=\"speed2\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed2\" precision=\"0\"></mutation><field name=\"SLIDER\">50</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><next><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">4</field></shadow></value><next><block type=\"rover_stop_all\"><field name=\"act\">MotorActions.Brake</field></block></next></block></next></block></next></block></next></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"argument_reporter_string\"><field name=\"VALUE\">name</field></block></value><value name=\"B\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Left</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"rover_setAllRGB\"><value name=\"ccolor\"><shadow type=\"rover_colors\"><field name=\"color\">RoverColors.Green</field></shadow></value><next><block type=\"rover_set_receive_string\"><value name=\"receivedString\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Left</field></shadow></value><next><block type=\"rover_motor_dual\"><value name=\"speed1\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed1\" precision=\"0\"></mutation><field name=\"SLIDER\">50</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><value name=\"speed2\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed2\" precision=\"0\"></mutation><field name=\"SLIDER\">0</field></shadow></value><next><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">4</field></shadow></value><next><block type=\"rover_stop_all\"><field name=\"act\">MotorActions.Brake</field></block></next></block></next></block></next></block></next></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"text\"><field name=\"TEXT\"></field></shadow><block type=\"argument_reporter_string\"><field name=\"VALUE\">name</field></block></value><value name=\"B\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Right</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"rover_setAllRGB\"><value name=\"ccolor\"><shadow type=\"rover_colors\"><field name=\"color\">RoverColors.Yellow</field></shadow></value><next><block type=\"rover_set_receive_string\"><value name=\"receivedString\"><shadow type=\"text\"><field name=\"TEXT\">RoverMove_Right</field></shadow></value><next><block type=\"rover_motor_dual\"><value name=\"speed1\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed1\" precision=\"0\"></mutation><field name=\"SLIDER\">0</field></shadow></value><value name=\"speed2\"><shadow type=\"math_number_minmax\"><mutation min=\"-255\" max=\"255\" label=\"Speed2\" precision=\"0\"></mutation><field name=\"SLIDER\">50</field></shadow><block type=\"argument_reporter_number\"><field name=\"VALUE\">value</field></block></value><next><block type=\"control_wait_us\"><value name=\"micros\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"6000\" label=\"Micros\" precision=\"0\"></mutation><field name=\"SLIDER\">4</field></shadow></value><next><block type=\"rover_stop_all\"><field name=\"act\">MotorActions.Brake</field></block></next></block></next></block></next></block></next></block></statement><next><block type=\"controls_if\"><value name=\"IF0\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">TRUE</field></shadow><block type=\"logic_compare\"><field name=\"OP\">EQ</field><value name=\"A\"><shadow type=\"text\" disabled-reasons=\"MANUALLY_DISABLED\"><field name=\"TEXT\"></field></shadow><block type=\"argument_reporter_string\"><field name=\"VALUE\">name</field></block></value><value name=\"B\"><shadow type=\"text\"><field name=\"TEXT\">Battery_Tension</field></shadow></value></block></value><statement name=\"DO0\"><block type=\"rover_setAllRGB\"><value name=\"ccolor\"><shadow type=\"rover_colors\"><field name=\"color\">RoverColors.Black</field></shadow></value><next><block type=\"rover_set_receive_string\"><value name=\"receivedString\"><shadow type=\"text\"><field name=\"TEXT\">Battery_Tension</field></shadow></value><next><block type=\"radioBroadcastMessage\"><value name=\"msg\"><shadow type=\"radioMessageCode\"><field name=\"MEMBER\">message1</field></shadow><block type=\"rover_bettery_level\"></block></value></block></next></block></next></block></statement></block></next></block></next></block></next></block></next></block></next></block></next></block></statement></block><block type=\"device_gesture_event\" x=\"1012\" y=\"886\"><field name=\"NAME\">Gesture.Shake</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.Shake</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-SECOUER</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"device_gesture_event\" x=\"1030\" y=\"1159\"><field name=\"NAME\">Gesture.FreeFall</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.FreeFall</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-CHUTELIBRE</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"device_gesture_event\" x=\"1026\" y=\"1431\"><field name=\"NAME\">Gesture.ScreenDown</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.ScreenDown</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-ECRANVERSLEBAS</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"device_gesture_event\" x=\"1023\" y=\"1657\"><field name=\"NAME\">Gesture.EightG</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.EightG</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-8G</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"device_gesture_event\" x=\"1019\" y=\"1919\"><field name=\"NAME\">Gesture.ThreeG</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.Shake</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-3G</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"device_gesture_event\" x=\"1012\" y=\"2186\"><field name=\"NAME\">Gesture.SixG</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.SixG</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-6G</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block><block type=\"device_gesture_event\" x=\"1011\" y=\"2456\"><field name=\"NAME\">Gesture.ScreenUp</field><statement name=\"HANDLER\"><block type=\"device_while\"><value name=\"COND\"><shadow type=\"logic_boolean\"><field name=\"BOOL\">FALSE</field></shadow><block type=\"deviceisgesture\"><field name=\"gesture\">Gesture.ScreenUp</field></block></value><statement name=\"DO\"><block type=\"input_set_sound_threshold\"><field name=\"sound\">SoundThreshold.Loud</field><value name=\"value\"><shadow type=\"math_number_minmax\"><mutation min=\"0\" max=\"255\" label=\"Threshold\" precision=\"0\"></mutation><field name=\"SLIDER\">255</field></shadow></value><next><block type=\"radio_datagram_send_value\"><value name=\"name\"><shadow type=\"text\"><field name=\"TEXT\">ALERTE-ECRANVERSLEHAUT</field></shadow></value><value name=\"value\"><shadow type=\"math_number\"><field name=\"NUM\">1e+44</field></shadow></value></block></next></block></statement></block></statement></block></xml>","main.ts":"enum RadioMessage {\n message1 = 49434\n}\nlet Autorised: string[] = []\nradio.onReceivedNumber(function (receivedNumber) {\n control.waitMicros(6000)\n})\ninput.onGesture(Gesture.EightG, function () {\n while (input.isGesture(Gesture.EightG)) {\n input.setSoundThreshold(SoundThreshold.Loud, 255)\n radio.sendValue(\"ALERTE-8G\", 1e+44)\n }\n})\ninput.onGesture(Gesture.SixG, function () {\n while (input.isGesture(Gesture.SixG)) {\n input.setSoundThreshold(SoundThreshold.Loud, 255)\n radio.sendValue(\"ALERTE-6G\", 1e+44)\n }\n})\nserial.onDataReceived(serial.delimiters(Delimiters.CarriageReturn), function () {\n Rover.MotorStopAll(MotorActions.Stop)\n})\nradio.onReceivedString(function (receivedString) {\n control.waitMicros(6000)\n})\ninput.onGesture(Gesture.Shake, function () {\n while (input.isGesture(Gesture.Shake)) {\n input.setSoundThreshold(SoundThreshold.Loud, 255)\n radio.sendValue(\"ALERTE-SECOUER\", 1e+44)\n }\n})\nradio.onReceivedValue(function (name, value) {\n if (value != Autorised) {\n control.waitMicros(6000)\n }\n if (name == \"Autorised\") {\n control.waitMicros(6000)\n }\n if (name == \"RoverMove_Front\") {\n Rover.setALLRGB(Rover.colors(RoverColors.Red))\n Rover.setReceiveString(\"RoverMove_Front\")\n Rover.MotorRunDual(value, value)\n control.waitMicros(4)\n Rover.MotorStopAll(MotorActions.Brake)\n }\n if (name == \"RoverMove_Back\") {\n Rover.setALLRGB(Rover.colors(RoverColors.Orange))\n Rover.setReceiveString(\"RoverMove_Back\")\n Rover.MotorRunDual(value, value)\n control.waitMicros(4)\n Rover.MotorStopAll(MotorActions.Brake)\n }\n if (name == \"RoverMove_Left\") {\n Rover.setALLRGB(Rover.colors(RoverColors.Green))\n Rover.setReceiveString(\"RoverMove_Left\")\n Rover.MotorRunDual(value, 0)\n control.waitMicros(4)\n Rover.MotorStopAll(MotorActions.Brake)\n }\n if (name == \"RoverMove_Right\") {\n Rover.setALLRGB(Rover.colors(RoverColors.Yellow))\n Rover.setReceiveString(\"RoverMove_Right\")\n Rover.MotorRunDual(0, value)\n control.waitMicros(4)\n Rover.MotorStopAll(MotorActions.Brake)\n }\n if (name == \"Battery_Tension\") {\n Rover.setALLRGB(Rover.colors(RoverColors.Black))\n Rover.setReceiveString(\"Battery_Tension\")\n radio.sendMessage(Rover.BatteryLevel())\n }\n})\ninput.onGesture(Gesture.ScreenUp, function () {\n while (input.isGesture(Gesture.ScreenUp)) {\n input.setSoundThreshold(SoundThreshold.Loud, 255)\n radio.sendValue(\"ALERTE-ECRANVERSLEHAUT\", 1e+44)\n }\n})\ninput.onGesture(Gesture.FreeFall, function () {\n while (input.isGesture(Gesture.FreeFall)) {\n input.setSoundThreshold(SoundThreshold.Loud, 255)\n radio.sendValue(\"ALERTE-CHUTELIBRE\", 1e+44)\n }\n})\ninput.onGesture(Gesture.ScreenDown, function () {\n while (input.isGesture(Gesture.ScreenDown)) {\n input.setSoundThreshold(SoundThreshold.Loud, 255)\n radio.sendValue(\"ALERTE-ECRANVERSLEBAS\", 1e+44)\n }\n})\ninput.onGesture(Gesture.ThreeG, function () {\n while (input.isGesture(Gesture.Shake)) {\n input.setSoundThreshold(SoundThreshold.Loud, 255)\n radio.sendValue(\"ALERTE-3G\", 1e+44)\n }\n})\nbasic.forever(function () {\n radio.sendNumber(sonar.ping(\n DigitalPin.P2,\n DigitalPin.P1,\n PingUnit.Centimeters\n ))\n})\nbasic.forever(function () {\n if (control.deviceSerialNumber() == 4785 && control.deviceName() == \"E750rover_perif\") {\n serial.redirect(\n SerialPin.USB_TX,\n SerialPin.USB_RX,\n BaudRate.BaudRate4800\n )\n serial.writeString(\"Séance modifications lancer veuillez communiquer via la console micro:bit\")\n }\n})\nbasic.forever(function () {\n radio.sendValue(\"Robot en marche\", 1e+44)\n})\nbasic.forever(function () {\n music.play(music.tonePlayable(sonar.ping(\n DigitalPin.P2,\n DigitalPin.P1,\n PingUnit.Centimeters\n ), music.beat(BeatFraction.Breve)), music.PlaybackMode.UntilDone)\n})\ncontrol.inBackground(function () {\n Autorised.insertAt(1, \"RoverMove_Front\")\n Autorised.insertAt(2, \"RoverMove_Back\")\n Autorised.insertAt(3, \"RoverMove_Left\")\n Autorised.insertAt(4, \"RoverMove_Back\")\n Autorised.insertAt(5, \"Battery_Tension\")\n music.setVolume(255)\n radio.setGroup(2012)\n radio.setFrequencyBand(80)\n radio.setTransmitPower(450)\n})\n","README.md":"","main.py":"def on_data_received():\n Rover.motor_stop_all(MotorActions.STOP)\nserial.on_data_received(serial.delimiters(Delimiters.CARRIAGE_RETURN),\n on_data_received)\n\ndef on_received_value(name, value):\n if name == \"\":\n pass\n if name == \"\":\n pass\n if name == \"\":\n pass\n if \"\" == \"\":\n pass\nradio.on_received_value(on_received_value)\n\ndef on_forever():\n if control.device_serial_number() == 4785 and control.device_name() == \"E750rover_perif\":\n serial.redirect(SerialPin.USB_TX, SerialPin.USB_RX, BaudRate.BAUD_RATE4800)\n serial.write_string(\"Séance modifications lancer veuillez communiquer via la console micro:bit\")\nbasic.forever(on_forever)\n\ndef on_forever2():\n radio.send_number(sonar.ping(DigitalPin.P2, DigitalPin.P1, PingUnit.CENTIMETERS))\nbasic.forever(on_forever2)\n\ndef on_forever3():\n radio.send_value(\"Robot en marche\", 1e+44)\nbasic.forever(on_forever3)\n\ndef on_forever4():\n music.play(music.tone_playable(sonar.ping(DigitalPin.P2, DigitalPin.P1, PingUnit.CENTIMETERS),\n music.beat(BeatFraction.BREVE)),\n music.PlaybackMode.UNTIL_DONE)\nbasic.forever(on_forever4)\n\ndef on_forever5():\n pass\nbasic.forever(on_forever5)\n\ndef on_in_background():\n music.set_volume(255)\n radio.set_group(2012)\n radio.set_frequency_band(80)\n radio.set_transmit_power(450)\ncontrol.in_background(on_in_background)\n","pxt.json":"{\n \"name\": \"RoverE750 JS\",\n \"description\": \"\",\n \"dependencies\": {\n \"core\": \"*\",\n \"radio\": \"*\",\n \"microphone\": \"*\",\n \"Rover\": \"github:freenove/makecode-extension-rover#v1.0.7\",\n \"pxt-muselab\": \"github:muselab/pxt-wifi-shield#v1.9.60\",\n \"pxt-sonar\": \"github:microsoft/pxt-sonar#v0.0.6\",\n \"radio-broadcast\": \"*\",\n \"pxt-microbit-hardwario\": \"github:hardwario/pxt-microbit-hardwario#v1.0.1\"\n },\n \"files\": [\n \"main.blocks\",\n \"main.ts\",\n \"README.md\",\n \"main.py\"\n ],\n \"targetVersions\": {\n \"branch\": \"v7.0.51\",\n \"tag\": \"v7.0.51\",\n \"commits\": \"https://github.com/microsoft/pxt-microbit/commits/c3819f016bd720d0eb86efea9a84dcd4fc7b2e1f\",\n \"target\": \"7.0.51\",\n \"pxt\": \"11.1.5\"\n },\n \"preferredEditor\": \"tsprj\",\n \"yotta\": {\n \"config\": {\n \"microbit-dal\": {\n \"bluetooth\": {\n \"open\": 0,\n \"whitelist\": 1,\n \"security_level\": \"SECURITY_MODE_ENCRYPTION_WITH_MITM\"\n }\n }\n }\n }\n}\n"}}],"shares":[],"lastSaveTime":1731086126804}