Skip to content

Instantly share code, notes, and snippets.

@dmalawey
Created September 26, 2019 01:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dmalawey/b903526567036f9ee52460bd86d326cb to your computer and use it in GitHub Desktop.
Save dmalawey/b903526567036f9ee52460bd86d326cb to your computer and use it in GitHub Desktop.
export a flow for example for lab 4
[
{
"id": "267bf868.5e6a88",
"type": "tab",
"label": "My Export Flow",
"disabled": false,
"info": ""
},
{
"id": "84aaf1fd.4870b",
"type": "inject",
"z": "267bf868.5e6a88",
"name": "",
"topic": "Log_data",
"payload": "",
"payloadType": "date",
"repeat": "0.25",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 160,
"y": 100,
"wires": [
[
"25e4c47e.de9aac",
"2a578177.1b77ae",
"f120e93.a366118",
"74d376c3.e23328",
"5e216698.9005e8",
"6cb9c8ba.4f34c8",
"dabd4d9a.e206e",
"befa815e.41c14",
"604ff33b.f93dec",
"4a333917.f27fc8"
]
]
},
{
"id": "dc558ab6.a492a8",
"type": "ui_chart",
"z": "267bf868.5e6a88",
"name": "",
"group": "f67699c2.7badc8",
"order": 6,
"width": 0,
"height": 0,
"label": "X-axis",
"chartType": "line",
"legend": "false",
"xformat": "HH:mm:ss",
"interpolate": "linear",
"nodata": "x data",
"dot": false,
"ymin": "-1.1",
"ymax": "1.1",
"removeOlder": "30",
"removeOlderPoints": "",
"removeOlderUnit": "1",
"cutout": 0,
"useOneColor": false,
"colors": [
"#1f77b4",
"#aec7e8",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"useOldStyle": false,
"outputs": 1,
"x": 630,
"y": 100,
"wires": [
[]
]
},
{
"id": "c6b37c32.ecf7b",
"type": "ui_chart",
"z": "267bf868.5e6a88",
"name": "",
"group": "f67699c2.7badc8",
"order": 7,
"width": 0,
"height": 0,
"label": "Y axis",
"chartType": "line",
"legend": "false",
"xformat": "HH:mm:ss",
"interpolate": "linear",
"nodata": "y data",
"dot": false,
"ymin": "-1.1",
"ymax": "1.1",
"removeOlder": "30",
"removeOlderPoints": "",
"removeOlderUnit": "1",
"cutout": 0,
"useOneColor": false,
"colors": [
"#1f77b4",
"#aec7e8",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"useOldStyle": false,
"outputs": 1,
"x": 630,
"y": 140,
"wires": [
[]
]
},
{
"id": "25e4c47e.de9aac",
"type": "file in",
"z": "267bf868.5e6a88",
"name": "",
"filename": "/home/debian/basics/a.txt",
"format": "utf8",
"chunk": false,
"sendError": false,
"x": 430,
"y": 100,
"wires": [
[
"dc558ab6.a492a8",
"db7d617a.913c3"
]
]
},
{
"id": "2a578177.1b77ae",
"type": "file in",
"z": "267bf868.5e6a88",
"name": "",
"filename": "/home/debian/basics/b.txt",
"format": "utf8",
"chunk": false,
"sendError": false,
"x": 430,
"y": 140,
"wires": [
[
"c6b37c32.ecf7b",
"748caadb.c08504"
]
]
},
{
"id": "f120e93.a366118",
"type": "file in",
"z": "267bf868.5e6a88",
"name": "",
"filename": "/home/debian/basics/c.txt",
"format": "utf8",
"chunk": false,
"sendError": false,
"x": 430,
"y": 180,
"wires": [
[
"b3af08c7.7bd168",
"bbca66e3.d1fff8"
]
]
},
{
"id": "b3af08c7.7bd168",
"type": "ui_chart",
"z": "267bf868.5e6a88",
"name": "",
"group": "f67699c2.7badc8",
"order": 8,
"width": 0,
"height": 0,
"label": "arctan x / y",
"chartType": "line",
"legend": "false",
"xformat": "HH:mm:ss",
"interpolate": "linear",
"nodata": "y data",
"dot": false,
"ymin": "-185",
"ymax": "185",
"removeOlder": "40",
"removeOlderPoints": "",
"removeOlderUnit": "1",
"cutout": 0,
"useOneColor": false,
"colors": [
"#1f77b4",
"#aec7e8",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"useOldStyle": false,
"outputs": 1,
"x": 650,
"y": 180,
"wires": [
[]
]
},
{
"id": "db7d617a.913c3",
"type": "ui_text",
"z": "267bf868.5e6a88",
"group": "f67699c2.7badc8",
"order": 3,
"width": 0,
"height": 0,
"name": "",
"label": "x (value)",
"format": "{{payload}}",
"layout": "row-spread",
"x": 780,
"y": 80,
"wires": []
},
{
"id": "748caadb.c08504",
"type": "ui_text",
"z": "267bf868.5e6a88",
"group": "f67699c2.7badc8",
"order": 4,
"width": 0,
"height": 0,
"name": "",
"label": "y (value)",
"format": "{{payload}}",
"layout": "row-spread",
"x": 780,
"y": 120,
"wires": []
},
{
"id": "bbca66e3.d1fff8",
"type": "ui_text",
"z": "267bf868.5e6a88",
"group": "f67699c2.7badc8",
"order": 5,
"width": 0,
"height": 0,
"name": "",
"label": "arctan (degrees)",
"format": "{{payload}}",
"layout": "row-spread",
"x": 820,
"y": 160,
"wires": []
},
{
"id": "74d376c3.e23328",
"type": "file in",
"z": "267bf868.5e6a88",
"name": "",
"filename": "/home/debian/basics/encL.txt",
"format": "utf8",
"chunk": false,
"sendError": false,
"x": 440,
"y": 260,
"wires": [
[
"1d19f453.f4e81c"
]
]
},
{
"id": "5e216698.9005e8",
"type": "file in",
"z": "267bf868.5e6a88",
"name": "",
"filename": "/home/debian/basics/encR.txt",
"format": "utf8",
"chunk": false,
"sendError": false,
"x": 450,
"y": 300,
"wires": [
[
"5fa7da25.94e494"
]
]
},
{
"id": "1d19f453.f4e81c",
"type": "ui_chart",
"z": "267bf868.5e6a88",
"name": "",
"group": "8106d799.2dab98",
"order": 1,
"width": 0,
"height": 0,
"label": "Left Encoder (deg)",
"chartType": "line",
"legend": "false",
"xformat": "HH:mm:ss",
"interpolate": "linear",
"nodata": "x data",
"dot": false,
"ymin": "0",
"ymax": "360",
"removeOlder": "30",
"removeOlderPoints": "",
"removeOlderUnit": "1",
"cutout": 0,
"useOneColor": false,
"colors": [
"#1f77b4",
"#aec7e8",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"useOldStyle": false,
"outputs": 1,
"x": 710,
"y": 260,
"wires": [
[]
]
},
{
"id": "5fa7da25.94e494",
"type": "ui_chart",
"z": "267bf868.5e6a88",
"name": "",
"group": "516c8530.40ad0c",
"order": 1,
"width": 0,
"height": 0,
"label": "Right Encoder (deg)",
"chartType": "line",
"legend": "false",
"xformat": "HH:mm:ss",
"interpolate": "linear",
"nodata": "x data",
"dot": false,
"ymin": "0",
"ymax": "360",
"removeOlder": "30",
"removeOlderPoints": "",
"removeOlderUnit": "1",
"cutout": 0,
"useOneColor": false,
"colors": [
"#1f77b4",
"#aec7e8",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"useOldStyle": false,
"outputs": 1,
"x": 720,
"y": 300,
"wires": [
[]
]
},
{
"id": "6cb9c8ba.4f34c8",
"type": "file in",
"z": "267bf868.5e6a88",
"name": "",
"filename": "/home/debian/basics/p.txt",
"format": "utf8",
"chunk": false,
"sendError": false,
"x": 430,
"y": 360,
"wires": [
[
"51efe3f8.43f16c",
"e93e1ba5.213fe8"
]
]
},
{
"id": "51efe3f8.43f16c",
"type": "ui_text",
"z": "267bf868.5e6a88",
"group": "f67699c2.7badc8",
"order": 1,
"width": 0,
"height": 0,
"name": "",
"label": "Ambient Pressure (kPa)",
"format": "{{payload}}",
"layout": "row-spread",
"x": 690,
"y": 360,
"wires": []
},
{
"id": "e93e1ba5.213fe8",
"type": "ui_gauge",
"z": "267bf868.5e6a88",
"name": "",
"group": "f67699c2.7badc8",
"order": 2,
"width": 0,
"height": 0,
"gtype": "gage",
"title": "Ambient Pressure (kPa)",
"label": "units",
"format": "{{value}}",
"min": "100.5",
"max": "101",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 690,
"y": 400,
"wires": []
},
{
"id": "dabd4d9a.e206e",
"type": "file in",
"z": "267bf868.5e6a88",
"name": "xdot",
"filename": "/home/debian/basics/xdot.txt",
"format": "utf8",
"chunk": false,
"sendError": false,
"x": 370,
"y": 480,
"wires": [
[
"25c3eb4d.20aee4"
]
]
},
{
"id": "25c3eb4d.20aee4",
"type": "ui_gauge",
"z": "267bf868.5e6a88",
"name": "",
"group": "ad3dfbb.1de7b08",
"order": 3,
"width": 0,
"height": 0,
"gtype": "gage",
"title": "x-Dot (m/s)",
"label": "units",
"format": "{{value}}",
"min": "-0.5",
"max": "0.5",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 650,
"y": 480,
"wires": []
},
{
"id": "befa815e.41c14",
"type": "file in",
"z": "267bf868.5e6a88",
"name": "PDL",
"filename": "/home/debian/basics/pdl.txt",
"format": "utf8",
"chunk": false,
"sendError": false,
"x": 370,
"y": 560,
"wires": [
[
"af86d9d9.e87788"
]
]
},
{
"id": "af86d9d9.e87788",
"type": "ui_gauge",
"z": "267bf868.5e6a88",
"name": "",
"group": "8106d799.2dab98",
"order": 2,
"width": 0,
"height": 0,
"gtype": "gage",
"title": "PDL (rad/s)",
"label": "units",
"format": "{{value}}",
"min": "-5",
"max": "5",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 650,
"y": 560,
"wires": []
},
{
"id": "604ff33b.f93dec",
"type": "file in",
"z": "267bf868.5e6a88",
"name": "PDR",
"filename": "/home/debian/basics/pdr.txt",
"format": "utf8",
"chunk": false,
"sendError": false,
"x": 370,
"y": 600,
"wires": [
[
"3d1d541a.720ecc"
]
]
},
{
"id": "3d1d541a.720ecc",
"type": "ui_gauge",
"z": "267bf868.5e6a88",
"name": "",
"group": "516c8530.40ad0c",
"order": 2,
"width": 0,
"height": 0,
"gtype": "gage",
"title": "PDR (rad/s)",
"label": "units",
"format": "{{value}}",
"min": "-5",
"max": "5",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 650,
"y": 600,
"wires": []
},
{
"id": "4a333917.f27fc8",
"type": "file in",
"z": "267bf868.5e6a88",
"name": "ThetaDot",
"filename": "/home/debian/basics/tdot.txt",
"format": "utf8",
"chunk": false,
"sendError": false,
"x": 380,
"y": 520,
"wires": [
[
"93d9915a.20603"
]
]
},
{
"id": "93d9915a.20603",
"type": "ui_gauge",
"z": "267bf868.5e6a88",
"name": "",
"group": "ad3dfbb.1de7b08",
"order": 3,
"width": 0,
"height": 0,
"gtype": "gage",
"title": "T-Dot (rad/s)",
"label": "units",
"format": "{{value}}",
"min": "-1.5",
"max": "1.5",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 650,
"y": 520,
"wires": []
},
{
"id": "f67699c2.7badc8",
"type": "ui_group",
"z": "",
"name": "Compass",
"tab": "ebc9477f.44bc38",
"order": 1,
"disp": true,
"width": "8",
"collapse": false
},
{
"id": "8106d799.2dab98",
"type": "ui_group",
"z": "",
"name": "LeftHand",
"tab": "dc77837f.eb748",
"order": 1,
"disp": true,
"width": "6",
"collapse": false
},
{
"id": "516c8530.40ad0c",
"type": "ui_group",
"z": "",
"name": "RightHand",
"tab": "dc77837f.eb748",
"order": 2,
"disp": true,
"width": "6",
"collapse": false
},
{
"id": "ad3dfbb.1de7b08",
"type": "ui_group",
"z": "",
"name": "Chassis",
"tab": "dc77837f.eb748",
"order": 3,
"disp": true,
"width": "6",
"collapse": false
},
{
"id": "ebc9477f.44bc38",
"type": "ui_tab",
"z": "",
"name": "Sensors",
"icon": "dashboard",
"disabled": false,
"hidden": false
},
{
"id": "dc77837f.eb748",
"type": "ui_tab",
"z": "",
"name": "Kinematics",
"icon": "dashboard",
"order": 2,
"disabled": false,
"hidden": false
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment