{
  "blocks": {
    "languageVersion": 0,
    "blocks": [
      {
        "type": "variables_set",
        "id": "T!.[xB2Yqz?%;tR+31u|",
        "x": 13,
        "y": 88,
        "fields": {
          "VAR": {
            "id": "7`-9n!Gfl|I8-.^c~y`%"
          }
        },
        "inputs": {
          "VALUE": {
            "block": {
              "type": "math_number",
              "id": "IaWE$g?e.JpGcGNpS6:p",
              "fields": {
                "NUM": 0
              }
            }
          }
        },
        "next": {
          "block": {
            "type": "variables_set",
            "id": "}k*hHANM3D_N*n6VbfW`",
            "fields": {
              "VAR": {
                "id": "Edf$39FR~J9.uWbH5:E-"
              }
            },
            "inputs": {
              "VALUE": {
                "block": {
                  "type": "math_number",
                  "id": "d*%e)1b$fZc5|HyV^~Rz",
                  "fields": {
                    "NUM": 0
                  }
                }
              }
            },
            "next": {
              "block": {
                "type": "variables_set",
                "id": "/6OYC3C9.y0.uHdZO91L",
                "fields": {
                  "VAR": {
                    "id": "H0U][g]i!dH=G@+p!Rm4"
                  }
                },
                "inputs": {
                  "VALUE": {
                    "block": {
                      "type": "math_number",
                      "id": "D!]D0#RvV;#r~7W8OUkO",
                      "fields": {
                        "NUM": 0
                      }
                    }
                  }
                },
                "next": {
                  "block": {
                    "type": "APM_limit_switch_init",
                    "id": "VU}Yavqp}X5Tr]v/F8aa",
                    "fields": {
                      "instance_name": "触碰1",
                      "trigger_gpio": "A"
                    },
                    "next": {
                      "block": {
                        "type": "APM_digital_motor_init",
                        "id": "$_uWrTR9.~Z__h8LBm!u",
                        "fields": {
                          "digital_motor_instance": "投射",
                          "port": "3",
                          "direction": "True",
                          "soft_break": true
                        },
                        "next": {
                          "block": {
                            "type": "APM_digital_motor_init",
                            "id": "Ml4QB:n|U^Kio%9]Wo]Y",
                            "fields": {
                              "digital_motor_instance": "吸轮",
                              "port": "4",
                              "direction": "False",
                              "soft_break": true
                            },
                            "next": {
                              "block": {
                                "type": "APM_digital_motor_init",
                                "id": "jis;?%mK%ldTyXQ|?Brw",
                                "fields": {
                                  "digital_motor_instance": "左",
                                  "port": "2",
                                  "direction": "True",
                                  "soft_break": true
                                },
                                "next": {
                                  "block": {
                                    "type": "APM_digital_motor_init",
                                    "id": "`F#2NdPq~!aPndE=5qso",
                                    "fields": {
                                      "digital_motor_instance": "右",
                                      "port": "1",
                                      "direction": "False",
                                      "soft_break": true
                                    },
                                    "next": {
                                      "block": {
                                        "type": "APM_competition_mode",
                                        "id": "vHpTIivBU(6t`x$aF$Ju",
                                        "fields": {
                                          "auto_duration": 1,
                                          "auto_trigger": "UP"
                                        },
                                        "inputs": {
                                          "MANUAL_COMMANDS": {
                                            "block": {
                                              "type": "APM_digital_motor_openloop",
                                              "id": "^u-DW_=W,xJ@bqd@I=|i",
                                              "fields": {
                                                "instance": "左"
                                              },
                                              "inputs": {
                                                "speed": {
                                                  "shadow": {
                                                    "type": "math_number",
                                                    "id": "n=N[-P%s{w9m32=r0A77",
                                                    "fields": {
                                                      "NUM": 0
                                                    }
                                                  },
                                                  "block": {
                                                    "type": "APM-cheap_get_axis",
                                                    "id": "WOI,ObZ[u_$!E.Nq+(8n",
                                                    "fields": {
                                                      "axis_name": "LEFT_Y"
                                                    }
                                                  }
                                                }
                                              },
                                              "next": {
                                                "block": {
                                                  "type": "APM_digital_motor_openloop",
                                                  "id": "BT(QkB*,,vY/OB%y}d--",
                                                  "fields": {
                                                    "instance": "右"
                                                  },
                                                  "inputs": {
                                                    "speed": {
                                                      "shadow": {
                                                        "type": "math_number",
                                                        "id": ";fdR+:mYK^RgcY:#CHI/",
                                                        "fields": {
                                                          "NUM": 0
                                                        }
                                                      },
                                                      "block": {
                                                        "type": "APM-cheap_get_axis",
                                                        "id": "QOEa5dt%U}8SraGd!X4C",
                                                        "fields": {
                                                          "axis_name": "RIGHT_Y"
                                                        }
                                                      }
                                                    }
                                                  },
                                                  "next": {
                                                    "block": {
                                                      "type": "controls_if",
                                                      "id": ";}I9!tI5.EOO.TMaEWbL",
                                                      "extraState": {
                                                        "elseIfCount": 1,
                                                        "hasElse": true
                                                      },
                                                      "inputs": {
                                                        "IF0": {
                                                          "block": {
                                                            "type": "APM-cheap_get_button",
                                                            "id": "?T3eeJ:a30XsrwG?QTy!",
                                                            "fields": {
                                                              "button_name": "R1"
                                                            }
                                                          }
                                                        },
                                                        "DO0": {
                                                          "block": {
                                                            "type": "variables_set",
                                                            "id": "*b?KW|I*O_mix_o$};u^",
                                                            "fields": {
                                                              "VAR": {
                                                                "id": "Edf$39FR~J9.uWbH5:E-"
                                                              }
                                                            },
                                                            "inputs": {
                                                              "VALUE": {
                                                                "block": {
                                                                  "type": "math_number",
                                                                  "id": "P;+j4DK~f;7Wn--UNf;e",
                                                                  "fields": {
                                                                    "NUM": 1
                                                                  }
                                                                }
                                                              }
                                                            },
                                                            "next": {
                                                              "block": {
                                                                "type": "controls_if",
                                                                "id": "0_sm]iiqL@.=]$o||yn2",
                                                                "extraState": {
                                                                  "hasElse": true
                                                                },
                                                                "inputs": {
                                                                  "IF0": {
                                                                    "block": {
                                                                      "type": "APM_limit_switch_get",
                                                                      "id": "_Mn1//Q6.1-,oc8{^[XH",
                                                                      "fields": {
                                                                        "instance_name": "触碰1"
                                                                      }
                                                                    }
                                                                  },
                                                                  "DO0": {
                                                                    "block": {
                                                                      "type": "APM_digital_motor_openloop",
                                                                      "id": "L10ER,kB+a_8UeOG.9^G",
                                                                      "fields": {
                                                                        "instance": "吸轮"
                                                                      },
                                                                      "inputs": {
                                                                        "speed": {
                                                                          "shadow": {
                                                                            "type": "math_number",
                                                                            "id": "@q*V`*W3akV`u7V-q}Ki",
                                                                            "fields": {
                                                                              "NUM": 100
                                                                            }
                                                                          }
                                                                        }
                                                                      }
                                                                    }
                                                                  },
                                                                  "ELSE": {
                                                                    "block": {
                                                                      "type": "APM_digital_motor_openloop",
                                                                      "id": "!3,A0?!+A[GxII,/_XlK",
                                                                      "fields": {
                                                                        "instance": "吸轮"
                                                                      },
                                                                      "inputs": {
                                                                        "speed": {
                                                                          "shadow": {
                                                                            "type": "math_number",
                                                                            "id": ";fdR+:mYK^RgcY:#CHI/",
                                                                            "fields": {
                                                                              "NUM": 0
                                                                            }
                                                                          }
                                                                        }
                                                                      }
                                                                    }
                                                                  }
                                                                }
                                                              }
                                                            }
                                                          }
                                                        },
                                                        "IF1": {
                                                          "block": {
                                                            "type": "APM-cheap_get_button",
                                                            "id": "fzg8JkJ3#DOc?RE}m,F|",
                                                            "fields": {
                                                              "button_name": "A"
                                                            }
                                                          }
                                                        },
                                                        "DO1": {
                                                          "block": {
                                                            "type": "APM_digital_motor_openloop",
                                                            "id": "Ljv2kv;+QVl=[duL#]G`",
                                                            "fields": {
                                                              "instance": "吸轮"
                                                            },
                                                            "inputs": {
                                                              "speed": {
                                                                "shadow": {
                                                                  "type": "math_number",
                                                                  "id": "R1G*|lcHQf|U2tlO23|f",
                                                                  "fields": {
                                                                    "NUM": -100
                                                                  }
                                                                }
                                                              }
                                                            }
                                                          }
                                                        },
                                                        "ELSE": {
                                                          "block": {
                                                            "type": "APM_digital_motor_openloop",
                                                            "id": "/j$YUe3L=!Lw!.SyWG?Z",
                                                            "fields": {
                                                              "instance": "吸轮"
                                                            },
                                                            "inputs": {
                                                              "speed": {
                                                                "shadow": {
                                                                  "type": "math_number",
                                                                  "id": "0+Oi1c@]xfP-.W|pl!Lr",
                                                                  "fields": {
                                                                    "NUM": 0
                                                                  }
                                                                }
                                                              }
                                                            }
                                                          }
                                                        }
                                                      },
                                                      "next": {
                                                        "block": {
                                                          "type": "controls_if",
                                                          "id": "R-gW4Cm.;bAC302%4.PI",
                                                          "extraState": {
                                                            "elseIfCount": 2,
                                                            "hasElse": true
                                                          },
                                                          "inputs": {
                                                            "IF0": {
                                                              "block": {
                                                                "type": "APM-cheap_get_button",
                                                                "id": "J)$`jbaTuL%?v8tvy]~d",
                                                                "fields": {
                                                                  "button_name": "R2"
                                                                }
                                                              }
                                                            },
                                                            "DO0": {
                                                              "block": {
                                                                "type": "variables_set",
                                                                "id": ")H0+w.S+~vt7_9Lu4/|N",
                                                                "fields": {
                                                                  "VAR": {
                                                                    "id": "Edf$39FR~J9.uWbH5:E-"
                                                                  }
                                                                },
                                                                "inputs": {
                                                                  "VALUE": {
                                                                    "block": {
                                                                      "type": "math_number",
                                                                      "id": "a{0Iecc0qd?E(KAgj23=",
                                                                      "fields": {
                                                                        "NUM": 1
                                                                      }
                                                                    }
                                                                  }
                                                                },
                                                                "next": {
                                                                  "block": {
                                                                    "type": "variables_set",
                                                                    "id": "c:^2=yEG5/zX4:`e%(5.",
                                                                    "fields": {
                                                                      "VAR": {
                                                                        "id": "7`-9n!Gfl|I8-.^c~y`%"
                                                                      }
                                                                    },
                                                                    "inputs": {
                                                                      "VALUE": {
                                                                        "block": {
                                                                          "type": "math_number",
                                                                          "id": "]j9#(yoc$wDDBW^~R~_1",
                                                                          "fields": {
                                                                            "NUM": 1
                                                                          }
                                                                        }
                                                                      }
                                                                    },
                                                                    "next": {
                                                                      "block": {
                                                                        "type": "APM_digital_motor_openloop",
                                                                        "id": "p`G[5*p-7JCsGU%enfwc",
                                                                        "fields": {
                                                                          "instance": "投射"
                                                                        },
                                                                        "inputs": {
                                                                          "speed": {
                                                                            "shadow": {
                                                                              "type": "math_number",
                                                                              "id": "LOQ{/|2doNZwdbpJR_CM",
                                                                              "fields": {
                                                                                "NUM": 90
                                                                              }
                                                                            }
                                                                          }
                                                                        }
                                                                      }
                                                                    }
                                                                  }
                                                                }
                                                              }
                                                            },
                                                            "IF1": {
                                                              "block": {
                                                                "type": "APM-cheap_get_button",
                                                                "id": ";$e(ZN3@cUAvJA-oIV(d",
                                                                "fields": {
                                                                  "button_name": "P"
                                                                }
                                                              }
                                                            },
                                                            "DO1": {
                                                              "block": {
                                                                "type": "variables_set",
                                                                "id": "~bPi5mLI7zz#6i%9qGCE",
                                                                "fields": {
                                                                  "VAR": {
                                                                    "id": "7`-9n!Gfl|I8-.^c~y`%"
                                                                  }
                                                                },
                                                                "inputs": {
                                                                  "VALUE": {
                                                                    "block": {
                                                                      "type": "math_number",
                                                                      "id": "4.@fc#5[vQ9h}{Wh]B:7",
                                                                      "fields": {
                                                                        "NUM": 0
                                                                      }
                                                                    }
                                                                  }
                                                                },
                                                                "next": {
                                                                  "block": {
                                                                    "type": "variables_set",
                                                                    "id": "6?J$0M[Q*eO,6OvwG:Ca",
                                                                    "fields": {
                                                                      "VAR": {
                                                                        "id": "Edf$39FR~J9.uWbH5:E-"
                                                                      }
                                                                    },
                                                                    "inputs": {
                                                                      "VALUE": {
                                                                        "block": {
                                                                          "type": "math_number",
                                                                          "id": "S,Q63})ZLp0v6pRr@BAl",
                                                                          "fields": {
                                                                            "NUM": 0
                                                                          }
                                                                        }
                                                                      }
                                                                    },
                                                                    "next": {
                                                                      "block": {
                                                                        "type": "variables_set",
                                                                        "id": "P;xnQyPi=i_dTH`l{.o6",
                                                                        "fields": {
                                                                          "VAR": {
                                                                            "id": "H0U][g]i!dH=G@+p!Rm4"
                                                                          }
                                                                        },
                                                                        "inputs": {
                                                                          "VALUE": {
                                                                            "block": {
                                                                              "type": "math_number",
                                                                              "id": "K}jY[=QNh^g?qulOf%f)",
                                                                              "fields": {
                                                                                "NUM": 0
                                                                              }
                                                                            }
                                                                          }
                                                                        }
                                                                      }
                                                                    }
                                                                  }
                                                                }
                                                              }
                                                            },
                                                            "IF2": {
                                                              "block": {
                                                                "type": "logic_compare",
                                                                "id": "XM3=vYgmf0#W,.i:_To|",
                                                                "fields": {
                                                                  "OP": "EQ"
                                                                },
                                                                "inputs": {
                                                                  "A": {
                                                                    "block": {
                                                                      "type": "variables_get",
                                                                      "id": "m^!!HUvLipnLhKwZ0wW]",
                                                                      "fields": {
                                                                        "VAR": {
                                                                          "id": "Edf$39FR~J9.uWbH5:E-"
                                                                        }
                                                                      }
                                                                    }
                                                                  },
                                                                  "B": {
                                                                    "block": {
                                                                      "type": "math_number",
                                                                      "id": "w%PN[FL|45:wj@1@1b7s",
                                                                      "fields": {
                                                                        "NUM": 1
                                                                      }
                                                                    }
                                                                  }
                                                                }
                                                              }
                                                            },
                                                            "DO2": {
                                                              "block": {
                                                                "type": "controls_if",
                                                                "id": "/*KBvYO}Dy`fp1eBY|-|",
                                                                "extraState": {
                                                                  "hasElse": true
                                                                },
                                                                "inputs": {
                                                                  "IF0": {
                                                                    "block": {
                                                                      "type": "APM_limit_switch_get",
                                                                      "id": "NG%SOF,JXEW3}gl}XGWn",
                                                                      "fields": {
                                                                        "instance_name": "触碰1"
                                                                      }
                                                                    }
                                                                  },
                                                                  "DO0": {
                                                                    "block": {
                                                                      "type": "APM_digital_motor_openloop",
                                                                      "id": ".e.,We[c@6zCHNSHGv`n",
                                                                      "fields": {
                                                                        "instance": "投射"
                                                                      },
                                                                      "inputs": {
                                                                        "speed": {
                                                                          "shadow": {
                                                                            "type": "math_number",
                                                                            "id": "#UejFDDJS6AE+=SYWJ5d",
                                                                            "fields": {
                                                                              "NUM": 5
                                                                            }
                                                                          }
                                                                        }
                                                                      }
                                                                    }
                                                                  },
                                                                  "ELSE": {
                                                                    "block": {
                                                                      "type": "APM_digital_motor_openloop",
                                                                      "id": "a(y(O7|H0eBj*~,!C+k!",
                                                                      "fields": {
                                                                        "instance": "投射"
                                                                      },
                                                                      "inputs": {
                                                                        "speed": {
                                                                          "shadow": {
                                                                            "type": "math_number",
                                                                            "id": "{pUA]Nj%z1x?NITBZ2.+",
                                                                            "fields": {
                                                                              "NUM": 60
                                                                            }
                                                                          }
                                                                        }
                                                                      }
                                                                    }
                                                                  }
                                                                }
                                                              }
                                                            },
                                                            "ELSE": {
                                                              "block": {
                                                                "type": "variables_set",
                                                                "id": "0+M?d-wc?xW9Q^=~3M`+",
                                                                "fields": {
                                                                  "VAR": {
                                                                    "id": "7`-9n!Gfl|I8-.^c~y`%"
                                                                  }
                                                                },
                                                                "inputs": {
                                                                  "VALUE": {
                                                                    "block": {
                                                                      "type": "math_arithmetic",
                                                                      "id": "cl!r~Je,;+IuW7(U4]`b",
                                                                      "fields": {
                                                                        "OP": "ADD"
                                                                      },
                                                                      "inputs": {
                                                                        "A": {
                                                                          "block": {
                                                                            "type": "variables_get",
                                                                            "id": "U]I|5,D1U[cN~j^J!(4i",
                                                                            "fields": {
                                                                              "VAR": {
                                                                                "id": "7`-9n!Gfl|I8-.^c~y`%"
                                                                              }
                                                                            }
                                                                          }
                                                                        },
                                                                        "B": {
                                                                          "block": {
                                                                            "type": "math_number",
                                                                            "id": "{J[i[5vm_?N92N%4OPb)",
                                                                            "fields": {
                                                                              "NUM": 1
                                                                            }
                                                                          }
                                                                        }
                                                                      }
                                                                    }
                                                                  }
                                                                },
                                                                "next": {
                                                                  "block": {
                                                                    "type": "controls_if",
                                                                    "id": "_HOeJ5QM/Rtk_$KO5a(O",
                                                                    "extraState": {
                                                                      "hasElse": true
                                                                    },
                                                                    "inputs": {
                                                                      "IF0": {
                                                                        "block": {
                                                                          "type": "logic_compare",
                                                                          "id": "aHu*uO+P:z[7Uycv)c_E",
                                                                          "fields": {
                                                                            "OP": "LT"
                                                                          },
                                                                          "inputs": {
                                                                            "A": {
                                                                              "block": {
                                                                                "type": "variables_get",
                                                                                "id": "O,UVf+Q8A~U_A+%!9y:=",
                                                                                "fields": {
                                                                                  "VAR": {
                                                                                    "id": "7`-9n!Gfl|I8-.^c~y`%"
                                                                                  }
                                                                                }
                                                                              }
                                                                            },
                                                                            "B": {
                                                                              "block": {
                                                                                "type": "math_number",
                                                                                "id": "VfHY3`K+i]TTZ/yZVx3T",
                                                                                "fields": {
                                                                                  "NUM": 500
                                                                                }
                                                                              }
                                                                            }
                                                                          }
                                                                        }
                                                                      },
                                                                      "DO0": {
                                                                        "block": {
                                                                          "type": "APM_digital_motor_openloop",
                                                                          "id": "tL/qCQ0X$c}{%=4^?TAp",
                                                                          "fields": {
                                                                            "instance": "投射"
                                                                          },
                                                                          "inputs": {
                                                                            "speed": {
                                                                              "shadow": {
                                                                                "type": "math_number",
                                                                                "id": "oO:Q1^!kkV13ajfdLfGr",
                                                                                "fields": {
                                                                                  "NUM": -1
                                                                                }
                                                                              }
                                                                            }
                                                                          }
                                                                        }
                                                                      },
                                                                      "ELSE": {
                                                                        "block": {
                                                                          "type": "APM_digital_motor_openloop",
                                                                          "id": "m.sOe=_].qmhU^?n2AaE",
                                                                          "fields": {
                                                                            "instance": "投射"
                                                                          },
                                                                          "inputs": {
                                                                            "speed": {
                                                                              "shadow": {
                                                                                "type": "math_number",
                                                                                "id": "JTpXbvcXmS(}@4s4hct]",
                                                                                "fields": {
                                                                                  "NUM": 0
                                                                                }
                                                                              }
                                                                            }
                                                                          }
                                                                        }
                                                                      }
                                                                    }
                                                                  }
                                                                }
                                                              }
                                                            }
                                                          },
                                                          "next": {
                                                            "block": {
                                                              "type": "my_print",
                                                              "id": "0ApZTIoAZW6J#xYeSc5x",
                                                              "inputs": {
                                                                "content": {
                                                                  "block": {
                                                                    "type": "APM_limit_switch_get",
                                                                    "id": "{X]lK!UgCmYJBKvB$J!,",
                                                                    "fields": {
                                                                      "instance_name": "触碰1"
                                                                    }
                                                                  }
                                                                }
                                                              }
                                                            }
                                                          }
                                                        }
                                                      }
                                                    }
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    ]
  },
  "variables": [
    {
      "name": "shoot_mod",
      "id": "Edf$39FR~J9.uWbH5:E-"
    },
    {
      "name": "shoot_timer",
      "id": "7`-9n!Gfl|I8-.^c~y`%"
    },
    {
      "name": "lift_mod",
      "id": "H0U][g]i!dH=G@+p!Rm4"
    }
  ]
}