{
  "blocks": {
    "languageVersion": 0,
    "blocks": [
      {
        "type": "APM-cheap_360_servo_motor_init",
        "id": "HN^C~BO7(ZATxY3,8;h/",
        "x": 188,
        "y": 463,
        "icons": {
          "comment": {
            "text": "危险，立即停止!\n指令组合:机械臂向下摆动+LED灯快速闪烁",
            "pinned": true,
            "height": 90.5,
            "width": 167
          }
        },
        "fields": {
          "xmotor_instance": "我的电机1",
          "port": "1",
          "direction": "False"
        },
        "next": {
          "block": {
            "type": "APM-cheap_360_servo_motor_init",
            "id": "rZLm,Q.GXgXXEOD,v5-a",
            "fields": {
              "xmotor_instance": "我的电机2",
              "port": "2",
              "direction": "True"
            },
            "next": {
              "block": {
                "type": "controls_whileUntil",
                "id": "+h$Kh~tljVQR+Eo69Pp)",
                "fields": {
                  "MODE": "WHILE"
                },
                "inputs": {
                  "BOOL": {
                    "block": {
                      "type": "logic_boolean",
                      "id": "]I@eSRb+ja2;tVs0=Q3W",
                      "fields": {
                        "BOOL": "TRUE"
                      }
                    }
                  },
                  "DO": {
                    "block": {
                      "type": "APM-cheap_360_servo_motor",
                      "id": "P48w=6+SLt1_;!E`]gvr",
                      "extraState": "<mutation xmlns=\"http://www.w3.org/1999/xhtml\" xmotor_instance=\"我的电机1\"></mutation>",
                      "fields": {
                        "xmotor_instance": "我的电机1"
                      },
                      "inputs": {
                        "value": {
                          "shadow": {
                            "type": "math_number",
                            "id": "Sx`ON,|{J#2;|[L;@_.!",
                            "fields": {
                              "NUM": 50
                            }
                          }
                        }
                      },
                      "next": {
                        "block": {
                          "type": "APM-cheap_360_servo_motor",
                          "id": "5@]qL=]RxJmf6}={IZ42",
                          "extraState": "<mutation xmlns=\"http://www.w3.org/1999/xhtml\" xmotor_instance=\"我的电机2\"></mutation>",
                          "fields": {
                            "xmotor_instance": "我的电机2"
                          },
                          "inputs": {
                            "value": {
                              "shadow": {
                                "type": "math_number",
                                "id": "%j]g([-$dWW*P2P/#xoO",
                                "fields": {
                                  "NUM": 50
                                }
                              }
                            }
                          },
                          "next": {
                            "block": {
                              "type": "APM-cheap_led_on",
                              "id": "o5}*w4[D?GHANWgx0]8P",
                              "next": {
                                "block": {
                                  "type": "time_sleep",
                                  "id": "Sxnm-BTq^]BPUn[(z?Mx",
                                  "inputs": {
                                    "second": {
                                      "shadow": {
                                        "type": "math_number",
                                        "id": "Y]4.1P1OWY5X9H%z)GD#",
                                        "fields": {
                                          "NUM": 0.2
                                        }
                                      }
                                    }
                                  },
                                  "next": {
                                    "block": {
                                      "type": "APM-cheap_360_servo_motor",
                                      "id": "@-C9%qOGV~iD;`N@WYPM",
                                      "extraState": "<mutation xmlns=\"http://www.w3.org/1999/xhtml\" xmotor_instance=\"我的电机1\"></mutation>",
                                      "fields": {
                                        "xmotor_instance": "我的电机1"
                                      },
                                      "inputs": {
                                        "value": {
                                          "shadow": {
                                            "type": "math_number",
                                            "id": "id0$B]YwxfyIluDm_CKs",
                                            "fields": {
                                              "NUM": -50
                                            }
                                          }
                                        }
                                      },
                                      "next": {
                                        "block": {
                                          "type": "APM-cheap_360_servo_motor",
                                          "id": "*?csIQ;;rHaFpIlZ!J*m",
                                          "extraState": "<mutation xmlns=\"http://www.w3.org/1999/xhtml\" xmotor_instance=\"我的电机2\"></mutation>",
                                          "fields": {
                                            "xmotor_instance": "我的电机2"
                                          },
                                          "inputs": {
                                            "value": {
                                              "shadow": {
                                                "type": "math_number",
                                                "id": "qv+h3yWTs?H7tpQMHnUC",
                                                "fields": {
                                                  "NUM": -50
                                                }
                                              }
                                            }
                                          },
                                          "next": {
                                            "block": {
                                              "type": "APM-cheap_led_off",
                                              "id": ".]f]_v*8PL+qA+n83?~+",
                                              "next": {
                                                "block": {
                                                  "type": "time_sleep",
                                                  "id": "]I.^tjXFc+1IW_OjXr^U",
                                                  "inputs": {
                                                    "second": {
                                                      "shadow": {
                                                        "type": "math_number",
                                                        "id": "Y$k5L.G-m.d}MBZ%$S-~",
                                                        "fields": {
                                                          "NUM": 0.2
                                                        }
                                                      }
                                                    }
                                                  }
                                                }
                                              }
                                            }
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      {
        "type": "APM-cheap_360_servo_motor_init",
        "id": "S]B]jJ1Q`c~Md*.T/|wY",
        "x": 188,
        "y": 63,
        "icons": {
          "comment": {
            "text": "发现目标!\n指令组合:机械臂竖直向上+LED灯保持常亮",
            "pinned": true,
            "height": 90.5,
            "width": 167
          }
        },
        "fields": {
          "xmotor_instance": "我的电机1",
          "port": "1",
          "direction": "False"
        },
        "next": {
          "block": {
            "type": "APM-cheap_360_servo_motor_init",
            "id": "~g|L+-/NKs.Y[-X3+Itf",
            "fields": {
              "xmotor_instance": "我的电机2",
              "port": "2",
              "direction": "True"
            },
            "next": {
              "block": {
                "type": "APM-cheap_360_servo_motor",
                "id": "uIL:Z_=e#;`9fv#GK8`5",
                "extraState": "<mutation xmlns=\"http://www.w3.org/1999/xhtml\" xmotor_instance=\"我的电机1\"></mutation>",
                "fields": {
                  "xmotor_instance": "我的电机1"
                },
                "inputs": {
                  "value": {
                    "shadow": {
                      "type": "math_number",
                      "id": ".J0pDH8,6eoXL-X4zilv",
                      "fields": {
                        "NUM": 50
                      }
                    }
                  }
                },
                "next": {
                  "block": {
                    "type": "APM-cheap_360_servo_motor",
                    "id": "DjmlV!9Q.L0U/RfewyZ+",
                    "extraState": "<mutation xmlns=\"http://www.w3.org/1999/xhtml\" xmotor_instance=\"我的电机2\"></mutation>",
                    "fields": {
                      "xmotor_instance": "我的电机2"
                    },
                    "inputs": {
                      "value": {
                        "shadow": {
                          "type": "math_number",
                          "id": "2nQR,+vu~(}m_tyakrr;",
                          "fields": {
                            "NUM": 50
                          }
                        }
                      }
                    },
                    "next": {
                      "block": {
                        "type": "APM-cheap_led_on",
                        "id": "o{w3Q2P*+OSxrgy[{qf6",
                        "next": {
                          "block": {
                            "type": "time_sleep",
                            "id": "T1elW$8TN?QFtQ3Bff-K",
                            "inputs": {
                              "second": {
                                "shadow": {
                                  "type": "math_number",
                                  "id": "yE8VYH_=@hk{]9SntGpy",
                                  "fields": {
                                    "NUM": 0.2
                                  }
                                }
                              }
                            },
                            "next": {
                              "block": {
                                "type": "APM-cheap_360_servo_motor",
                                "id": "H@:@pb?pHCS{+%+T}y{x",
                                "extraState": "<mutation xmlns=\"http://www.w3.org/1999/xhtml\" xmotor_instance=\"我的电机1\"></mutation>",
                                "fields": {
                                  "xmotor_instance": "我的电机1"
                                },
                                "inputs": {
                                  "value": {
                                    "shadow": {
                                      "type": "math_number",
                                      "id": "4r^tXhl,EN(lrS;=_H]q",
                                      "fields": {
                                        "NUM": 0
                                      }
                                    }
                                  }
                                },
                                "next": {
                                  "block": {
                                    "type": "APM-cheap_360_servo_motor",
                                    "id": "HkfrjW~D`V*FO3OsH:LN",
                                    "extraState": "<mutation xmlns=\"http://www.w3.org/1999/xhtml\" xmotor_instance=\"我的电机2\"></mutation>",
                                    "fields": {
                                      "xmotor_instance": "我的电机2"
                                    },
                                    "inputs": {
                                      "value": {
                                        "shadow": {
                                          "type": "math_number",
                                          "id": "d`$d:*w)]RZ|^yr/ve00",
                                          "fields": {
                                            "NUM": 0
                                          }
                                        }
                                      }
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    ]
  }
}