FarmBot/Farmbot-Web-App

View on GitHub
spec/lib/celery_script/ast_fixture1.json

Summary

Maintainability
Test Coverage
[
  {
    "kind": "move_absolute",
    "args": {
      "x": 1,
      "y": 2,
      "z": 3,
      "speed": 4
    }
  },
  {
    "kind": "move_relative",
    "args": {
      "x": 1,
      "y": 2,
      "z": 3,
      "speed": 4
    }
  },
  {
    "kind": "write_pin",
    "args": {
      "pin_number": 1,
      "pin_value": 0,
      "pin_mode": 1
    }
  },
  {
    "kind": "read_pin",
    "args": {
      "pin_number": 1,
      "data_label": "probably_a_variable"
    }
  },
  {
    "kind": "wait",
    "args": {
      "milliseconds": 5000
    }
  },
  {
    "kind": "send_message",
    "args": {
      "message": "Value is {{ probably_a_variable }}"
    }
  },
  {
    "kind": "execute",
    "args": {
      "sub_sequence_id": 123
    }
  },
  {
    "kind": "_if",
    "args": {
      "lhs": "x",
      "op": ">",
      "rhs": 5,
      "_then": {
        "kind": "nothing",
        "args": {}
      },
      "_else": {
        "kind": "execute",
        "args": {
          "sub_sequence_id": 123
        }
      }
    }
  }
]