{
  "blocks": {
    "languageVersion": 0,
    "blocks": [
      {
        "type": "APM-cheap_led_off",
        "id": "7n_{g=+{n#R?GXb@MxOW",
        "x": 463,
        "y": -162,
        "next": {
          "block": {
            "type": "APM_digital_motor_init",
            "id": "Y@7G[lF$RL_/NB!|~fDy",
            "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": "}{%Farp01:1nC/.DyACj",
                    "extraState": {
                      "name": "直行",
                      "params": [
                        "直行时间"
                      ]
                    },
                    "inputs": {
                      "ARG0": {
                        "block": {
                          "type": "math_number",
                          "id": "wN|qI`i%i4bFw)oV+_5?",
                          "fields": {
                            "NUM": 2.7
                          }
                        }
                      }
                    },
                    "next": {
                      "block": {
                        "type": "procedures_callnoreturn",
                        "id": "=l=u[}2~:41A`w1y_ZCw",
                        "extraState": {
                          "name": "马达停止",
                          "params": [
                            "停止时间"
                          ]
                        },
                        "inputs": {
                          "ARG0": {
                            "block": {
                              "type": "math_number",
                              "id": "_q3}=_EE%$8+TtK@uW?Q",
                              "fields": {
                                "NUM": 1
                              }
                            }
                          }
                        },
                        "next": {
                          "block": {
                            "type": "procedures_callnoreturn",
                            "id": "r:$l77vQ@d;!!KiMG,e8",
                            "extraState": {
                              "name": "后转直角"
                            },
                            "next": {
                              "block": {
                                "type": "procedures_callnoreturn",
                                "id": "*bp$jQ_y)6j$*Rd4M?2@",
                                "extraState": {
                                  "name": "马达停止",
                                  "params": [
                                    "停止时间"
                                  ]
                                },
                                "inputs": {
                                  "ARG0": {
                                    "block": {
                                      "type": "math_number",
                                      "id": "FM7}SzKFs-sE5^vixMB(",
                                      "fields": {
                                        "NUM": 1
                                      }
                                    }
                                  }
                                },
                                "next": {
                                  "block": {
                                    "type": "procedures_callnoreturn",
                                    "id": "YjQP^7?h@CUJ8?X-vnj|",
                                    "extraState": {
                                      "name": "后退",
                                      "params": [
                                        "后退时间"
                                      ]
                                    },
                                    "inputs": {
                                      "ARG0": {
                                        "block": {
                                          "type": "math_number",
                                          "id": "hA1^$Z)4R*u/)_KsJ[-y",
                                          "fields": {
                                            "NUM": 3
                                          }
                                        }
                                      }
                                    },
                                    "next": {
                                      "block": {
                                        "type": "procedures_callnoreturn",
                                        "id": ")LnpH$C`Q{}c=aQ7CJK7",
                                        "extraState": {
                                          "name": "马达停止",
                                          "params": [
                                            "停止时间"
                                          ]
                                        },
                                        "inputs": {
                                          "ARG0": {
                                            "block": {
                                              "type": "math_number",
                                              "id": "hPj~RK[b*,YbF3C[6)A)",
                                              "fields": {
                                                "NUM": 1
                                              }
                                            }
                                          }
                                        },
                                        "next": {
                                          "block": {
                                            "type": "controls_repeat_ext",
                                            "id": "YL?Rj7mqIkU5/Ujc^_r3",
                                            "inputs": {
                                              "TIMES": {
                                                "block": {
                                                  "type": "math_number",
                                                  "id": "%(:nNIA|4hm7t;?||jQa",
                                                  "fields": {
                                                    "NUM": 2
                                                  }
                                                }
                                              },
                                              "DO": {
                                                "block": {
                                                  "type": "APM-cheap_play_tone",
                                                  "id": "Z$FpRYJ?nimDv%aMZlpm",
                                                  "fields": {
                                                    "frequency": 440,
                                                    "volume": 50
                                                  },
                                                  "next": {
                                                    "block": {
                                                      "type": "time_sleep",
                                                      "id": "p+(8bRcml*PfhMTKwHqD",
                                                      "inputs": {
                                                        "second": {
                                                          "shadow": {
                                                            "type": "math_number",
                                                            "id": "[?_;`c:WM*zC=,:x3!~q",
                                                            "fields": {
                                                              "NUM": 0.5
                                                            }
                                                          }
                                                        }
                                                      },
                                                      "next": {
                                                        "block": {
                                                          "type": "APM-cheap_stop_buzzer",
                                                          "id": "#1.Nf/3d4W}*)!FD,}X|",
                                                          "next": {
                                                            "block": {
                                                              "type": "time_sleep",
                                                              "id": "vYx$k1zh;Q;6is{EgEUk",
                                                              "inputs": {
                                                                "second": {
                                                                  "shadow": {
                                                                    "type": "math_number",
                                                                    "id": "2n)Nx.J*KN]LmxSC1CwY",
                                                                    "fields": {
                                                                      "NUM": 0.5
                                                                    }
                                                                  }
                                                                }
                                                              }
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  }
                                                }
                                              }
                                            },
                                            "next": {
                                              "block": {
                                                "type": "APM-cheap_led_on",
                                                "id": "=P@_,?ebRm(rw8#h{A=t"
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      {
        "type": "procedures_defnoreturn",
        "id": "xz)/;hLVVl9V?yI0$0h3",
        "x": 38,
        "y": -162,
        "extraState": {
          "params": [
            {
              "name": "直行时间",
              "id": "D^V:+BSg-9uG[3eGOS{I"
            }
          ]
        },
        "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": 30
                    }
                  }
                }
              },
              "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": 30
                        }
                      }
                    }
                  },
                  "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": "D^V:+BSg-9uG[3eGOS{I"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      {
        "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": 0
                        }
                      }
                    }
                  },
                  "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": 1.3
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      {
        "type": "procedures_defnoreturn",
        "id": "[v]oe{NB7:u/sWCJ_rYX",
        "x": 38,
        "y": 263,
        "extraState": {
          "params": [
            {
              "name": "停止时间",
              "id": "KIsq-Exe8L10!lHWYi,%"
            }
          ]
        },
        "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": "KIsq-Exe8L10!lHWYi,%"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      {
        "type": "procedures_defnoreturn",
        "id": "t.Eohd$OAR~+;a6D:BEI",
        "x": 38,
        "y": 488,
        "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": -20
                    }
                  }
                }
              },
              "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": -20
                        }
                      }
                    }
                  },
                  "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["
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    ]
  },
  "variables": [
    {
      "name": "直行时间",
      "id": "D^V:+BSg-9uG[3eGOS{I"
    },
    {
      "name": "停止时间",
      "id": "KIsq-Exe8L10!lHWYi,%"
    },
    {
      "name": "后退时间",
      "id": "y-4_%-Dk?g:0GfT55Uh["
    }
  ]
}