{"id":495,"date":"2026-06-11T10:57:50","date_gmt":"2026-06-11T02:57:50","guid":{"rendered":"https:\/\/projectleon.net\/make\/blog\/optical-flow-drone-indoor-hover-without-gps-farsi\/"},"modified":"2026-06-11T10:57:51","modified_gmt":"2026-06-11T02:57:51","slug":"optical-flow-drone-indoor-hover-without-gps-farsi","status":"publish","type":"post","link":"https:\/\/projectleon.net\/make\/blog\/optical-flow-drone-indoor-hover-without-gps-farsi\/","title":{"rendered":"\u0631\u0627\u0647\u0646\u0645\u0627\u06cc Optical Flow \u0628\u0631\u0627\u06cc Drone: \u067e\u0631\u0648\u0627\u0632 \u062f\u0642\u06cc\u0642 \u0628\u062f\u0648\u0646 GPS \u062f\u0631 \u0641\u0636\u0627\u06cc \u0628\u0633\u062a\u0647 (\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\/post62-optical-flow.jpg' alt='Optical Flow \u067e\u0631\u0648\u0627\u0632 \u0628\u062f\u0648\u0646 GPS Drone \u0641\u0636\u0627\u06cc \u0628\u0633\u062a\u0647' 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'>Optical Flow \u0686\u06cc\u0633\u062a\u061f (\u0628\u0631\u0627\u06cc \u0645\u0628\u062a\u062f\u06cc)<\/h2>\n<p>\u062f\u0631 \u0641\u0636\u0627\u0647\u0627\u06cc \u0628\u0633\u062a\u0647 (\u062f\u0627\u062e\u0644 \u0633\u0627\u062e\u062a\u0645\u0627\u0646)\u060c GPS \u0633\u06cc\u06af\u0646\u0627\u0644 \u0636\u0639\u06cc\u0641\u06cc \u062f\u0627\u0631\u062f \u06cc\u0627 \u0627\u0635\u0644\u0627\u064b \u06a9\u0627\u0631 \u0646\u0645\u06cc\u200c\u06a9\u0646\u062f. <strong>Optical Flow<\/strong> \u06cc\u06a9 \u0633\u0646\u0633\u0648\u0631 \u0627\u0633\u062a \u06a9\u0647 \u0645\u062b\u0644 \u0645\u0627\u0648\u0633 \u06a9\u0627\u0645\u067e\u06cc\u0648\u062a\u0631\u06cc\u060c \u062d\u0631\u06a9\u062a \u062a\u0635\u0648\u06cc\u0631 \u0632\u0645\u06cc\u0646 \u0631\u0627 \u0632\u06cc\u0631 \u067e\u0647\u067e\u0627\u062f \u062a\u0634\u062e\u06cc\u0635 \u0645\u06cc\u200c\u062f\u0647\u062f \u2014 \u0627\u06af\u0631 \u067e\u0647\u067e\u0627\u062f \u0628\u0647 \u0686\u067e \u0628\u0631\u0648\u062f\u060c \u0633\u0646\u0633\u0648\u0631 \u0622\u0646 \u0631\u0627 \u0645\u06cc\u200c\u0641\u0647\u0645\u062f \u0648 FC \u062c\u0628\u0631\u0627\u0646 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/p>\n<p>\u0633\u0646\u0633\u0648\u0631 <strong>PMW3901<\/strong> \u06cc\u06a9 \u0686\u06cc\u067e Optical Flow \u0631\u0627\u06cc\u062c \u0648 \u0627\u0631\u0632\u0627\u0646 \u0627\u0633\u062a \u06a9\u0647 \u0628\u0647 \u0647\u0645\u0631\u0627\u0647 \u06cc\u06a9 \u0633\u0646\u0633\u0648\u0631 \u0641\u0627\u0635\u0644\u0647 (\u0645\u062b\u0644 VL53L1X \u06cc\u0627 \u06cc\u06a9 \u0633\u0648\u0646\u0627\u0631) \u06a9\u0627\u0631 \u0645\u06cc\u200c\u06a9\u0646\u062f \u2014 \u0633\u0646\u0633\u0648\u0631 \u0641\u0627\u0635\u0644\u0647 \u0627\u0631\u062a\u0641\u0627\u0639 \u0648\u0627\u0642\u0639\u06cc \u0631\u0627 \u0627\u0646\u062f\u0627\u0632\u0647 \u0645\u06cc\u200c\u06af\u06cc\u0631\u062f \u062a\u0627 \u0645\u062d\u0627\u0633\u0628\u0647 \u0633\u0631\u0639\u062a \u062f\u0642\u06cc\u0642 \u0628\u0627\u0634\u062f. \u0627\u06cc\u0646 \u062a\u0631\u06a9\u06cc\u0628 \u0628\u0647 \u067e\u0647\u067e\u0627\u062f \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u062f\u0631 \u062d\u0627\u0644\u062a <strong>Loiter<\/strong> \u0628\u062f\u0648\u0646 GPS \u062f\u0631 \u062c\u0627\u06cc \u062e\u0648\u062f \u062b\u0627\u0628\u062a \u0628\u0645\u0627\u0646\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'>\u0647\u062f\u0641 \u0627\u06cc\u0646 \u0631\u0627\u0647\u0646\u0645\u0627<\/h2>\n<p>\u0646\u0635\u0628 PMW3901 + VL53L1X \u0631\u0648\u06cc \u067e\u0647\u067e\u0627\u062f \u0648 \u062a\u0646\u0638\u06cc\u0645 ArduPilot \u0628\u0631\u0627\u06cc \u067e\u0631\u0648\u0627\u0632 Loiter \u0628\u062f\u0648\u0646 GPS \u062f\u0631 \u0641\u0636\u0627\u06cc \u062f\u0627\u062e\u0644\u06cc.<\/p>\n<ul>\n<li><strong>\u067e\u06cc\u0634\u200c\u0646\u06cc\u0627\u0632:<\/strong> \u067e\u0647\u067e\u0627\u062f mini-quad \u0628\u0627 ArduPilot \u06cc\u0627 iNAV<\/li>\n<li><strong>\u0632\u0645\u0627\u0646:<\/strong> \u06f2 \u062a\u0627 \u06f3 \u0633\u0627\u0639\u062a<\/li>\n<\/ul>\n<\/div>\n<p><svg viewBox='0 0 860 210' width='100%' xmlns='http:\/\/www.w3.org\/2000\/svg' style='background:#fff;border:1px solid #e0e0e0;border-radius:12px;margin-bottom:22px'>\n<ellipse cx='430' cy='80' rx='120' ry='40' fill='#f7d794' stroke='#a06d00' stroke-width='2'\/>\n<text x='430' y='78' text-anchor='middle' font-size='13' font-family='Tahoma'>FC + PMW3901<\/text>\n<text x='430' y='95' text-anchor='middle' font-size='11' font-family='Tahoma'>VL53L1X \u2193<\/text>\n<line x1='430' y1='120' x2='430' y2='155' stroke='#3a60c0' stroke-width='2' stroke-dasharray='4,3'\/>\n<text x='490' y='140' font-size='11' font-family='Tahoma' fill='#3a60c0'>Laser Range \u2193<\/text>\n<rect x='300' y='155' width='260' height='30' rx='6' fill='#e8f4e8' stroke='#4caf50' stroke-width='1'\/>\n<text x='430' y='174' text-anchor='middle' font-size='12' font-family='Tahoma'>\u0632\u0645\u06cc\u0646 (\u06a9\u0641 \u0627\u062a\u0627\u0642)<\/text>\n<path d='M 310 80 Q 240 120 310 155' stroke='#e53935' stroke-width='2' fill='none' stroke-dasharray='5,3'\/>\n<text x='225' y='120' font-size='11' font-family='Tahoma' fill='#e53935'>Flow \u2193<\/text>\n<text x='430' y='198' text-anchor='middle' font-size='13' font-family='Tahoma' fill='#888'>Optical Flow \u2014 \u062d\u0631\u06a9\u062a \u062a\u0635\u0648\u06cc\u0631 \u06a9\u0641 + \u0641\u0627\u0635\u0644\u0647 \u0644\u06cc\u0632\u0631 = \u0645\u0648\u0642\u0639\u06cc\u062a \u062f\u0642\u06cc\u0642<\/text>\n<\/svg><\/p>\n<h2>\u062a\u0646\u0638\u06cc\u0645 ArduPilot \u0628\u0631\u0627\u06cc Optical Flow<\/h2>\n<pre style='background:#1e1e1e;color:#d4d4d4;padding:16px;border-radius:10px;overflow-x:auto;font-size:13px'><code>\n\/\/ \u0627\u062a\u0635\u0627\u0644 PMW3901:\n\/\/ SPI: MISO=MISO, MOSI=MOSI, SCK=SCK, CS=CS\n\/\/ \u06cc\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0645\u0627\u0698\u0648\u0644 \u0627\u0632 \u067e\u06cc\u0634 \u0633\u0648\u0627\u0631 (Matek 3901-L0X)\n\n\/\/ \u067e\u0627\u0631\u0627\u0645\u062a\u0631\u0647\u0627\u06cc ArduPilot (Mission Planner):\nFLOW_TYPE = 6       \/\/ PMW3901 \u0627\u0632 \u0637\u0631\u06cc\u0642 SPI\nFLOW_FXSCALER = 0   \/\/ scaling \u062e\u0648\u062f\u06a9\u0627\u0631\nFLOW_FYSCALER = 0\nFLOW_ORIENT_YAW = 0 \/\/ \u062c\u0647\u062a \u0633\u0646\u0633\u0648\u0631 (\u0686\u0631\u062e\u0634 \u0646\u0635\u0628)\n\n\/\/ \u0633\u0646\u0633\u0648\u0631 \u0641\u0627\u0635\u0644\u0647 VL53L1X \u0627\u0632 \u0637\u0631\u06cc\u0642 I2C:\nRNGFND1_TYPE = 16   \/\/ VL53L1X\nRNGFND1_ADDR = 41   \/\/ \u0622\u062f\u0631\u0633 I2C\n\n\/\/ \u0641\u0639\u0627\u0644\u200c\u0633\u0627\u0632\u06cc Optical Flow Fusion:\nEK3_SRC1_VELXY = 5  \/\/ Optical Flow\nEK3_SRC1_POSZ  = 6  \/\/ Range Finder \u0628\u0631\u0627\u06cc Z\n\n\/\/ Loiter \u0628\u062f\u0648\u0646 GPS:\n\/\/ \u0646\u06cc\u0627\u0632 \u0628\u0647 EK3 + \u0627\u0631\u062a\u0641\u0627\u0639 \u062b\u0627\u0628\u062a \u0632\u06cc\u0631 \u06f5 \u0645\u062a\u0631\n\/\/ GPS_TYPE = 0 (\u063a\u06cc\u0631\u0641\u0639\u0627\u0644) \u0628\u0631\u0627\u06cc \u0641\u0636\u0627\u06cc \u062f\u0627\u062e\u0644\u06cc\n<\/code><\/pre>\n<h2>\u06a9\u0627\u0644\u06cc\u0628\u0631\u0627\u0633\u06cc\u0648\u0646 Optical Flow<\/h2>\n<pre style='background:#1e1e1e;color:#d4d4d4;padding:14px;border-radius:10px;overflow-x:auto;font-size:13px'><code>\n\/\/ \u06a9\u0627\u0644\u06cc\u0628\u0631\u0627\u0633\u06cc\u0648\u0646 FLOW_FXSCALER\/FYSCALER:\n\/\/ \u067e\u0647\u067e\u0627\u062f \u0631\u0627 \u06f1 \u0645\u062a\u0631 \u0628\u0627\u0644\u0627\u06cc \u06cc\u06a9 \u0633\u0637\u062d \u0628\u0627 \u0628\u0627\u0641\u062a \u067e\u0631\u0648\u0627\u0632 \u062f\u0647\u06cc\u062f\n\/\/ \u062f\u0631 \u062d\u0627\u0644\u062a ALT_HOLD \u0628\u0627 Throttle \u062b\u0627\u0628\u062a \u0628\u0647 \u062c\u0644\u0648 \u0628\u0631\u0648\u06cc\u062f\n\/\/ \u062f\u0631 MissionPlanner\u060c FLOW.bodyX \u0631\u0627 \u0628\u0627 GPS.vx \u0645\u0642\u0627\u06cc\u0633\u0647 \u06a9\u0646\u06cc\u062f\n\/\/ \u0646\u0633\u0628\u062a = \u0636\u0631\u06cc\u0628 calibration\n\/\/ \u0645\u062b\u0627\u0644: \u0627\u06af\u0631 FLOW.bodyX = 0.8 \u00d7 GPS.vx \u2192 FLOW_FXSCALER = 20 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0646\u06cc\u062f\n<\/code><\/pre>\n<h2>\u0686\u06a9\u200c\u0644\u06cc\u0633\u062a \u062a\u0633\u062a<\/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'>\u062a\u0633\u062a<\/th>\n<th style='padding:9px;border:1px solid #ddd;text-align:right'>\u0646\u062a\u06cc\u062c\u0647<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style='padding:8px;border:1px solid #ddd'>FLOW_TYPE \u062f\u0631 MP \u062e\u0648\u0627\u0646\u062f\u0647 \u0645\u06cc\u200c\u0634\u0648\u062f\u061f<\/td>\n<td style='padding:8px;border:1px solid #ddd'>Sensor Health = OK<\/td>\n<\/tr>\n<tr style='background:#fafafa'>\n<td style='padding:8px;border:1px solid #ddd'>Range Finder \u0627\u0631\u062a\u0641\u0627\u0639 \u0635\u062d\u06cc\u062d \u0645\u06cc\u200c\u062f\u0647\u062f\u061f<\/td>\n<td style='padding:8px;border:1px solid #ddd'>\u0628\u0644\u0647 \u2014 \u0646\u0633\u0628\u062a \u0628\u0647 \u06a9\u0641<\/td>\n<\/tr>\n<tr>\n<td style='padding:8px;border:1px solid #ddd'>\u062f\u0631 ALT_HOLD \u067e\u0647\u067e\u0627\u062f Drift \u0645\u06cc\u200c\u06a9\u0646\u062f\u061f<\/td>\n<td style='padding:8px;border:1px solid #ddd'>\u06a9\u0645\u062a\u0631 \u0627\u0632 \u06f0.\u06f5m\/min = \u062e\u0648\u0628<\/td>\n<\/tr>\n<tr style='background:#fafafa'>\n<td style='padding:8px;border:1px solid #ddd'>\u062f\u0631 Loiter \u062f\u0631 \u062c\u0627 \u0645\u06cc\u200c\u0645\u0627\u0646\u062f\u061f<\/td>\n<td style='padding:8px;border:1px solid #ddd'>\u00b1\u06f3\u06f0cm \u0642\u0627\u0628\u0644 \u0642\u0628\u0648\u0644<\/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'\/>\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'>PMW3901<\/text>\n<text x='117' y='115' text-anchor='middle' font-size='11' font-family='Tahoma'>Flow + Range<\/text>\n<text x='322' y='100' text-anchor='middle' font-size='12' font-family='Tahoma'>EKF3<\/text>\n<text x='322' y='115' text-anchor='middle' font-size='11' font-family='Tahoma'>Fusion Position<\/text>\n<text x='527' y='100' text-anchor='middle' font-size='12' font-family='Tahoma'>ArduPilot<\/text>\n<text x='527' y='115' text-anchor='middle' font-size='11' font-family='Tahoma'>Loiter Mode<\/text>\n<text x='737' y='100' text-anchor='middle' font-size='12' font-family='Tahoma'>\u067e\u0631\u0648\u0627\u0632 \u062b\u0627\u0628\u062a<\/text>\n<text x='737' y='115' text-anchor='middle' font-size='11' font-family='Tahoma'>\u0628\u062f\u0648\u0646 GPS<\/text>\n<text x='430' y='175' text-anchor='middle' font-size='13' font-family='Tahoma' fill='#666'>Optical Flow \u2014 PMW3901 \u2192 EKF \u2192 Loiter \u0628\u062f\u0648\u0646 GPS<\/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\/gqn8EqMJDrc' title='Optical Flow Drone Indoor ArduPilot' 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\/vJB3d_8nkP8' title='PMW3901 Setup Betaflight INAV' 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\/Optical_Flow_%D9%BE%D8%B1%D9%88%D8%A7%D8%B2_%D8%AF%D8%A7%D8%AE%D9%84_%D8%AE%D8%A7%D9%86%D9%87' target='_blank'>\u0622\u067e\u0627\u0631\u0627\u062a: Optical Flow \u067e\u0631\u0648\u0627\u0632 \u062f\u0627\u062e\u0644 \u0633\u0627\u062e\u062a\u0645\u0627\u0646<\/a><\/li>\n<li><a href='https:\/\/ardupilot.org\/copter\/docs\/common-optical-flow-sensor-setup.html' target='_blank'>ArduPilot: Optical Flow Setup<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u0622\u0645\u0648\u0632\u0634 \u0646\u0635\u0628 \u0648 \u062a\u0646\u0638\u06cc\u0645 \u0633\u0646\u0633\u0648\u0631 Optical Flow PMW3901 \u062f\u0631 ArduPilot \u0648 Betaflight\u061b \u067e\u0631\u0648\u0627\u0632 \u062f\u0642\u06cc\u0642 \u062f\u0631 \u0641\u0636\u0627\u06cc \u0628\u0633\u062a\u0647 \u0628\u062f\u0648\u0646 GPS\u060c \u06a9\u0627\u0644\u06cc\u0628\u0631\u0627\u0633\u06cc\u0648\u0646 \u0648 \u062a\u06cc\u0648\u0646\u06cc\u0646\u06af Loiter.<\/p>\n","protected":false},"author":1,"featured_media":494,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"pagelayer_contact_templates":[],"_pagelayer_content":"","footnotes":""},"categories":[17,20],"tags":[104,67,259,256,257,50,260,258],"class_list":["post-495","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uav","category-projects-2","tag-ardupilot","tag-betaflight","tag-drone","tag-optical-flow","tag-pmw3901","tag-50","tag-260","tag---gps"],"_links":{"self":[{"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/posts\/495","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=495"}],"version-history":[{"count":1,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/posts\/495\/revisions"}],"predecessor-version":[{"id":496,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/posts\/495\/revisions\/496"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/media\/494"}],"wp:attachment":[{"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/media?parent=495"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/categories?post=495"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/projectleon.net\/make\/wp-json\/wp\/v2\/tags?post=495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}