{
  "blocks": {
    "languageVersion": 0,
    "blocks": [
      {
        "type": "APM_digital_motor_init",
        "id": "Y@7G[lF$RL_/NB!|~fDy",
        "x": 463,
        "y": -137,
        "fields": {
          "digital_motor_instance": "左轮",
          "port": "1",
          "direction": "False",
          "soft_break": true
        },
        "next": {
          "block": {
            "type": "APM_digital_motor_init",
            "id": "B#KY@Z2?MZ[/YoT)mYBF",
            "fields": {
              "digital_motor_instance": "右轮",
              "port": "2",
              "direction": "True",
              "soft_break": true
            },
            "next": {
              "block": {
                "type": "APM_digital_motor_init",
                "id": "/-Mod{i7w-@C%YR+`dnc",
                "fields": {
                  "digital_motor_instance": "扫把1",
                  "port": "5",
                  "direction": "False",
                  "soft_break": true
                },
                "next": {
                  "block": {
                    "type": "APM_digital_motor_init",
                    "id": "LqT$Dcry0mvn~%3y^y_N",
                    "fields": {
                      "digital_motor_instance": "扫把2",
                      "port": "6",
                      "direction": "True",
                      "soft_break": true
                    },
                    "next": {
                      "block": {
                        "type": "APM_digital_motor_openloop",
                        "id": "g_a{XvjJJL?{)oaO%=Uw",
                        "fields": {
                          "instance": "扫把1"
                        },
                        "inputs": {
                          "speed": {
                            "shadow": {
                              "type": "math_number",
                              "id": "nogaeGp(?4@04[du+cER",
                              "fields": {
                                "NUM": 100
                              }
                            }
                          }
                        },
                        "next": {
                          "block": {
                            "type": "APM_digital_motor_openloop",
                            "id": "tL}5KKy@t.Ohw4!CHy=)",
                            "fields": {
                              "instance": "扫把2"
                            },
                            "inputs": {
                              "speed": {
                                "shadow": {
                                  "type": "math_number",
                                  "id": ";Xw!2p6{lN%C3K^8MCmO",
                                  "fields": {
                                    "NUM": 100
                                  }
                                }
                              }
                            },
                            "next": {
                              "block": {
                                "type": "controls_repeat_ext",
                                "id": "KzDe2%6kEWv!K*R~w5*C",
                                "inputs": {
                                  "TIMES": {
                                    "block": {
                                      "type": "math_number",
                                      "id": "cSIJhMy28+dTaA5U$}k3",
                                      "fields": {
                                        "NUM": 10
                                      }
                                    }
                                  },
                                  "DO": {
                                    "block": {
                                      "type": "procedures_callnoreturn",
                                      "id": "`Y$2!]6$2R{AlILVuH/,",
                                      "extraState": {
                                        "name": "直行",
                                        "params": [
                                          "直行时间"
                                        ]
                                      },
                                      "inputs": {
                                        "ARG0": {
                                          "block": {
                                            "type": "math_number",
                                            "id": "gxd1DyA1/,e@MV,$swfC",
                                            "fields": {
                                              "NUM": 3
                                            }
                                          }
                                        }
                                      },
                                      "next": {
                                        "block": {
                                          "type": "procedures_callnoreturn",
                                          "id": "N246L~]?xNFjxVQjtL3n",
                                          "extraState": {
                                            "name": "马达停止",
                                            "params": [
                                              "停止时间"
                                            ]
                                          },
                                          "inputs": {
                                            "ARG0": {
                                              "block": {
                                                "type": "math_number",
                                                "id": "$dblr).Q?4k7G.!u2_z2",
                                                "fields": {
                                                  "NUM": 1
                                                }
                                              }
                                            }
                                          },
                                          "next": {
                                            "block": {
                                              "type": "procedures_callnoreturn",
                                              "id": "X/(b#owLA:t3hleIgyKO",
                                              "extraState": {
                                                "name": "左转直角"
                                              },
                                              "next": {
                                                "block": {
                                                  "type": "procedures_callnoreturn",
                                                  "id": "?%{|3+_I_-96a/E_s=~?",
                                                  "extraState": {
                                                    "name": "马达停止",
                                                    "params": [
                                                      "停止时间"
                                                    ]
                                                  },
                                                  "inputs": {
                                                    "ARG0": {
                                                      "block": {
                                                        "type": "math_number",
                                                        "id": ",v`P|)%bDQ{*_%qG|Eu0",
                                                        "fields": {
                                                          "NUM": 1
                                                        }
                                                      }
                                                    }
                                                  },
                                                  "next": {
                                                    "block": {
                                                      "type": "procedures_callnoreturn",
                                                      "id": "kt),*NT+nR,J$Q1Q$$,0",
                                                      "extraState": {
                                                        "name": "左转直角"
                                                      },
                                                      "next": {
                                                        "block": {
                                                          "type": "procedures_callnoreturn",
                                                          "id": "g01W/^THAX1gn@wxUr?C",
                                                          "extraState": {
                                                            "name": "马达停止",
                                                            "params": [
                                                              "停止时间"
                                                            ]
                                                          },
                                                          "inputs": {
                                                            "ARG0": {
                                                              "block": {
                                                                "type": "math_number",
                                                                "id": "DsS2HZ?!/3mrQ`W.~B3I",
                                                                "fields": {
                                                                  "NUM": 1
                                                                }
                                                              }
                                                            }
                                                          },
                                                          "next": {
                                                            "block": {
                                                              "type": "procedures_callnoreturn",
                                                              "id": ":0){!k7^kyeFj[:x#xPL",
                                                              "extraState": {
                                                                "name": "直行",
                                                                "params": [
                                                                  "直行时间"
                                                                ]
                                                              },
                                                              "inputs": {
                                                                "ARG0": {
                                                                  "block": {
                                                                    "type": "math_number",
                                                                    "id": "/k)_o#JQw^7{9u?;MtEE",
                                                                    "fields": {
                                                                      "NUM": 3
                                                                    }
                                                                  }
                                                                }
                                                              },
                                                              "next": {
                                                                "block": {
                                                                  "type": "procedures_callnoreturn",
                                                                  "id": "`=69AiC*2gG.NSAL=(Op",
                                                                  "extraState": {
                                                                    "name": "马达停止",
                                                                    "params": [
                                                                      "停止时间"
                                                                    ]
                                                                  },
                                                                  "inputs": {
                                                                    "ARG0": {
                                                                      "block": {
                                                                        "type": "math_number",
                                                                        "id": "6Ux(@e~K_yb3Sl@v=x`L",
                                                                        "fields": {
                                                                          "NUM": 1
                                                                        }
                                                                      }
                                                                    }
                                                                  },
                                                                  "next": {
                                                                    "block": {
                                                                      "type": "procedures_callnoreturn",
                                                                      "id": "J^@E%E}ucB#6GdyOl0ZR",
                                                                      "extraState": {
                                                                        "name": "右转直角"
                                                                      },
                                                                      "next": {
                                                                        "block": {
                                                                          "type": "procedures_callnoreturn",
                                                                          "id": "ioi1yZuvj|#OLax{]Y=;",
                                                                          "extraState": {
                                                                            "name": "马达停止",
                                                                            "params": [
                                                                              "停止时间"
                                                                            ]
                                                                          },
                                                                          "inputs": {
                                                                            "ARG0": {
                                                                              "block": {
                                                                                "type": "math_number",
                                                                                "id": "c:5_1Bo/]WIeJ/c)7/CU",
                                                                                "fields": {
                                                                                  "NUM": 1
                                                                                }
                                                                              }
                                                                            }
                                                                          },
                                                                          "next": {
                                                                            "block": {
                                                                              "type": "procedures_callnoreturn",
                                                                              "id": "]qS5Z.bGotlpsfm}YB8]",
                                                                              "extraState": {
                                                                                "name": "右转直角"
                                                                              },
                                                                              "next": {
                                                                                "block": {
                                                                                  "type": "procedures_callnoreturn",
                                                                                  "id": ".hFkj(Ocfi@0Z_nHtH?o",
                                                                                  "extraState": {
                                                                                    "name": "马达停止",
                                                                                    "params": [
                                                                                      "停止时间"
                                                                                    ]
                                                                                  },
                                                                                  "inputs": {
                                                                                    "ARG0": {
                                                                                      "block": {
                                                                                        "type": "math_number",
                                                                                        "id": ".C4HY{NAv$t8~xyv!`T6",
                                                                                        "fields": {
                                                                                          "NUM": 1
                                                                                        }
                                                                                      }
                                                                                    }
                                                                                  }
                                                                                }
                                                                              }
                                                                            }
                                                                          }
                                                                        }
                                                                      }
                                                                    }
                                                                  }
                                                                }
                                                              }
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      {
        "type": "procedures_defnoreturn",
        "id": "xz)/;hLVVl9V?yI0$0h3",
        "x": 38,
        "y": -162,
        "extraState": {
          "params": [
            {
              "name": "直行时间",
              "id": "`mSB;0|TmdLrYdg/0[YF"
            }
          ]
        },
        "icons": {
          "comment": {
            "text": "描述该功能...",
            "pinned": false,
            "height": 80,
            "width": 160
          }
        },
        "fields": {
          "NAME": "直行"
        },
        "inputs": {
          "STACK": {
            "block": {
              "type": "APM_digital_motor_openloop",
              "id": "+G1?-E:GgT!zzXZW-al@",
              "fields": {
                "instance": "左轮"
              },
              "inputs": {
                "speed": {
                  "shadow": {
                    "type": "math_number",
                    "id": "}W`!TKb/{{.EB([bf4S*",
                    "fields": {
                      "NUM": 20
                    }
                  }
                }
              },
              "next": {
                "block": {
                  "type": "APM_digital_motor_openloop",
                  "id": "]57#3ubxeYL1w8^JM!Mj",
                  "fields": {
                    "instance": "右轮"
                  },
                  "inputs": {
                    "speed": {
                      "shadow": {
                        "type": "math_number",
                        "id": "WD|BcW;ZC240uehYstyG",
                        "fields": {
                          "NUM": 20
                        }
                      }
                    }
                  },
                  "next": {
                    "block": {
                      "type": "time_sleep",
                      "id": "!hKt=/e3~CLIPD=owHaM",
                      "inputs": {
                        "second": {
                          "shadow": {
                            "type": "math_number",
                            "id": "B/dnN]QiLS,^_n~V4h,B",
                            "fields": {
                              "NUM": 1
                            }
                          },
                          "block": {
                            "type": "variables_get",
                            "id": "bsHTiDRh(Mvk`J+=#^|p",
                            "fields": {
                              "VAR": {
                                "id": "`mSB;0|TmdLrYdg/0[YF"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      {
        "type": "procedures_defnoreturn",
        "id": "shG*gA4[f4#;_:.}gHz,",
        "x": 38,
        "y": 38,
        "icons": {
          "comment": {
            "text": "描述该功能...",
            "pinned": false,
            "height": 80,
            "width": 160
          }
        },
        "fields": {
          "NAME": "左转直角"
        },
        "inputs": {
          "STACK": {
            "block": {
              "type": "APM_digital_motor_openloop",
              "id": ".2:C5x`C):Ou[5tDvX#,",
              "fields": {
                "instance": "左轮"
              },
              "inputs": {
                "speed": {
                  "shadow": {
                    "type": "math_number",
                    "id": "]M%p{IK#!*C^*,9y4bQE",
                    "fields": {
                      "NUM": -50
                    }
                  }
                }
              },
              "next": {
                "block": {
                  "type": "APM_digital_motor_openloop",
                  "id": "8JbiriGq]er{-hxXa!57",
                  "fields": {
                    "instance": "右轮"
                  },
                  "inputs": {
                    "speed": {
                      "shadow": {
                        "type": "math_number",
                        "id": "1[1^(cd2NNz@Y6JGXe=a",
                        "fields": {
                          "NUM": 50
                        }
                      }
                    }
                  },
                  "next": {
                    "block": {
                      "type": "time_sleep",
                      "id": "f,:%1E4~5Cvf50aOl]l;",
                      "icons": {
                        "comment": {
                          "text": "数值固定不变就可以不使用变量",
                          "pinned": false,
                          "height": 80,
                          "width": 160
                        }
                      },
                      "inputs": {
                        "second": {
                          "shadow": {
                            "type": "math_number",
                            "id": "lx6]%%KvGF22%LDbpkm.",
                            "fields": {
                              "NUM": 0.6
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      {
        "type": "procedures_defnoreturn",
        "id": "[v]oe{NB7:u/sWCJ_rYX",
        "x": 38,
        "y": 438,
        "extraState": {
          "params": [
            {
              "name": "停止时间",
              "id": "inW:5Jr8)~M.#8E]y2]B"
            }
          ]
        },
        "icons": {
          "comment": {
            "text": "描述该功能...",
            "pinned": false,
            "height": 80,
            "width": 160
          }
        },
        "fields": {
          "NAME": "马达停止"
        },
        "inputs": {
          "STACK": {
            "block": {
              "type": "APM_digital_motor_openloop",
              "id": "GoPDI;tR+z:H7[#!JSY;",
              "fields": {
                "instance": "左轮"
              },
              "inputs": {
                "speed": {
                  "shadow": {
                    "type": "math_number",
                    "id": "7+0/+zeI,w:zGE]jSHP3",
                    "fields": {
                      "NUM": 0
                    }
                  }
                }
              },
              "next": {
                "block": {
                  "type": "APM_digital_motor_openloop",
                  "id": "Pvyzsza@FQ%Vr){@B`%*",
                  "fields": {
                    "instance": "右轮"
                  },
                  "inputs": {
                    "speed": {
                      "shadow": {
                        "type": "math_number",
                        "id": "uG_K;-0IY/%j}rL9YfZ,",
                        "fields": {
                          "NUM": 0
                        }
                      }
                    }
                  },
                  "next": {
                    "block": {
                      "type": "time_sleep",
                      "id": "L.OF]?amo4ON=LT]=d)*",
                      "inputs": {
                        "second": {
                          "shadow": {
                            "type": "math_number",
                            "id": "B/dnN]QiLS,^_n~V4h,B",
                            "fields": {
                              "NUM": 1
                            }
                          },
                          "block": {
                            "type": "variables_get",
                            "id": "+g0s7la}#qM+fp~@~jc7",
                            "fields": {
                              "VAR": {
                                "id": "inW:5Jr8)~M.#8E]y2]B"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      {
        "type": "procedures_defnoreturn",
        "id": "t.Eohd$OAR~+;a6D:BEI",
        "x": 38,
        "y": 638,
        "extraState": {
          "params": [
            {
              "name": "后退时间",
              "id": "y-4_%-Dk?g:0GfT55Uh["
            }
          ]
        },
        "icons": {
          "comment": {
            "text": "描述该功能...",
            "pinned": false,
            "height": 80,
            "width": 160
          }
        },
        "fields": {
          "NAME": "后退"
        },
        "inputs": {
          "STACK": {
            "block": {
              "type": "APM_digital_motor_openloop",
              "id": "1QL~R6OT7D$W7lGB97a@",
              "fields": {
                "instance": "左轮"
              },
              "inputs": {
                "speed": {
                  "shadow": {
                    "type": "math_number",
                    "id": "^tg0BtU0:@=a%jNgICyM",
                    "fields": {
                      "NUM": -50
                    }
                  }
                }
              },
              "next": {
                "block": {
                  "type": "APM_digital_motor_openloop",
                  "id": "2r5J_4H^fVT7Eje^fuBN",
                  "fields": {
                    "instance": "右轮"
                  },
                  "inputs": {
                    "speed": {
                      "shadow": {
                        "type": "math_number",
                        "id": "x063;bQi`?w[ZIg*7(po",
                        "fields": {
                          "NUM": -50
                        }
                      }
                    }
                  },
                  "next": {
                    "block": {
                      "type": "time_sleep",
                      "id": ")`3wpK*meT;(Qt^Q%CkH",
                      "inputs": {
                        "second": {
                          "shadow": {
                            "type": "math_number",
                            "id": "B/dnN]QiLS,^_n~V4h,B",
                            "fields": {
                              "NUM": 1
                            }
                          },
                          "block": {
                            "type": "variables_get",
                            "id": "v)#bu/fWe%@7JCE^ACDM",
                            "fields": {
                              "VAR": {
                                "id": "y-4_%-Dk?g:0GfT55Uh["
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      {
        "type": "procedures_defnoreturn",
        "id": ".l8VMK=LuF.@aM:3QDw)",
        "x": 38,
        "y": 238,
        "icons": {
          "comment": {
            "text": "描述该功能...",
            "pinned": false,
            "height": 80,
            "width": 160
          }
        },
        "fields": {
          "NAME": "右转直角"
        },
        "inputs": {
          "STACK": {
            "block": {
              "type": "APM_digital_motor_openloop",
              "id": "-~kkVhCx2$^LytWpm-0A",
              "fields": {
                "instance": "左轮"
              },
              "inputs": {
                "speed": {
                  "shadow": {
                    "type": "math_number",
                    "id": "x@ukV{z1gB{@4I6DbF$[",
                    "fields": {
                      "NUM": 50
                    }
                  }
                }
              },
              "next": {
                "block": {
                  "type": "APM_digital_motor_openloop",
                  "id": "FMW[X.Qu`d0kr@pJE4+Y",
                  "fields": {
                    "instance": "右轮"
                  },
                  "inputs": {
                    "speed": {
                      "shadow": {
                        "type": "math_number",
                        "id": "O-*1|Clg)0q-}Cy0UD^;",
                        "fields": {
                          "NUM": -50
                        }
                      }
                    }
                  },
                  "next": {
                    "block": {
                      "type": "time_sleep",
                      "id": "+a7Gd9@.:^K1=iJHWCs?",
                      "icons": {
                        "comment": {
                          "text": "数值固定不变就可以不使用变量",
                          "pinned": false,
                          "height": 80,
                          "width": 160
                        }
                      },
                      "inputs": {
                        "second": {
                          "shadow": {
                            "type": "math_number",
                            "id": "h/I8C3@[Rwe!cH-$Xqd+",
                            "fields": {
                              "NUM": 0.6
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    ]
  },
  "variables": [
    {
      "name": "x",
      "id": "W$zKd5zORYs+-I8%SI+y"
    },
    {
      "name": "直行时间",
      "id": "`mSB;0|TmdLrYdg/0[YF"
    },
    {
      "name": "后退时间",
      "id": "y-4_%-Dk?g:0GfT55Uh["
    },
    {
      "name": "停止时间",
      "id": "inW:5Jr8)~M.#8E]y2]B"
    }
  ]
}