{
  "blocks": {
    "languageVersion": 0,
    "blocks": [
      {
        "type": "APM_digital_motor_init",
        "id": "Y@7G[lF$RL_/NB!|~fDy",
        "x": 463,
        "y": -162,
        "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": "procedures_callnoreturn",
                "id": "`Y$2!]6$2R{AlILVuH/,",
                "extraState": {
                  "name": "直行",
                  "params": [
                    "直行时间"
                  ]
                },
                "inputs": {
                  "ARG0": {
                    "block": {
                      "type": "math_number",
                      "id": "gxd1DyA1/,e@MV,$swfC",
                      "fields": {
                        "NUM": 1
                      }
                    }
                  }
                },
                "next": {
                  "block": {
                    "type": "procedures_callnoreturn",
                    "id": "X/(b#owLA:t3hleIgyKO",
                    "extraState": {
                      "name": "左转直角"
                    },
                    "next": {
                      "block": {
                        "type": "procedures_callnoreturn",
                        "id": "5%d!=5u`Ztkzt77g;;lB",
                        "extraState": {
                          "name": "直行",
                          "params": [
                            "直行时间"
                          ]
                        },
                        "inputs": {
                          "ARG0": {
                            "block": {
                              "type": "math_number",
                              "id": "$/I0aQ.Te:U}/CJ`q,s#",
                              "fields": {
                                "NUM": 2
                              }
                            }
                          }
                        },
                        "next": {
                          "block": {
                            "type": "procedures_callnoreturn",
                            "id": "Tp*KNJt]dKGgm]Bgr~+]",
                            "extraState": {
                              "name": "马达停止",
                              "params": [
                                "停止时间"
                              ]
                            },
                            "inputs": {
                              "ARG0": {
                                "block": {
                                  "type": "math_number",
                                  "id": "8/N;$4/7n%YIb993TRi*",
                                  "fields": {
                                    "NUM": 1
                                  }
                                }
                              }
                            },
                            "next": {
                              "block": {
                                "type": "procedures_callnoreturn",
                                "id": "Rt)^O*dKp`!=D]Gks*S2",
                                "extraState": {
                                  "name": "左转直角"
                                },
                                "next": {
                                  "block": {
                                    "type": "procedures_callnoreturn",
                                    "id": ":]%o(Uif89=mWbyD}^4d",
                                    "extraState": {
                                      "name": "直行",
                                      "params": [
                                        "直行时间"
                                      ]
                                    },
                                    "inputs": {
                                      "ARG0": {
                                        "block": {
                                          "type": "math_number",
                                          "id": "A_-v`zqTz7Wa]cZN4!6^",
                                          "fields": {
                                            "NUM": 0.5
                                          }
                                        }
                                      }
                                    },
                                    "next": {
                                      "block": {
                                        "type": "procedures_callnoreturn",
                                        "id": "PS43OiH}~VLw]!)r0l=M",
                                        "extraState": {
                                          "name": "马达停止",
                                          "params": [
                                            "停止时间"
                                          ]
                                        },
                                        "inputs": {
                                          "ARG0": {
                                            "block": {
                                              "type": "math_number",
                                              "id": "drN)}~8GAR@Z:iM.EJC]",
                                              "fields": {
                                                "NUM": 1
                                              }
                                            }
                                          }
                                        },
                                        "next": {
                                          "block": {
                                            "type": "procedures_callnoreturn",
                                            "id": "pdj9d@h{gGV?+-kC^()9",
                                            "extraState": {
                                              "name": "后退",
                                              "params": [
                                                "后退时间"
                                              ]
                                            },
                                            "inputs": {
                                              "ARG0": {
                                                "block": {
                                                  "type": "math_number",
                                                  "id": "NL2nkA-eO6y_bf7kVuzr",
                                                  "fields": {
                                                    "NUM": 0.5
                                                  }
                                                }
                                              }
                                            },
                                            "next": {
                                              "block": {
                                                "type": "procedures_callnoreturn",
                                                "id": "ac!BKU#H$lpm|Th2FcAP",
                                                "extraState": {
                                                  "name": "马达停止",
                                                  "params": [
                                                    "停止时间"
                                                  ]
                                                },
                                                "inputs": {
                                                  "ARG0": {
                                                    "block": {
                                                      "type": "math_number",
                                                      "id": "M#E1^3olw)IvK+7C*M%6",
                                                      "fields": {
                                                        "NUM": 1
                                                      }
                                                    }
                                                  }
                                                },
                                                "next": {
                                                  "block": {
                                                    "type": "procedures_callnoreturn",
                                                    "id": "Ol97F*}n(QdSZlX;ejkX",
                                                    "extraState": {
                                                      "name": "左转直角"
                                                    },
                                                    "next": {
                                                      "block": {
                                                        "type": "procedures_callnoreturn",
                                                        "id": "o$:XtSF}Tm;EkqhGxRU]",
                                                        "extraState": {
                                                          "name": "马达停止",
                                                          "params": [
                                                            "停止时间"
                                                          ]
                                                        },
                                                        "inputs": {
                                                          "ARG0": {
                                                            "block": {
                                                              "type": "math_number",
                                                              "id": "F^M6$KUeNJ;..JOW!{2z",
                                                              "fields": {
                                                                "NUM": 1
                                                              }
                                                            }
                                                          }
                                                        },
                                                        "next": {
                                                          "block": {
                                                            "type": "procedures_callnoreturn",
                                                            "id": "2i)h75h7(0f+~/j8}ZH9",
                                                            "extraState": {
                                                              "name": "直行",
                                                              "params": [
                                                                "直行时间"
                                                              ]
                                                            },
                                                            "inputs": {
                                                              "ARG0": {
                                                                "block": {
                                                                  "type": "math_number",
                                                                  "id": "]!UoFKd92z%oLw)KZqEX",
                                                                  "fields": {
                                                                    "NUM": 1
                                                                  }
                                                                }
                                                              }
                                                            },
                                                            "next": {
                                                              "block": {
                                                                "type": "procedures_callnoreturn",
                                                                "id": "lk=t^RtV{|e$Z{R!:i,d",
                                                                "extraState": {
                                                                  "name": "左转直角"
                                                                },
                                                                "next": {
                                                                  "block": {
                                                                    "type": "procedures_callnoreturn",
                                                                    "id": "fZ%dR)ERU5L%8(B$06-c",
                                                                    "extraState": {
                                                                      "name": "直行",
                                                                      "params": [
                                                                        "直行时间"
                                                                      ]
                                                                    },
                                                                    "inputs": {
                                                                      "ARG0": {
                                                                        "block": {
                                                                          "type": "math_number",
                                                                          "id": "M:Tt]+eOn5vp:t3vX`M!",
                                                                          "fields": {
                                                                            "NUM": 0.5
                                                                          }
                                                                        }
                                                                      }
                                                                    },
                                                                    "next": {
                                                                      "block": {
                                                                        "type": "procedures_callnoreturn",
                                                                        "id": "xCH5,i^wiswxtF:)D-c?",
                                                                        "extraState": {
                                                                          "name": "右转直角"
                                                                        },
                                                                        "next": {
                                                                          "block": {
                                                                            "type": "procedures_callnoreturn",
                                                                            "id": "WH7{b}cj[bo6nU|r`[Oc",
                                                                            "extraState": {
                                                                              "name": "直行",
                                                                              "params": [
                                                                                "直行时间"
                                                                              ]
                                                                            },
                                                                            "inputs": {
                                                                              "ARG0": {
                                                                                "block": {
                                                                                  "type": "math_number",
                                                                                  "id": ";~)!:if[B^oMa!,=$Y8t",
                                                                                  "fields": {
                                                                                    "NUM": 0.5
                                                                                  }
                                                                                }
                                                                              }
                                                                            },
                                                                            "next": {
                                                                              "block": {
                                                                                "type": "procedures_callnoreturn",
                                                                                "id": "dgPtFGA2xHhCvvQ:7d?5",
                                                                                "extraState": {
                                                                                  "name": "左转直角"
                                                                                },
                                                                                "next": {
                                                                                  "block": {
                                                                                    "type": "procedures_callnoreturn",
                                                                                    "id": "2olr3n|2Cp%zqmcq,1mx",
                                                                                    "extraState": {
                                                                                      "name": "马达停止",
                                                                                      "params": [
                                                                                        "停止时间"
                                                                                      ]
                                                                                    },
                                                                                    "inputs": {
                                                                                      "ARG0": {
                                                                                        "block": {
                                                                                          "type": "math_number",
                                                                                          "id": "@*9O/A*w)J_CrTMVv0~g",
                                                                                          "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": 50
                    }
                  }
                }
              },
              "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": 50
                        }
                      }
                    }
                  },
                  "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"
    }
  ]
}