{
  "appVersion": "0.10.0",
  "savedAt": "2026-09-29T03:48:25.682Z",
  "workspace": {
    "blocks": {
      "languageVersion": 0,
      "blocks": [
        {
          "type": "variables_set",
          "id": "6f!]Rt[]C6$b6I~F}~r_",
          "x": -132,
          "y": 60,
          "fields": {
            "VAR": {
              "id": "e?jv5v=gM_*hhpR_TL]a"
            }
          },
          "inputs": {
            "VALUE": {
              "block": {
                "type": "math_number",
                "id": "[;kA:bF}7,%f(,TCkddd",
                "fields": {
                  "NUM": 0
                }
              }
            }
          },
          "next": {
            "block": {
              "type": "controls_whileUntil",
              "id": "^Aovo(zs87,t9)j:O*m;",
              "fields": {
                "MODE": "WHILE"
              },
              "inputs": {
                "BOOL": {
                  "block": {
                    "type": "logic_boolean",
                    "id": ")~l-=D%SA|L#5Yy5sgNj",
                    "fields": {
                      "BOOL": "TRUE"
                    }
                  }
                },
                "DO": {
                  "block": {
                    "type": "controls_if",
                    "id": "FAL=%K;3;4CL7W%_^3o{",
                    "extraState": {
                      "elseIfCount": 3
                    },
                    "inputs": {
                      "IF0": {
                        "block": {
                          "type": "apm_mini_remote_button",
                          "id": "HCN]L7f[F~3Rb^o#(kUN",
                          "fields": {
                            "BUTTON": "LEFT"
                          }
                        }
                      },
                      "DO0": {
                        "block": {
                          "type": "variables_set",
                          "id": "!J7b]bE/D@Nsz(K3-W_}",
                          "fields": {
                            "VAR": {
                              "id": "e?jv5v=gM_*hhpR_TL]a"
                            }
                          },
                          "inputs": {
                            "VALUE": {
                              "block": {
                                "type": "math_number",
                                "id": "#2|t1IexflDL=$B~oW|R",
                                "fields": {
                                  "NUM": 30
                                }
                              }
                            }
                          }
                        }
                      },
                      "IF1": {
                        "block": {
                          "type": "apm_mini_remote_button",
                          "id": "?2{U-QMFH9Twj!4?R{HC",
                          "fields": {
                            "BUTTON": "RIGHT"
                          }
                        }
                      },
                      "DO1": {
                        "block": {
                          "type": "variables_set",
                          "id": "4Sb6p3k+ODK@Q%N^PO`o",
                          "fields": {
                            "VAR": {
                              "id": "e?jv5v=gM_*hhpR_TL]a"
                            }
                          },
                          "inputs": {
                            "VALUE": {
                              "block": {
                                "type": "math_number",
                                "id": "Z5N12M0i^SC3GbAxc-Cw",
                                "fields": {
                                  "NUM": 60
                                }
                              }
                            }
                          }
                        }
                      },
                      "IF2": {
                        "block": {
                          "type": "apm_mini_remote_button",
                          "id": "E`hl*GAyIt?5GQT2nINK",
                          "fields": {
                            "BUTTON": "UP"
                          }
                        }
                      },
                      "DO2": {
                        "block": {
                          "type": "variables_set",
                          "id": "UIFe906nA:}^#OS#RObN",
                          "fields": {
                            "VAR": {
                              "id": "e?jv5v=gM_*hhpR_TL]a"
                            }
                          },
                          "inputs": {
                            "VALUE": {
                              "block": {
                                "type": "math_number",
                                "id": "Ar)^=vK)8[PWsL/|X7Q7",
                                "fields": {
                                  "NUM": 100
                                }
                              }
                            }
                          }
                        }
                      },
                      "IF3": {
                        "block": {
                          "type": "apm_mini_remote_button",
                          "id": ")a!I`yvAHv5gaQJl6nxu",
                          "fields": {
                            "BUTTON": "DOWN"
                          }
                        }
                      },
                      "DO3": {
                        "block": {
                          "type": "variables_set",
                          "id": "v(,j#]3|1[3!c~;s1sq1",
                          "fields": {
                            "VAR": {
                              "id": "e?jv5v=gM_*hhpR_TL]a"
                            }
                          },
                          "inputs": {
                            "VALUE": {
                              "block": {
                                "type": "math_number",
                                "id": "aPRAKRQ_A(OyRpUC@w#}",
                                "fields": {
                                  "NUM": 0
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "next": {
                      "block": {
                        "type": "apm_mini_single_rpm",
                        "id": "Qf|.(@t+;@sx3yXq4+2*",
                        "fields": {
                          "MOTOR": "1"
                        },
                        "inputs": {
                          "RPM": {
                            "shadow": {
                              "type": "math_number",
                              "id": "FEYT(E1?i(I[`)7GDq+G",
                              "fields": {
                                "NUM": 30
                              }
                            },
                            "block": {
                              "type": "math_arithmetic",
                              "id": "95GhN`6}9MH__]kBZmgR",
                              "fields": {
                                "OP": "MULTIPLY"
                              },
                              "inputs": {
                                "A": {
                                  "block": {
                                    "type": "apm_mini_remote_axis",
                                    "id": "*c|2%UcpUI*lbC}?^]]8",
                                    "fields": {
                                      "AXIS": "LEFT_Y"
                                    }
                                  }
                                },
                                "B": {
                                  "block": {
                                    "type": "math_arithmetic",
                                    "id": "P$zcbbZVm#8Xc*ow}7D3",
                                    "fields": {
                                      "OP": "DIVIDE"
                                    },
                                    "inputs": {
                                      "A": {
                                        "block": {
                                          "type": "variables_get",
                                          "id": "[h-6K%Vpn9.((Ny~,`?g",
                                          "fields": {
                                            "VAR": {
                                              "id": "e?jv5v=gM_*hhpR_TL]a"
                                            }
                                          }
                                        }
                                      },
                                      "B": {
                                        "block": {
                                          "type": "math_number",
                                          "id": ")ExnSZHPoi8.Vbk^d,6l",
                                          "fields": {
                                            "NUM": 100
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        },
                        "next": {
                          "block": {
                            "type": "apm_mini_single_rpm",
                            "id": "=D7c6dzm;%#837ACmd]Y",
                            "fields": {
                              "MOTOR": "2"
                            },
                            "inputs": {
                              "RPM": {
                                "shadow": {
                                  "type": "math_number",
                                  "id": "j99(-F|hNYh5Q-MQiK/$",
                                  "fields": {
                                    "NUM": 30
                                  }
                                },
                                "block": {
                                  "type": "math_arithmetic",
                                  "id": "Q~5Q*c/9RSF^r35=mrrV",
                                  "fields": {
                                    "OP": "MULTIPLY"
                                  },
                                  "inputs": {
                                    "A": {
                                      "block": {
                                        "type": "apm_mini_remote_axis",
                                        "id": "|cn+3[k/@YwQ+EZUW]Qv",
                                        "fields": {
                                          "AXIS": "RIGHT_Y"
                                        }
                                      }
                                    },
                                    "B": {
                                      "block": {
                                        "type": "math_arithmetic",
                                        "id": "z6-L0Eop(O/N$`R=U%|A",
                                        "fields": {
                                          "OP": "DIVIDE"
                                        },
                                        "inputs": {
                                          "A": {
                                            "block": {
                                              "type": "variables_get",
                                              "id": "uI3Y?0/|)[qo)C1azB-=",
                                              "fields": {
                                                "VAR": {
                                                  "id": "e?jv5v=gM_*hhpR_TL]a"
                                                }
                                              }
                                            }
                                          },
                                          "B": {
                                            "block": {
                                              "type": "math_number",
                                              "id": "pjC32ZM15H]Yxx0g{]~5",
                                              "fields": {
                                                "NUM": 100
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            },
                            "next": {
                              "block": {
                                "type": "apm_mini_wait",
                                "id": "Jxk6;)C+}^8[OYs/*tS/",
                                "inputs": {
                                  "MS": {
                                    "shadow": {
                                      "type": "math_number",
                                      "id": "m38H.[C87WoK8aynT8sD",
                                      "fields": {
                                        "NUM": 20
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      ]
    },
    "variables": [
      {
        "name": "速度",
        "id": "e?jv5v=gM_*hhpR_TL]a"
      }
    ]
  },
  "python": "import remote_controller\nimport drive\nimport time\n\n速度 = None\n\n\n速度 = 0\nwhile True:\n  if remote_controller.get_button(remote_controller.LEFT):\n    速度 = 30\n  elif remote_controller.get_button(remote_controller.RIGHT):\n    速度 = 60\n  elif remote_controller.get_button(remote_controller.UP):\n    速度 = 100\n  elif remote_controller.get_button(remote_controller.DOWN):\n    速度 = 0\n  drive.set_rpm(1, remote_controller.get_axis(remote_controller.LEFT_Y) * (速度 / 100))\n  drive.set_rpm(2, remote_controller.get_axis(remote_controller.RIGHT_Y) * (速度 / 100))\n  time.sleep_ms(int(20))\n",
  "programmingMode": "blocks"
}