{"id":428,"date":"2026-06-11T10:17:15","date_gmt":"2026-06-11T02:17:15","guid":{"rendered":"https:\/\/projectleon.net\/make\/blog\/telemetry-dashboard-python-mavlink-monitoring-farsi\/"},"modified":"2026-06-11T10:17:16","modified_gmt":"2026-06-11T02:17:16","slug":"telemetry-dashboard-python-mavlink-monitoring-farsi","status":"publish","type":"post","link":"https:\/\/projectleon.net\/make\/blog\/telemetry-dashboard-python-mavlink-monitoring-farsi\/","title":{"rendered":"\u0633\u0627\u062e\u062a Telemetry Dashboard \u0628\u0627 Python \u0648 MAVLink: \u0645\u0627\u0646\u06cc\u062a\u0648\u0631\u06cc\u0646\u06af \u067e\u0631\u0648\u0627\u0632 \u0631\u0648\u06cc \u0644\u067e\u200c\u062a\u0627\u067e (\u0641\u0627\u0631\u0633\u06cc)"},"content":{"rendered":"<div class='hero-image-container' style='margin-bottom:28px;border-radius:14px;overflow:hidden;box-shadow:0 4px 18px rgba(0,0,0,0.08)'>\n<img src='https:\/\/projectleon.net\/make\/wp-content\/uploads\/2026\/06\/post39-python-mavlink.jpg' alt='\u062f\u0627\u0634\u0628\u0648\u0631\u062f Telemetry Python MAVLink \u067e\u0647\u067e\u0627\u062f' style='width:100%;height:auto;display:block' loading='eager'\/>\n<\/div>\n<div class='beginner-intro' style='background:#f0f7ff;border-right:4px solid #2e5fb6;padding:16px 20px;border-radius:10px;margin-bottom:22px'>\n<h2 style='margin-top:0'>MAVLink \u0648 Telemetry Dashboard \u06cc\u0639\u0646\u06cc \u0686\u0647\u061f (\u0628\u0631\u0627\u06cc \u0645\u0628\u062a\u062f\u06cc)<\/h2>\n<p><strong>MAVLink<\/strong> (Micro Air Vehicle Link) \u06cc\u06a9 \u067e\u0631\u0648\u062a\u06a9\u0644 \u0627\u0631\u062a\u0628\u0627\u0637\u06cc \u0633\u0628\u06a9 \u0627\u0633\u062a \u06a9\u0647 \u062a\u0648\u0633\u0637 \u067e\u0647\u067e\u0627\u062f\u0647\u0627\u06cc ArduPilot\u060c PX4 \u0648 \u062f\u06cc\u06af\u0631\u0627\u0646 \u0628\u0631\u0627\u06cc \u062a\u0628\u0627\u062f\u0644 \u062f\u0627\u062f\u0647 \u067e\u0631\u0648\u0627\u0632 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f. \u0627\u0632 \u0637\u0631\u06cc\u0642 \u06cc\u06a9 \u0644\u06cc\u0646\u06a9 Telemetry (\u0631\u0627\u062f\u06cc\u0648 433MHz SiK \u06cc\u0627 WiFi)\u060c \u067e\u0647\u067e\u0627\u062f \u067e\u06cc\u0627\u0645\u200c\u0647\u0627\u06cc MAVLink \u0634\u0627\u0645\u0644 \u0645\u0648\u0642\u0639\u06cc\u062a GPS\u060c \u0627\u0631\u062a\u0641\u0627\u0639\u060c \u0633\u0631\u0639\u062a\u060c \u0648\u0636\u0639\u06cc\u062a \u0628\u0627\u062a\u0631\u06cc\u060c \u062d\u0627\u0644\u062a \u067e\u0631\u0648\u0627\u0632 \u0648 \u0635\u062f\u0647\u0627 \u067e\u0627\u0631\u0627\u0645\u062a\u0631 \u062f\u06cc\u06af\u0631 \u0631\u0627 \u0645\u06cc\u200c\u0641\u0631\u0633\u062a\u062f.<\/p>\n<p><strong>pymavlink<\/strong> \u06cc\u06a9 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647 Python \u0627\u0633\u062a \u06a9\u0647 \u062f\u0631\u06cc\u0627\u0641\u062a \u0648 \u0627\u0631\u0633\u0627\u0644 \u067e\u06cc\u0627\u0645\u200c\u0647\u0627\u06cc MAVLink \u0631\u0627 \u0633\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0628\u0627 \u062a\u0631\u06a9\u06cc\u0628 pymavlink \u0648 <strong>Tkinter<\/strong> (\u0631\u0627\u0628\u0637 \u06af\u0631\u0627\u0641\u06cc\u06a9\u06cc \u062f\u0627\u062e\u0644\u06cc Python)\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u06cc\u06a9 \u062f\u0627\u0634\u0628\u0648\u0631\u062f \u0645\u0627\u0646\u06cc\u062a\u0648\u0631\u06cc\u0646\u06af \u0633\u0641\u0627\u0631\u0634\u06cc \u0628\u0633\u0627\u0632\u06cc\u062f \u2014 \u062f\u0642\u06cc\u0642\u0627\u064b \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc \u06a9\u0647 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f.<\/p>\n<\/div>\n<div style='border:1px solid #d8d8d8;padding:18px 20px;border-radius:12px;background:#fafafa;margin-bottom:22px'>\n<h2 style='margin-top:0'>\u0645\u062d\u0635\u0648\u0644\u06cc \u06a9\u0647 \u0645\u06cc\u200c\u0633\u0627\u0632\u06cc\u062f<\/h2>\n<p>\u06cc\u06a9 \u062f\u0627\u0634\u0628\u0648\u0631\u062f Python \u06a9\u0647 \u0627\u0631\u062a\u0641\u0627\u0639\u060c \u0633\u0631\u0639\u062a\u060c \u0648\u0644\u062a\u0627\u0698\u060c GPS\u060c RSSI \u0648 \u062d\u0627\u0644\u062a \u067e\u0631\u0648\u0627\u0632 \u0631\u0627 \u062f\u0631 \u0632\u0645\u0627\u0646 \u0648\u0627\u0642\u0639\u06cc \u0646\u0645\u0627\u06cc\u0634 \u0645\u06cc\u200c\u062f\u0647\u062f.<\/p>\n<ul>\n<li><strong>\u0632\u0645\u0627\u0646 \u0633\u0627\u062e\u062a:<\/strong> \u06f3 \u062a\u0627 \u06f5 \u0633\u0627\u0639\u062a<\/li>\n<li><strong>\u0647\u0632\u06cc\u0646\u0647:<\/strong> \u0631\u0627\u06cc\u06af\u0627\u0646 (Python + pymavlink)<\/li>\n<li><strong>\u067e\u06cc\u0634\u200c\u0646\u06cc\u0627\u0632:<\/strong> Python 3.x \u0646\u0635\u0628\u200c\u0634\u062f\u0647<\/li>\n<\/ul>\n<\/div>\n<p><svg viewBox='0 0 860 230' width='100%' xmlns='http:\/\/www.w3.org\/2000\/svg' style='background:#1a1a2e;border:1px solid #444;border-radius:12px;margin-bottom:22px'>\n<rect x='30' y='20' width='800' height='185' rx='12' fill='#0d1117' stroke='#30363d'\/>\n<rect x='50' y='40' width='170' height='80' rx='8' fill='#161b22' stroke='#30363d'\/>\n<rect x='250' y='40' width='170' height='80' rx='8' fill='#161b22' stroke='#30363d'\/>\n<rect x='450' y='40' width='170' height='80' rx='8' fill='#161b22' stroke='#30363d'\/>\n<rect x='650' y='40' width='160' height='80' rx='8' fill='#161b22' stroke='#30363d'\/>\n<text x='135' y='68' text-anchor='middle' font-size='11' font-family='monospace' fill='#58a6ff'>ALT<\/text>\n<text x='135' y='90' text-anchor='middle' font-size='22' font-family='monospace' fill='#0f0'>42.3m<\/text>\n<text x='335' y='68' text-anchor='middle' font-size='11' font-family='monospace' fill='#58a6ff'>SPEED<\/text>\n<text x='335' y='90' text-anchor='middle' font-size='22' font-family='monospace' fill='#ff9f1c'>8.4m\/s<\/text>\n<text x='535' y='68' text-anchor='middle' font-size='11' font-family='monospace' fill='#58a6ff'>VOLTAGE<\/text>\n<text x='535' y='90' text-anchor='middle' font-size='22' font-family='monospace' fill='#ffeb3b'>12.6V<\/text>\n<text x='730' y='68' text-anchor='middle' font-size='11' font-family='monospace' fill='#58a6ff'>MODE<\/text>\n<text x='730' y='90' text-anchor='middle' font-size='18' font-family='monospace' fill='#4fc3f7'>LOITER<\/text>\n<rect x='50' y='140' width='760' height='40' rx='6' fill='#161b22' stroke='#30363d'\/>\n<text x='430' y='165' text-anchor='middle' font-size='12' font-family='monospace' fill='#aaa'>GPS: 35.6892\u00b0N 51.3890\u00b0E | Sats: 12 | RSSI: -72dBm | Arm: YES<\/text>\n<\/svg><\/p>\n<h2>\u0646\u0635\u0628 \u06a9\u062a\u0627\u0628\u062e\u0627\u0646\u0647\u200c\u0647\u0627<\/h2>\n<pre style='background:#1e1e1e;color:#d4d4d4;padding:14px;border-radius:10px;overflow-x:auto;font-size:13px'><code class='language-bash'>\npip install pymavlink\npip install dronekit   # \u0627\u062e\u062a\u06cc\u0627\u0631\u06cc \u2014 \u0633\u0637\u062d \u0628\u0627\u0644\u0627\u062a\u0631 \u0627\u0632 pymavlink\npip install folium     # \u0627\u062e\u062a\u06cc\u0627\u0631\u06cc \u2014 \u0646\u0642\u0634\u0647 \u067e\u0631\u0648\u0627\u0632 HTML\n<\/code><\/pre>\n<h2>\u06a9\u062f \u062f\u0627\u0634\u0628\u0648\u0631\u062f Python + Tkinter<\/h2>\n<pre style='background:#1e1e1e;color:#d4d4d4;padding:18px;border-radius:10px;overflow-x:auto;font-size:13px'><code class='language-python'>\nimport tkinter as tk\nfrom pymavlink import mavutil\nimport threading, time\n\n# \u0627\u062a\u0635\u0627\u0644 \u0628\u0647 telemetry (COM4 \u06cc\u0627 \/dev\/ttyUSB0)\nCONN = 'COM4'  # \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f\nmaster = mavutil.mavlink_connection(CONN, baud=57600)\nmaster.wait_heartbeat()\nprint(\"Heartbeat received!\")\n\ndata = {'alt': 0, 'spd': 0, 'bat': 0.0, 'mode': '---', 'lat': 0, 'lon': 0, 'sats': 0}\n\ndef receive_loop():\n    while True:\n        try:\n            msg = master.recv_match(blocking=True, timeout=2)\n            if not msg: continue\n            t = msg.get_type()\n            if t == 'GLOBAL_POSITION_INT':\n                data['alt'] = msg.relative_alt \/ 1000\n                data['lat'] = msg.lat \/ 1e7\n                data['lon'] = msg.lon \/ 1e7\n            elif t == 'VFR_HUD':\n                data['spd'] = msg.groundspeed\n            elif t == 'SYS_STATUS':\n                data['bat'] = msg.voltage_battery \/ 1000.0\n            elif t == 'HEARTBEAT':\n                modes = {0:'STAB',2:'ALT_H',3:'AUTO',4:'GUIDED',5:'LOITER',6:'RTL',9:'LAND'}\n                data['mode'] = modes.get(msg.custom_mode,'???')\n            elif t == 'GPS_RAW_INT':\n                data['sats'] = msg.satellites_visible\n        except: pass\n\nthreading.Thread(target=receive_loop, daemon=True).start()\n\nroot = tk.Tk(); root.title(\"UAV Telemetry\"); root.configure(bg='#0d1117')\nroot.geometry('700x220')\n\nfont_big  = ('Courier New', 28, 'bold')\nfont_med  = ('Courier New', 13)\nfont_lab  = ('Courier New', 11)\n\nlabels = {}\nfields = [\n    ('ALT (m)',    'alt',  '#00ff88'),\n    ('SPEED m\/s',  'spd',  '#ff9f1c'),\n    ('BATTERY V',  'bat',  '#ffeb3b'),\n    ('MODE',       'mode', '#4fc3f7'),\n]\nfor i,(lbl,key,col) in enumerate(fields):\n    tk.Label(root,text=lbl,font=font_lab,bg='#161b22',fg='#8b949e',width=12).grid(row=0,column=i,padx=4,pady=(10,0))\n    labels[key]=tk.Label(root,text='---',font=font_big,bg='#161b22',fg=col,width=8)\n    labels[key].grid(row=1,column=i,padx=4,pady=4)\n\ngps_lbl = tk.Label(root,text='GPS: ---',font=font_med,bg='#0d1117',fg='#aaa')\ngps_lbl.grid(row=2,column=0,columnspan=4,pady=8)\n\ndef update_ui():\n    labels['alt'].config(text=f\"{data['alt']:.1f}\")\n    labels['spd'].config(text=f\"{data['spd']:.1f}\")\n    labels['bat'].config(text=f\"{data['bat']:.2f}\")\n    labels['mode'].config(text=data['mode'])\n    gps_lbl.config(text=f\"GPS: {data['lat']:.5f}\u00b0N  {data['lon']:.5f}\u00b0E  |  Sats: {data['sats']}\")\n    root.after(500, update_ui)\n\nupdate_ui()\nroot.mainloop()\n<\/code><\/pre>\n<h2>\u0686\u06a9\u200c\u0644\u06cc\u0633\u062a \u0631\u0627\u0647\u200c\u0627\u0646\u062f\u0627\u0632\u06cc<\/h2>\n<table style='width:100%;border-collapse:collapse;margin-bottom:18px'>\n<thead>\n<tr style='background:#e8f0fe'>\n<th style='padding:9px;border:1px solid #ddd;text-align:right'>\u0645\u0631\u062d\u0644\u0647<\/th>\n<th style='padding:9px;border:1px solid #ddd;text-align:right'>\u0648\u0636\u0639\u06cc\u062a<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style='padding:8px;border:1px solid #ddd'>Telemetry Radio \u0628\u0647 COM \u0645\u062a\u0635\u0644 \u0627\u0633\u062a\u061f<\/td>\n<td style='padding:8px;border:1px solid #ddd'>\u2610 Device Manager \u0686\u06a9 \u06a9\u0646\u06cc\u062f<\/td>\n<\/tr>\n<tr style='background:#fafafa'>\n<td style='padding:8px;border:1px solid #ddd'>Baud Rate 57600 \u06cc\u0627 115200 \u0627\u0633\u062a\u061f<\/td>\n<td style='padding:8px;border:1px solid #ddd'>\u2610 \u0628\u0627 SiK Radios 57600<\/td>\n<\/tr>\n<tr>\n<td style='padding:8px;border:1px solid #ddd'>Heartbeat \u062f\u0631\u06cc\u0627\u0641\u062a \u0634\u062f\u061f<\/td>\n<td style='padding:8px;border:1px solid #ddd'>\u2610 \u067e\u06cc\u0627\u0645 \u062f\u0631 Terminal<\/td>\n<\/tr>\n<tr style='background:#fafafa'>\n<td style='padding:8px;border:1px solid #ddd'>\u0627\u0631\u062a\u0641\u0627\u0639 \u0648 \u0633\u0631\u0639\u062a \u0622\u067e\u062f\u06cc\u062a \u0645\u06cc\u200c\u0634\u0648\u0646\u062f\u061f<\/td>\n<td style='padding:8px;border:1px solid #ddd'>\u2610<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><svg viewBox='0 0 860 200' width='100%' xmlns='http:\/\/www.w3.org\/2000\/svg' style='background:#fff;border:1px solid #e0e0e0;border-radius:12px;margin-bottom:22px'>\n<rect x='40' y='75' width='155' height='60' rx='12' fill='#8bd3dd' stroke='#1f6f78' stroke-width='2'\/>\n<rect x='245' y='75' width='155' height='60' rx='12' fill='#f7d794' stroke='#a06d00' stroke-width='2'\/>\n<rect x='450' y='75' width='155' height='60' rx='12' fill='#b7e4a0' stroke='#3a7a1e' stroke-width='2'\/>\n<rect x='655' y='75' width='165' height='60' rx='12' fill='#e8f4ff' stroke='#3a60c0' stroke-width='2'\/>\n<line x1='195' y1='105' x2='245' y2='105' stroke='#555' stroke-width='2.5' stroke-dasharray='6,3'\/>\n<line x1='400' y1='105' x2='450' y2='105' stroke='#555' stroke-width='2.5'\/>\n<line x1='605' y1='105' x2='655' y2='105' stroke='#555' stroke-width='2.5'\/>\n<text x='117' y='100' text-anchor='middle' font-size='12' font-family='Tahoma'>ArduPilot FC<\/text>\n<text x='117' y='115' text-anchor='middle' font-size='11' font-family='Tahoma'>MAVLink UART<\/text>\n<text x='322' y='100' text-anchor='middle' font-size='12' font-family='Tahoma'>SiK Radio<\/text>\n<text x='322' y='115' text-anchor='middle' font-size='11' font-family='Tahoma'>433MHz<\/text>\n<text x='527' y='100' text-anchor='middle' font-size='12' font-family='Tahoma'>pymavlink<\/text>\n<text x='527' y='115' text-anchor='middle' font-size='11' font-family='Tahoma'>Python Parse<\/text>\n<text x='737' y='100' text-anchor='middle' font-size='12' font-family='Tahoma'>Tkinter UI<\/text>\n<text x='737' y='115' text-anchor='middle' font-size='11' font-family='Tahoma'>\u062f\u0627\u0634\u0628\u0648\u0631\u062f \u0632\u0646\u062f\u0647<\/text>\n<text x='430' y='175' text-anchor='middle' font-size='13' font-family='Tahoma' fill='#666'>\u067e\u0627\u06cc\u067e\u0644\u0627\u06cc\u0646 Telemetry \u2014 ArduPilot \u2192 \u0631\u0627\u062f\u06cc\u0648 \u2192 Python \u2192 \u062f\u0627\u0634\u0628\u0648\u0631\u062f<\/text>\n<\/svg><\/p>\n<h2>\u0648\u06cc\u062f\u0626\u0648\u0647\u0627\u06cc \u0622\u0645\u0648\u0632\u0634\u06cc<\/h2>\n<div style='display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px;margin:20px 0'>\n<iframe width='100%' height='315' src='https:\/\/www.youtube.com\/embed\/JDx-KWa7J38' title='pymavlink Python Drone Telemetry' frameborder='0' allow='accelerometer;autoplay;clipboard-write;encrypted-media;gyroscope;picture-in-picture' allowfullscreen><\/iframe><br \/>\n<iframe width='100%' height='315' src='https:\/\/www.youtube.com\/embed\/KKj2u9jcBbg' title='DroneKit Python Tutorial' frameborder='0' allow='accelerometer;autoplay;clipboard-write;encrypted-media;gyroscope;picture-in-picture' allowfullscreen><\/iframe>\n<\/div>\n<h2>\u0645\u0646\u0627\u0628\u0639 \u0628\u06cc\u0634\u062a\u0631<\/h2>\n<ul>\n<li><a href='https:\/\/www.aparat.com\/result\/MAVLink_%D9%BE%D8%A7%DB%8C%D8%AA%D9%88%D9%86_%D9%BE%D9%87%D9%BE%D8%A7%D8%AF' target='_blank'>\u0622\u067e\u0627\u0631\u0627\u062a: MAVLink \u067e\u0627\u06cc\u062a\u0648\u0646 \u067e\u0647\u067e\u0627\u062f \u0641\u0627\u0631\u0633\u06cc<\/a><\/li>\n<li><a href='https:\/\/mavlink.io\/en\/mavgen_python\/' target='_blank'>MAVLink Python: pymavlink Documentation<\/a><\/li>\n<li><a href='https:\/\/dronekit-python.readthedocs.io\/' target='_blank'>DroneKit Python Documentation<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u0622\u0645\u0648\u0632\u0634 \u0633\u0627\u062e\u062a \u062f\u0627\u0634\u0628\u0648\u0631\u062f \u062a\u0644\u0645\u062a\u0631\u06cc \u067e\u0647\u067e\u0627\u062f \u0628\u0627 Python\u060c pymavlink \u0648 Tkinter\u061b \u0646\u0645\u0627\u06cc\u0634 \u0627\u0631\u062a\u0641\u0627\u0639\u060c \u0633\u0631\u0639\u062a\u060c \u0648\u0644\u062a\u0627\u0698\u060c GPS \u0648 \u0646\u0642\u0634\u0647 \u067e\u0631\u0648\u0627\u0632 \u062f\u0631 \u0632\u0645\u0627\u0646 \u0648\u0627\u0642\u0639\u06cc \u0631\u0648\u06cc \u0644\u067e\u200c\u062a\u0627\u067e.<\/p>\n","protected":false},"author":1,"featured_media":427,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"pagelayer_contact_templates":[],"_pagelayer_content":"","footnotes":""},"categories":[17,20],"tags":[191,125,193,190,123,50,192,40],"class_list":["post-428","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uav","category-projects-2","tag-dashboard","tag-mavlink","tag-pymavlink","tag-python","tag-telemetry","tag-50","tag-192","tag-40"],"_links":{"self":[{"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/posts\/428","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/comments?post=428"}],"version-history":[{"count":1,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/posts\/428\/revisions"}],"predecessor-version":[{"id":429,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/posts\/428\/revisions\/429"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/media\/427"}],"wp:attachment":[{"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/media?parent=428"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/categories?post=428"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/tags?post=428"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}