{
  "blocks": {
    "languageVersion": 0,
    "blocks": [
      {
        "type": "APM_digital_motor_init",
        "id": ",eO[Qbw=T+*;lBtD?DsL",
        "x": 88,
        "y": 413,
        "fields": {
          "digital_motor_instance": "左轮",
          "port": "1",
          "direction": "True",
          "soft_break": true
        },
        "next": {
          "block": {
            "type": "APM_digital_motor_init",
            "id": "`wOb}-RFvK}{$;S^P6/d",
            "fields": {
              "digital_motor_instance": "右轮",
              "port": "2",
              "direction": "False",
              "soft_break": true
            },
            "next": {
              "block": {
                "type": "variables_set",
                "id": "aXDKd$2:o!xs5G*Cqn1W",
                "fields": {
                  "VAR": {
                    "id": "l)zn8cOn@ddsJORH.X5P"
                  }
                },
                "inputs": {
                  "VALUE": {
                    "block": {
                      "type": "math_number",
                      "id": "ke,Sko^aiX36S)MxFBUh",
                      "fields": {
                        "NUM": 0
                      }
                    }
                  }
                },
                "next": {
                  "block": {
                    "type": "controls_whileUntil",
                    "id": "l8+8V7vg;6k4/Y8BN_[9",
                    "fields": {
                      "MODE": "WHILE"
                    },
                    "inputs": {
                      "BOOL": {
                        "block": {
                          "type": "logic_boolean",
                          "id": "OZd$Lv:ix$}tq`?_QhM2",
                          "fields": {
                            "BOOL": "TRUE"
                          }
                        }
                      },
                      "DO": {
                        "block": {
                          "type": "APM_digital_motor_openloop",
                          "id": "~W;gq{t,XN8j]ncu;dY:",
                          "fields": {
                            "instance": "左轮"
                          },
                          "inputs": {
                            "speed": {
                              "shadow": {
                                "type": "math_number",
                                "id": "R{Q6{-Dq(7p)s0%mx=hA",
                                "fields": {
                                  "NUM": 0
                                }
                              },
                              "block": {
                                "type": "math_arithmetic",
                                "id": "3(ar9sf$0O7TnDp!{S;B",
                                "fields": {
                                  "OP": "MULTIPLY"
                                },
                                "inputs": {
                                  "A": {
                                    "block": {
                                      "type": "APM-cheap_get_axis",
                                      "id": "q5_]I=bvXYx=dme}mq+h",
                                      "fields": {
                                        "axis_name": "LEFT_Y"
                                      }
                                    }
                                  },
                                  "B": {
                                    "block": {
                                      "type": "math_arithmetic",
                                      "id": "Z8b3H65{B3#T9LV*WmF$",
                                      "fields": {
                                        "OP": "DIVIDE"
                                      },
                                      "inputs": {
                                        "A": {
                                          "block": {
                                            "type": "variables_get",
                                            "id": "({yEFA+}5D#^XSZ](A4@",
                                            "fields": {
                                              "VAR": {
                                                "id": "l)zn8cOn@ddsJORH.X5P"
                                              }
                                            }
                                          }
                                        },
                                        "B": {
                                          "block": {
                                            "type": "math_number",
                                            "id": "u.7.$IfhV*fTvm~44%xr",
                                            "fields": {
                                              "NUM": 100
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          },
                          "next": {
                            "block": {
                              "type": "APM_digital_motor_openloop",
                              "id": "g(m6ei{#b#Cqgu9t%x_.",
                              "fields": {
                                "instance": "右轮"
                              },
                              "inputs": {
                                "speed": {
                                  "shadow": {
                                    "type": "math_number",
                                    "id": "(wjBRH2TMRkZY^:*Wg0+",
                                    "fields": {
                                      "NUM": 0
                                    }
                                  },
                                  "block": {
                                    "type": "math_arithmetic",
                                    "id": "5g%##*/$6jk?.tU`f[:Q",
                                    "fields": {
                                      "OP": "MULTIPLY"
                                    },
                                    "inputs": {
                                      "A": {
                                        "block": {
                                          "type": "APM-cheap_get_axis",
                                          "id": "{h+v!]|Jp7Yz0(JZcl[6",
                                          "fields": {
                                            "axis_name": "RIGHT_Y"
                                          }
                                        }
                                      },
                                      "B": {
                                        "block": {
                                          "type": "math_arithmetic",
                                          "id": ",1t=BA[txJxs[##0_*#3",
                                          "fields": {
                                            "OP": "DIVIDE"
                                          },
                                          "inputs": {
                                            "A": {
                                              "block": {
                                                "type": "variables_get",
                                                "id": "3H-P{ah$#20j*Lh%@meI",
                                                "fields": {
                                                  "VAR": {
                                                    "id": "l)zn8cOn@ddsJORH.X5P"
                                                  }
                                                }
                                              }
                                            },
                                            "B": {
                                              "block": {
                                                "type": "math_number",
                                                "id": "z:AP9=t?2l.r[l!3kx3W",
                                                "fields": {
                                                  "NUM": 100
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              },
                              "next": {
                                "block": {
                                  "type": "controls_if",
                                  "id": "4/|~}EvJu|E?wC)N4PC{",
                                  "extraState": {
                                    "elseIfCount": 3
                                  },
                                  "inputs": {
                                    "IF0": {
                                      "block": {
                                        "type": "APM-cheap_get_button",
                                        "id": "]9Ox!W-3LqHG0ICl]/@Y",
                                        "fields": {
                                          "button_name": "A"
                                        }
                                      }
                                    },
                                    "DO0": {
                                      "block": {
                                        "type": "variables_set",
                                        "id": "NHmB1dBi93Iy=a-Ir`s:",
                                        "fields": {
                                          "VAR": {
                                            "id": "l)zn8cOn@ddsJORH.X5P"
                                          }
                                        },
                                        "inputs": {
                                          "VALUE": {
                                            "block": {
                                              "type": "math_number",
                                              "id": ",f!;nj.$R[4+c`YVAF0Z",
                                              "fields": {
                                                "NUM": 30
                                              }
                                            }
                                          }
                                        }
                                      }
                                    },
                                    "IF1": {
                                      "block": {
                                        "type": "APM-cheap_get_button",
                                        "id": "ha=8L||Aj:e`3To4hI48",
                                        "fields": {
                                          "button_name": "M"
                                        }
                                      }
                                    },
                                    "DO1": {
                                      "block": {
                                        "type": "variables_set",
                                        "id": "slm0UsnBv2!$SHI#{+hW",
                                        "fields": {
                                          "VAR": {
                                            "id": "l)zn8cOn@ddsJORH.X5P"
                                          }
                                        },
                                        "inputs": {
                                          "VALUE": {
                                            "block": {
                                              "type": "math_number",
                                              "id": "oE8GL~E(BQA~WxfJaF4g",
                                              "fields": {
                                                "NUM": 60
                                              }
                                            }
                                          }
                                        }
                                      }
                                    },
                                    "IF2": {
                                      "block": {
                                        "type": "APM-cheap_get_button",
                                        "id": "hsY~%O[9NQPAN($se@b4",
                                        "fields": {
                                          "button_name": "ROCKET"
                                        }
                                      }
                                    },
                                    "DO2": {
                                      "block": {
                                        "type": "variables_set",
                                        "id": "L?ew}s`JZNB+x9l-,E!2",
                                        "fields": {
                                          "VAR": {
                                            "id": "l)zn8cOn@ddsJORH.X5P"
                                          }
                                        },
                                        "inputs": {
                                          "VALUE": {
                                            "block": {
                                              "type": "math_number",
                                              "id": "6M/}kR^vVb:=t~Hdge_R",
                                              "fields": {
                                                "NUM": 100
                                              }
                                            }
                                          }
                                        }
                                      }
                                    },
                                    "IF3": {
                                      "block": {
                                        "type": "APM-cheap_get_button",
                                        "id": "fO:`pDBNkW^j9a94a^lS",
                                        "fields": {
                                          "button_name": "P"
                                        }
                                      }
                                    },
                                    "DO3": {
                                      "block": {
                                        "type": "variables_set",
                                        "id": "tWdI-h*qg/J0DeV[`:Sv",
                                        "fields": {
                                          "VAR": {
                                            "id": "l)zn8cOn@ddsJORH.X5P"
                                          }
                                        },
                                        "inputs": {
                                          "VALUE": {
                                            "block": {
                                              "type": "math_number",
                                              "id": "w[p[9,drg}K!Ib03Xv$N",
                                              "fields": {
                                                "NUM": 0
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  },
                                  "next": {
                                    "block": {
                                      "type": "controls_if",
                                      "id": "ZSYCyFl2dUCddE%|{B/x",
                                      "inputs": {
                                        "IF0": {
                                          "block": {
                                            "type": "APM-cheap_get_button",
                                            "id": "Kqa01)/]B;fjYi)@.xp-",
                                            "fields": {
                                              "button_name": "L1"
                                            }
                                          }
                                        },
                                        "DO0": {
                                          "block": {
                                            "type": "time_sleep",
                                            "id": "Ijtd9)-ULA8ea}=oiuvl",
                                            "inputs": {
                                              "second": {
                                                "shadow": {
                                                  "type": "math_number",
                                                  "id": "7!YRwH*3iX_`5$hXn7qh",
                                                  "fields": {
                                                    "NUM": 0.5
                                                  }
                                                }
                                              }
                                            },
                                            "next": {
                                              "block": {
                                                "type": "controls_if",
                                                "id": ".o7FvXPp1n}[9^uRL^Pm",
                                                "extraState": {
                                                  "hasElse": true
                                                },
                                                "inputs": {
                                                  "IF0": {
                                                    "block": {
                                                      "type": "logic_compare",
                                                      "id": "p@(~lby_FL=GQh%,U]mh",
                                                      "fields": {
                                                        "OP": "EQ"
                                                      },
                                                      "inputs": {
                                                        "A": {
                                                          "block": {
                                                            "type": "APM-cheap_get_button",
                                                            "id": "WR7oKOq!y-ZEv:X;5V#(",
                                                            "fields": {
                                                              "button_name": "L1"
                                                            }
                                                          }
                                                        },
                                                        "B": {
                                                          "block": {
                                                            "type": "logic_boolean",
                                                            "id": "A69_s@pF[R_}8H{.-]%_",
                                                            "fields": {
                                                              "BOOL": "TRUE"
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  },
                                                  "DO0": {
                                                    "block": {
                                                      "type": "controls_whileUntil",
                                                      "id": "6K5hNLB_!u%)4#vnTA-p",
                                                      "fields": {
                                                        "MODE": "UNTIL"
                                                      },
                                                      "inputs": {
                                                        "BOOL": {
                                                          "block": {
                                                            "type": "logic_compare",
                                                            "id": ":Wm3ydYfhTjI5@%-:(i[",
                                                            "fields": {
                                                              "OP": "EQ"
                                                            },
                                                            "inputs": {
                                                              "A": {
                                                                "block": {
                                                                  "type": "APM-cheap_get_button",
                                                                  "id": "TzWcT_(4EtDMic?B~#KT",
                                                                  "fields": {
                                                                    "button_name": "L1"
                                                                  }
                                                                }
                                                              },
                                                              "B": {
                                                                "block": {
                                                                  "type": "logic_boolean",
                                                                  "id": "`~sh[,ee(@wlHvW#rR07",
                                                                  "fields": {
                                                                    "BOOL": "FALSE"
                                                                  }
                                                                }
                                                              }
                                                            }
                                                          }
                                                        },
                                                        "DO": {
                                                          "block": {
                                                            "type": "APM-cheap_play_tone",
                                                            "id": "-wVs7}Xm`0z$wfC[Kd0m",
                                                            "fields": {
                                                              "frequency": 440,
                                                              "volume": 50
                                                            }
                                                          }
                                                        }
                                                      },
                                                      "next": {
                                                        "block": {
                                                          "type": "APM-cheap_stop_buzzer",
                                                          "id": "ZAr~$3KMIb5GE89Xk;gv"
                                                        }
                                                      }
                                                    }
                                                  },
                                                  "ELSE": {
                                                    "block": {
                                                      "type": "APM-cheap_play_tone",
                                                      "id": "DhPCR@hv[0+UN/^o96T)",
                                                      "fields": {
                                                        "frequency": 440,
                                                        "volume": 50
                                                      },
                                                      "next": {
                                                        "block": {
                                                          "type": "time_sleep",
                                                          "id": "qpUCu#Rp:kfPckrCRM+z",
                                                          "inputs": {
                                                            "second": {
                                                              "shadow": {
                                                                "type": "math_number",
                                                                "id": "W*73A-5wF1a,D([-9?We",
                                                                "fields": {
                                                                  "NUM": 0.2
                                                                }
                                                              }
                                                            }
                                                          },
                                                          "next": {
                                                            "block": {
                                                              "type": "APM-cheap_stop_buzzer",
                                                              "id": "24ci$.a(MRS)Wlek8*6U"
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    ]
  },
  "variables": [
    {
      "name": "sudu",
      "id": "l)zn8cOn@ddsJORH.X5P"
    }
  ]
}