TWI757700B - Aircraft route following method - Google Patents

Aircraft route following method Download PDF

Info

Publication number
TWI757700B
TWI757700B TW109107296A TW109107296A TWI757700B TW I757700 B TWI757700 B TW I757700B TW 109107296 A TW109107296 A TW 109107296A TW 109107296 A TW109107296 A TW 109107296A TW I757700 B TWI757700 B TW I757700B
Authority
TW
Taiwan
Prior art keywords
target
inner ring
outer ring
following
area
Prior art date
Application number
TW109107296A
Other languages
Chinese (zh)
Other versions
TW202137135A (en
Inventor
劉吉軒
李恭儀
黃彥庭
Original Assignee
國立政治大學
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 國立政治大學 filed Critical 國立政治大學
Priority to TW109107296A priority Critical patent/TWI757700B/en
Publication of TW202137135A publication Critical patent/TW202137135A/en
Application granted granted Critical
Publication of TWI757700B publication Critical patent/TWI757700B/en

Links

Images

Abstract

一種飛行器路線跟隨方法,由一飛行器執行,該飛行器將一影像畫面切割為複數外環區、複數內環區及一中心區,並根據該跟隨目標計算各外環區中的一外環目標座標及各內環區中的一內環目標座標,先根據內環目標座標產生一參考飛行指令,並計算外環目標座標及內環目標座標相對一參考點的弧度差值以更新一累積弧度差值,再根據累積弧度差值調整參考飛行指令,產生一最終飛行指令;本發明先藉由距離中心區較近的內環目標座標產生參考飛行指令,再藉由代表路線彎曲程度的累積弧度差值調整飛行指令,達到精準跟隨及隨路線彎曲程度調整速度之目的。An aircraft route following method is performed by an aircraft, the aircraft cuts an image into a plurality of outer ring areas, a plurality of inner ring areas and a central area, and calculates the coordinates of an outer ring target in each outer ring area according to the following target and an inner ring target coordinate in each inner ring area, first generate a reference flight command according to the inner ring target coordinate, and calculate the radian difference between the outer ring target coordinate and the inner ring target coordinate relative to a reference point to update a cumulative radian difference value, and then adjust the reference flight command according to the cumulative radian difference to generate a final flight command; the present invention first generates the reference flight command by the inner ring target coordinates that are closer to the central area, and then uses the cumulative radian difference representing the degree of curvature of the route to generate the reference flight command. The value of the flight command is adjusted to achieve the purpose of precise following and adjusting the speed according to the curve degree of the route.

Description

飛行器路線跟隨方法Aircraft route following method

一種飛行器的飛行控制方法,尤指一種控制飛行器跟隨一路線的飛行控制方法。A flight control method for an aircraft, especially a flight control method for controlling the aircraft to follow a route.

四軸飛行器由於具有體積小、飛行穩定等優點,常被用於舊有飛行器難以抵達之領域進行偵查、影像擷取等飛行任務。在跟隨特定路線的飛行任務中,飛行器必須沿著一通常為不規則彎曲、延伸方向無法預測之路線進行追蹤跟隨飛行,例如於高空中跟隨一下方的河道進行沿線跟隨及拍攝。現有的路線跟隨技術對於路線跟隨的精準度沒有進行要求,大多只要能夠沿著路線的大略延伸方向跟隨就好。目前的路線跟隨方法主要係由飛行器偵測飛行方向上一小段的路線延伸方向,當偵測到前方的路線與目前飛行前進方向不相同時,根據該路線延伸方向進行一特定轉向角之轉向,並繼續向前飛行。然而,現有的路線偵測技術並不完美,當無人機偏離跟隨路線時,該轉向角的設定容易產生誤差,轉向後的飛行器偏離路線延伸方向,嚴重時可能導致飛行器失去跟隨目標而無法繼續進行任務,或飛行器必須花費額外的偵測及校正定位資源,以再次回到待跟隨路線;即使轉向角誤差不大,飛行器於後續的偵測及校正後回到該待跟隨路線上,飛行器的飛行路線也已經產生蛇行或飄移之狀況。Due to the advantages of small size and stable flight, quadcopters are often used for missions such as reconnaissance and image capture in areas that are difficult to reach by old aircraft. In the flight mission of following a specific route, the aircraft must follow a route that is usually irregularly curved and has an unpredictable extension direction, such as following the river below at high altitude to follow and shoot along the route. The existing route following technologies have no requirements on the accuracy of route following, and most of them only need to be able to follow along the approximate extension direction of the route. The current route following method mainly uses the aircraft to detect the route extension direction of a short section in the flight direction. When the detected route ahead is not the same as the current flight direction, it will steer at a specific steering angle according to the route extension direction. and keep flying forward. However, the existing route detection technology is not perfect. When the UAV deviates from the following route, the setting of the steering angle is prone to errors. The aircraft after turning deviates from the extension direction of the route. In severe cases, the aircraft may lose the following target and cannot continue. The mission, or the aircraft must spend additional detection and correction positioning resources to return to the to-be-followed route again; even if the steering angle error is not large, the aircraft will return to the to-be-followed route after subsequent detection and correction, and the aircraft will fly. The route has also been meandering or drifting.

此外,上述路線跟隨方法主要是針對位於飛行器下方的路線進行跟隨,例如上述的河道或平面道路。當所需跟隨之路線係位於一垂直之立面,例如一掃描高樓牆面的裂痕、高壓電塔檢測等,由於飛行器必須延一垂直立面飛行,飛行器無法藉由平面轉向以改變前進方向,因為如此會使得飛行器失去前方正在跟隨的路線,或是轉向已經跟隨過的路線部分。In addition, the above-mentioned route following method mainly follows the route located under the aircraft, such as the above-mentioned river course or flat road. When the route to be followed is located on a vertical façade, such as a scan for cracks in the wall of a high-rise building, detection of high-voltage electrical towers, etc., since the aircraft must fly along a vertical façade, the aircraft cannot change its progress by turning the plane. direction, because doing so will make the aircraft lose the route it is following, or turn to the part of the route it has already followed.

有鑑於現有的飛行器路線跟隨的飛行控制精準度低,發生偵測判斷誤差時輕微則飛行搖擺蛇行,嚴重時會產生偏移或失去跟隨目標,因此本發明提供一種可提升精準度的飛行器路線跟隨控制方法,為達成前述目的採取的主要技術手段係令前述方法由一飛行器的控制器執行,該飛行器路線跟隨控制方法包含以下步驟: 擷取包含一跟隨目標的一影像畫面,在該影像畫面中定義一中心區,複數內環區及複數外環區; 控制該飛行器移動使得該跟隨目標通過該中心區; 根據該跟隨目標計算該等外環區中的一外環目標座標,且計算該等內環區中的一內環目標座標; 根據該內環目標座標產生一參考飛行指令; 計算該外環目標座標及該內環目標座標相對一參考點的一弧度差值,並據以更新一累積弧度差值; 根據該累積弧度差值調整該參考飛行指令,產生一最終飛行指令。In view of the low accuracy of the flight control of the existing aircraft route following, when a detection and judgment error occurs, the flight sways and wanders slightly, and in severe cases, it deviates or loses the following target. Therefore, the present invention provides an aircraft route following that can improve the accuracy. In the control method, the main technical means adopted to achieve the aforesaid purpose is to make the aforesaid method be executed by a controller of an aircraft, and the aircraft route following control method includes the following steps: capturing an image frame including a following target, and defining a central area, a plurality of inner ring areas and a plurality of outer ring areas in the image frame; controlling the aircraft to move so that the following target passes through the central area; Calculate an outer ring target coordinate in the outer ring areas according to the following target, and calculate an inner ring target coordinate in the inner ring areas; generating a reference flight instruction according to the inner ring target coordinates; Calculate a radian difference between the outer ring target coordinate and the inner ring target coordinate relative to a reference point, and update a cumulative radian difference accordingly; The reference flight command is adjusted according to the accumulated radian difference to generate a final flight command.

當該飛行器執行一跟隨目標的跟隨任務,係先擷取包含有該跟隨目標的影像畫面,並將該影像畫面切割為複數外環區、複數內環區及一中心區,該多個內環區環繞該中心區,該多個外環區環繞該多個內環區。也就是說,該中心區代表該飛行器對正之瞄準中央區,亦是該飛行器在該影像畫面中的之所在座標,而出現於該些內環區的跟隨目標區段係離該中心區較近之區段,亦是該飛行器接下來的確定飛行目標所在,因此,該飛行器先根據該內環目標座標產生該參考飛行指令。該外環目標座標係離該中心區較遠之區段,用於預測該跟隨目標之彎曲方向,因此該內環目標座標及該外環目標座標的一弧度差值代表該跟隨目標由內環區延伸至外環區相對該參考點的所在方向差異。當弧度差值大時,表示沿該跟隨目標有較大之曲度。因此,根據該弧度差值更新的累積弧度差值,進一步調整該參考飛行指令產生該最終飛行指令,達到根據弧度的變化調整飛行器的速度的目的。When the aircraft performs a following task of following a target, it first captures an image frame containing the following target, and divides the image frame into a plurality of outer ring areas, a plurality of inner ring areas and a central area. A zone surrounds the central zone, and the plurality of outer ring zones surrounds the plurality of inner ring zones. That is to say, the center area represents the center area where the aircraft is aimed at, and is also the coordinate of the aircraft in the image frame, and the following target sections appearing in the inner ring areas are closer to the center area The segment is also where the aircraft will determine the next flight target. Therefore, the aircraft first generates the reference flight command according to the coordinates of the inner ring target. The outer ring target coordinate is a section farther from the central area, and is used to predict the bending direction of the following target. Therefore, a radian difference between the inner ring target coordinate and the outer ring target coordinate represents that the following target is formed by the inner ring. The zone extends to the difference in the direction of the outer ring zone relative to the reference point. When the radian difference is large, it means that there is a large curvature along the following target. Therefore, according to the updated cumulative radian difference value, the reference flight instruction is further adjusted to generate the final flight instruction, so as to achieve the purpose of adjusting the speed of the aircraft according to the radian change.

綜上所述,本發明使用一以弧形為分割基礎的虛擬目標方位網格機率模型,中心區為靶心,內環區作為飛行方向之選擇與飛行座標之判斷,外環區則作為及速度抑制的根據,在遇上曲度過大或過小的跟隨目標時,透過外環區及內環區進一步得到累積弧度差值來調整速度,當一直線時則越來越快,當遇上大角度轉彎時,因為累積弧度差值越來越大,所以會使飛行器速度越來越慢,提前降低飛行器的飛行速度以預備改變飛行方向,避免速度過快而超出路線。該飛行器不僅能夠根據參考飛行指令準確的朝向跟隨目標上的內環目標座標飛行,還能夠提前根據較遠方的路線彎曲程度調整、抑制飛行速度,達到精準跟隨路線的飛行器飛行控制。To sum up, the present invention uses a virtual target azimuth grid probability model based on an arc, the center area is the bullseye, the inner ring area is used for the selection of the flight direction and the judgment of the flight coordinates, and the outer ring area is used as the speed and speed. The basis for suppression is that when encountering a follow target with too large or too small a curvature, the outer ring area and the inner ring area are further used to obtain the cumulative radian difference to adjust the speed. When it is in a straight line, it becomes faster and faster. When , because the accumulated radian difference becomes larger and larger, the speed of the aircraft will become slower and slower, so reduce the flight speed of the aircraft in advance to prepare to change the flight direction, so as to avoid the speed being too fast and exceeding the route. The aircraft can not only fly accurately toward the inner ring target coordinates on the follow target according to the reference flight instructions, but also adjust and suppress the flight speed in advance according to the degree of curvature of the far route, so as to achieve the aircraft flight control that precisely follows the route.

請參閱圖1及圖2所示,在本發明的飛行器路線跟隨方法的一第一較佳實施例中,係包含以下步驟: 擷取包含一跟隨目標11的一影像畫面10,在該影像畫面10中定義一中心區G0、複數內環區G1~G4及複數外環區G5~G8(S101); 根據該跟隨目標計算該等內環區中的一內環目標座標Qin ,且計算該等外環區中的一外環目標座標Qout (S102); 根據該內環目標座標Qin 產生一參考飛行指令(S103); 計算該外環目標座標Qout 及該內環目標座標Qin 相對一參考點的一弧度差值,並據以更新一累積弧度差值(S104); 根據該累積弧度差值調整該參考飛行指令產生一最終飛行指令(S105)。Please refer to FIG. 1 and FIG. 2 , in a first preferred embodiment of the aircraft route following method of the present invention, the following steps are included: capturing an image frame 10 including a following target 11 , and in the image frame Define a central area G0, complex inner ring areas G1~G4 and complex outer ring areas G5~G8 in 10 (S101); calculate an inner ring target coordinate Q in in the inner ring areas according to the following target, and calculate the Equalize an outer ring target coordinate Q out in the outer ring area ( S102 ); Generate a reference flight command according to the inner ring target coordinate Q in ( S103 ); Calculate the outer ring target coordinate Q out and the inner ring target coordinate Q in A radian difference relative to a reference point, and updating a cumulative radian difference accordingly ( S104 ); adjusting the reference flight instruction according to the accumulated radian difference to generate a final flight instruction ( S105 ).

請參閱圖2,圖2為該飛行器擷取的一影像畫面10示意圖,其中G0為該中心區、G1~G4為該內環區、G5~G8為該外環區。其中,在該影像畫面中定義該中心區、該等內環區及該等外環區的步驟中,係將該影像畫面10的中央定義為該中心區G0,在該中心區G0的外圍定義一與該中心區同心且分割為該等內環區G1~G4的內環、又在該內環的外圍定義一與該內環及該中心區同心且分割為該等內外環區G5~G8的外環,且各內環區與各外環區對應同一圓心角。即,該等內環區G1~G4及該等外環區G5~G8係由通過該中心區G0、該內環及該外環的共同圓心的複數直線切割該內環及該外環而形成。Please refer to FIG. 2 , which is a schematic diagram of an image frame 10 captured by the aircraft, wherein G0 is the central area, G1 - G4 are the inner ring area, and G5 - G8 are the outer ring area. Wherein, in the step of defining the center area, the inner ring areas and the outer ring areas in the image frame, the center of the image frame 10 is defined as the center area G0, and the periphery of the center area G0 is defined An inner ring that is concentric with the central area and divided into the inner ring areas G1~G4, and defines on the periphery of the inner ring an inner ring that is concentric with the inner ring and the central area and divided into the inner and outer ring areas G5~G8 The outer ring of , and each inner ring area and each outer ring area correspond to the same central angle. That is, the inner ring regions G1-G4 and the outer ring regions G5-G8 are formed by cutting the inner ring and the outer ring with a plurality of straight lines passing through the common center of the central region G0, the inner ring and the outer ring .

該中心區G0係該飛行器正對之中心區域,即代表該飛行器的當下位置。此外,較佳的,該中心區G0為一圓形中心區G0。當該飛行器沿該跟隨目標11飛行,該中心區G0作為靶心對準該跟隨目標11時,該跟隨目標11由該中心區G0向外延伸勢必會通過其中一內環區及其中一外環區,該等內環區及該等外環區除了用於作為跟隨目標11的延伸方向判斷,亦用於判斷飛行方向,舉例而言,因該飛行器將往左側方向沿該跟隨目標11飛行,故該飛行器將會行經左側的該內環區G4及該外環區G8。The central area G0 is the central area that the aircraft is facing, that is, represents the current position of the aircraft. In addition, preferably, the central area G0 is a circular central area G0. When the aircraft flies along the following target 11 and the center area G0 is used as a bullseye to aim at the following target 11, the following target 11 extending outward from the center area G0 will inevitably pass through one of the inner ring areas and one of the outer ring areas , the inner ring areas and the outer ring areas are not only used to determine the extension direction of the following target 11, but also used to determine the flight direction. For example, since the aircraft will fly along the following target 11 in the left direction, so The aircraft will travel through the inner ring area G4 and the outer ring area G8 on the left.

更詳細的說,該飛行器計算出該等內環區G1~G4的該內環目標座標Qin =(yin , zin )及該等外環區G5~G8的該外環目標座標Qout =(yout , zout )後,根據該內環目標座標Qin 產生該參考飛行指令的步驟,具體係如下運算產生。當以該中心區G0的一中央點為該參考點(yc , zc ),該參考飛行指令

Figure 02_image001
為:
Figure 02_image003
More specifically, the aircraft calculates the inner ring target coordinates Q in =(y in , z in ) of the inner ring regions G1 to G4 and the outer ring target coordinates Q out of the outer ring regions G5 to G8 After =(y out , z out ), the steps of generating the reference flight instruction according to the inner ring target coordinate Q in are specifically generated by the following operations. When a central point of the central area G0 is used as the reference point (y c , z c ), the reference flight instruction
Figure 02_image001
for:
Figure 02_image003

其中,

Figure 02_image005
為一速率調變常數。in,
Figure 02_image005
is a rate modulation constant.

請參閱圖3所示,較佳的,計算該外環目標座標Qout 及該內環目標座標Qin 相對一參考點的一弧度差值,並據以更新一累積弧度差值的步驟(S104),具體係根據以下子步驟執行: 計算該外環目標座標Qout 相對該參考點的弧度值(S1041); 計算該內環目標座標Qin 相對該參考點的弧度值(S1042); 計算該外環目標座標Qout 的弧度值與該內環目標座標Qin 的弧度值的該弧度差值(S1043); 取得一歷史弧度差值,將該歷史弧度差值與該弧度差值相加得到該累積弧度差值(S1044)。Referring to FIG. 3, preferably, a radian difference between the outer ring target coordinate Q out and the inner ring target coordinate Q in relative to a reference point is calculated, and a cumulative radian difference is updated accordingly (S104 ), which is specifically performed according to the following sub-steps: Calculate the radian value of the outer ring target coordinate Q out relative to the reference point ( S1041 ); Calculate the radian value of the inner ring target coordinate Q in relative to the reference point ( S1042 ); The radian difference between the radian value of the outer ring target coordinate Q out and the radian value of the inner ring target coordinate Q in ( S1043 ); Obtain a historical radian difference, and add the historical radian difference and the radian difference to obtain The accumulated radian difference (S1044).

由於本發明係以圓形分割區為基礎,較佳係以極座標系統運算及判斷。上述該外環目標座標Qout 的弧度值、內環目標座標Qin 的弧度值具體係根據以下公式計算得到:

Figure 02_image007
Figure 02_image009
=
Figure 02_image011
Since the present invention is based on the circular partition, it is preferable to use the polar coordinate system for calculation and judgment. The above-mentioned radian value of the outer ring target coordinate Q out and the radian value of the inner ring target coordinate Q in are calculated according to the following formula:
Figure 02_image007
Figure 02_image009
=
Figure 02_image011

其中,

Figure 02_image013
為該外環目標座標Qout 的弧度值,
Figure 02_image015
為該內環目標座標Qin 的弧度值。in,
Figure 02_image013
is the radian value of the outer ring target coordinate Q out ,
Figure 02_image015
is the radian value of the inner ring target coordinate Q in .

該外環目標座標Qout 的弧度值與該內環目標座標Qin 的弧度值的該弧度差值

Figure 02_image017
係根據以下公式計算得到:
Figure 02_image019
The radian difference between the radian value of the outer ring target coordinate Q out and the radian value of the inner ring target coordinate Q in
Figure 02_image017
It is calculated according to the following formula:
Figure 02_image019

取得一歷史弧度差值

Figure 02_image021
,將該歷史弧度差值
Figure 02_image021
與該弧度差值
Figure 02_image017
相加得到該累積弧度差值
Figure 02_image023
的步驟,係根據以下公式計算得到:
Figure 02_image025
Get a historical radian difference
Figure 02_image021
, the historical radian difference
Figure 02_image021
difference from this radian
Figure 02_image017
Add to get the cumulative radian difference
Figure 02_image023
The steps are calculated according to the following formula:
Figure 02_image025

其中,

Figure 02_image027
為第i個影格之影像畫面中,外環目標座標Qout 的弧度值與該內環目標座標Qin 的弧度值的弧度差值,該歷史弧度差值
Figure 02_image021
為當下影像畫面10的前b個影格之影像畫面10中弧度差值
Figure 02_image029
之總和。in,
Figure 02_image027
is the radian difference between the radian value of the outer ring target coordinate Q out and the radian value of the inner ring target coordinate Q in in the image frame of the ith frame, and the historical radian difference
Figure 02_image021
is the radian difference in the image frame 10 of the first b frames of the current image frame 10
Figure 02_image029
the sum.

請參閱圖4所示,較佳的,當取得該累積弧度差值後,根據該累積弧度差值調整該參考移動命令,以產生該最終飛行指令的步驟(S105),具體係根據以下子步驟進行: 判斷該累積弧度差值的一絕對值是否大於一累積誤差臨界值(S1051); 當該累積弧度差值的一絕對值不小於該累積誤差臨界值,根據該累積弧度差值對該參考飛行指令進行一速率調降運算,產生該最終飛行指令(S1052); 當該累積弧度差值的一絕對值小於該累積誤差臨界值,根據該累積弧度差值對該參考飛行指令進行一速率調升運算,產生該最終飛行指令(S1053)。Please refer to FIG. 4 , preferably, after the accumulated radian difference is obtained, the reference movement command is adjusted according to the accumulated radian difference to generate the final flight instruction ( S105 ), which is specifically based on the following sub-steps conduct: Determine whether an absolute value of the cumulative radian difference is greater than a cumulative error threshold (S1051); When an absolute value of the cumulative radian difference is not less than the cumulative error threshold, perform a rate reduction operation on the reference flight order according to the cumulative radian difference to generate the final flight order (S1052); When an absolute value of the accumulated radian difference is smaller than the accumulated error threshold, a rate-up operation is performed on the reference flight order according to the accumulated radian difference to generate the final flight instruction ( S1053 ).

該累積誤差臨界值用於判斷該跟隨目標11的彎曲度是否大於一預定程度,當累積誤差臨界值大時,表示該跟隨目標11在該外環區的中心點與在內環區中的該中心點兩者相對該中心區G0的方位持續有一較大的差異,該跟隨目標11在一持續彎曲的狀態。因此,當該累積弧度差值大於該累積誤差臨界值時,則以一特定比例將該參考飛行指令的速率進行調降,當該累積弧度差值小於該累積誤差臨界值時,則以一特定比例將該參考飛行指令的速率進行調升。上述判斷及運算例如是通過以下運算公式實現:

Figure 02_image031
The cumulative error threshold is used to determine whether the curvature of the following target 11 is greater than a predetermined degree. When the cumulative error threshold is large, it indicates that the following target 11 is located between the center point of the outer ring area and the inner ring area. The orientation of the two center points relative to the center area G0 is continuously different, and the following target 11 is in a state of continuous bending. Therefore, when the cumulative radian difference is greater than the cumulative error threshold, the rate of the reference flight order is reduced by a specific ratio, and when the cumulative radian difference is less than the cumulative error threshold, a specific rate The ratio scales up the rate of the reference flight order. The above judgment and calculation are realized, for example, by the following formula:
Figure 02_image031

其中,

Figure 02_image033
為一速率調整比率值,
Figure 02_image035
為該累積誤差臨界值,
Figure 02_image037
為一最大速限值。in,
Figure 02_image033
To adjust the ratio value for a rate,
Figure 02_image035
is the cumulative error critical value,
Figure 02_image037
is a maximum speed limit.

當該累積弧度差值的一絕對值

Figure 02_image039
小於該累積誤差臨界值
Figure 02_image035
時,將該參考飛行指令
Figure 02_image001
乘以該累積弧度差值的絕對值
Figure 02_image039
再乘以該速率調整比率
Figure 02_image033
,作為該參考飛行指令
Figure 02_image001
調升的幅度,並將調整後的參考飛行指令
Figure 02_image001
與該最大速限值
Figure 02_image037
之間取一最大值,作為該最終飛行指令
Figure 02_image041
,避免飛行器無限加速。相反的,當該累積弧度差值的絕對值
Figure 02_image039
不小於該累積誤差臨界值
Figure 02_image035
,則是以該參考飛行指令
Figure 02_image001
乘以該累積弧度差值的絕對值
Figure 02_image039
乘以該速率調整比率
Figure 02_image033
,作為該參考飛行指令
Figure 02_image001
調降的幅度並產生該最終飛行指令
Figure 02_image041
。When an absolute value of the accumulated radian difference
Figure 02_image039
less than the cumulative error threshold
Figure 02_image035
, the reference flight instruction
Figure 02_image001
Multiply by the absolute value of this cumulative radian difference
Figure 02_image039
Multiply by this rate adjustment ratio
Figure 02_image033
, as the reference flight instruction
Figure 02_image001
The magnitude of the increase, and the adjusted reference flight order
Figure 02_image001
with the maximum speed limit
Figure 02_image037
Take a maximum value between them as the final flight order
Figure 02_image041
, to avoid infinite acceleration of the aircraft. Conversely, when the absolute value of the accumulated radian difference
Figure 02_image039
not less than the cumulative error threshold
Figure 02_image035
, then use the reference flight instruction
Figure 02_image001
Multiply by the absolute value of this cumulative radian difference
Figure 02_image039
Multiply by this rate to adjust the ratio
Figure 02_image033
, as the reference flight instruction
Figure 02_image001
the magnitude of the downgrade and generate the final flight order
Figure 02_image041
.

也就是說,當該累積弧度差值的絕對值

Figure 02_image039
小於該累積誤差臨界值
Figure 02_image035
,該最終飛行指令
Figure 02_image041
使得該飛行器的飛行速度漸增,且該累積弧度差值的絕對值
Figure 02_image039
在該累積誤差臨界值
Figure 02_image035
內越大時,該最終飛行指令
Figure 02_image041
的速率增幅越大。當該累積弧度差值的絕對值
Figure 02_image039
不小於該累積誤差臨界值
Figure 02_image035
,該最終飛行指令
Figure 02_image043
使得該飛行器的飛行速度漸減,且該累積弧度差值的絕對值
Figure 02_image039
越大,該最終飛行指令
Figure 02_image041
的速率降幅越大。That is, when the absolute value of the cumulative radian difference
Figure 02_image039
less than the cumulative error threshold
Figure 02_image035
, the final flight order
Figure 02_image041
Make the flight speed of the aircraft gradually increase, and the absolute value of the accumulated radian difference
Figure 02_image039
at this cumulative error threshold
Figure 02_image035
is larger, the final flight order
Figure 02_image041
the greater the rate increase. When the absolute value of the cumulative radian difference
Figure 02_image039
not less than the cumulative error threshold
Figure 02_image035
, the final flight order
Figure 02_image043
Make the flying speed of the aircraft gradually decrease, and the absolute value of the accumulated radian difference
Figure 02_image039
the larger the final flight order
Figure 02_image041
the greater the rate of decline.

請參閱圖5及圖6所示,圖5及圖6為飛行器跟隨該跟隨目標11進行一大角度轉彎之影像畫面10示意圖。舉例而言,以

Figure 02_image045
2.0、
Figure 02_image047
Figure 02_image049
Figure 02_image051
為例,圖5為該飛行器由影像畫面右方向左方行進即將轉彎之前的影像畫面10,內環目標座標Qin 的弧度值
Figure 02_image015
為3.1416,該外環標座標的弧度值
Figure 02_image053
為1.77,弧度差值
Figure 02_image055
,此時累積弧度差值
Figure 02_image023
例如為
Figure 02_image057
Figure 02_image059
;圖6為該飛行器進行轉彎之後的影像畫面10,該內環目標座標Qin 的弧度值
Figure 02_image015
為1.55,該外環標座標的弧度值
Figure 02_image053
為1.57,弧度差值
Figure 02_image061
,此時累積弧度差值
Figure 02_image023
例如為0.06,
Figure 02_image063
。Please refer to FIG. 5 and FIG. 6 . FIGS. 5 and 6 are schematic diagrams of the image screen 10 when the aircraft follows the following target 11 and makes a large angle turn. For example, with
Figure 02_image045
2.0,
Figure 02_image047
,
Figure 02_image049
,
Figure 02_image051
For example, FIG. 5 shows the image frame 10 of the aircraft moving from the right to the left of the image frame before turning, and the radian value of the inner ring target coordinate Q in
Figure 02_image015
is 3.1416, the radian value of the outer ring coordinates
Figure 02_image053
is 1.77, the difference in radians
Figure 02_image055
, then the cumulative radian difference
Figure 02_image023
for example
Figure 02_image057
,
Figure 02_image059
; Fig. 6 is that this aircraft carries out the image picture 10 after turning, the radian value of this inner ring target coordinate Q in
Figure 02_image015
is 1.55, the radian value of the outer ring coordinate
Figure 02_image053
is 1.57, the difference in radians
Figure 02_image061
, then the cumulative radian difference
Figure 02_image023
For example, 0.06,
Figure 02_image063
.

由圖5及圖6之範例可知,在圖5中,當飛行器的影像畫面10顯示飛行方向上的前方有一大角度的轉彎,產生之最終飛行指令

Figure 02_image065
參考飛行指令
Figure 02_image047
,該飛行器進行沿著該跟隨目標11進行減速;在圖6中,當飛行器完成轉向,該內環目標座標Qin 及該外環目標座標在Qout 在同一方向上且累積弧度差值
Figure 02_image023
極小,產生之最終飛行指令
Figure 02_image067
大於參考飛行指令
Figure 02_image047
,該飛行器進行沿著該跟隨目標11進行加速。It can be seen from the examples in FIGS. 5 and 6 that in FIG. 5 , when the image screen 10 of the aircraft shows that there is a large angle of turn ahead in the flight direction, the final flight command is generated.
Figure 02_image065
reference flight instructions
Figure 02_image047
, the aircraft decelerates along the following target 11; in FIG. 6, when the aircraft completes turning, the inner ring target coordinates Q in and the outer ring target coordinates Q out are in the same direction and the accumulated radian difference
Figure 02_image023
very small, resulting final flight order
Figure 02_image067
greater than the reference flight order
Figure 02_image047
, the aircraft accelerates along the following target 11 .

當累積弧度差值過大時,將最終飛行指令速率調降;當累積弧度差值小時,則將最終飛行指令中的速率調升,根據累積弧度差值進行速率調降運算及速率調升運算,使得飛行器在跟隨一曲度較小的曲線或一直線路線時增加飛行速度,當遇到曲度較大的彎曲路線時,降低速度以預備轉彎,避免飛行器偏離跟隨目標11、蛇行等狀況,提高跟隨精準度。When the cumulative radian difference is too large, the speed of the final flight command will be reduced; when the cumulative radian difference is small, the speed in the final flight command will be increased, and the rate reduction and rate increase operations will be performed according to the cumulative radian difference. Make the aircraft increase the flight speed when following a curve with a small curvature or a straight line. When encountering a curved line with a large curvature, reduce the speed to prepare for turning, avoid the aircraft from deviating from the following target 11, meandering, etc., and improve the following precision.

請參閱圖7所示,較佳的,該飛行器計算該等外環區G5~G8中的一外環目標座標Qout ,且計算該等內環區G1~G4中的一內環目標座標Qin 的步驟(S102),具體係根據以下步驟執行: 計算該跟隨目標11出現在該等外環區G5~G8、該等內環區G1~G4的機率值(S1021); 選擇該等外環區G5~G8中具有最大機率值的一外環區為一目標外環區,計算該目標外環區中該跟隨目標11的一中心點為該外環目標座標Qout (S1022); 選擇該等內環區G1~G4中具有最大機率值的一內環區為一目標內環區,計算該目標內環區中該跟隨目標11的一中心點為該內環目標座標Qin (S1023)。Please refer to FIG. 7 , preferably, the aircraft calculates an outer ring target coordinate Q out in the outer ring areas G5 - G8 , and calculates an inner ring target coordinate Q in the inner ring areas G1 - G4 The step of in ( S102 ) is specifically performed according to the following steps: Calculate the probability values of the following target 11 appearing in the outer ring areas G5 to G8 and the inner ring areas G1 to G4 ( S1021 ); Select the outer rings An outer ring area with the largest probability value in the areas G5 to G8 is a target outer ring area, and a center point of the following target 11 in the target outer ring area is calculated as the outer ring target coordinate Q out (S1022); An inner ring area with the largest probability value among the inner ring areas G1 to G4 is a target inner ring area, and a center point of the following target 11 in the target inner ring area is calculated as the inner ring target coordinate Qin (S1023) .

也就是說,分別計算該跟隨目標11出現在該等外環區G5~G8、該等內環區G1~G4的機率值,並選擇其中具有較大機率值的一外環區及一內環區為目標外環區及目標內環區,並進一步計算該目標外環區中該跟隨目標的一中心點為外環目標座標Qout ,以及計算目標內環區中的一中心點為內環目標座標Qin 。其中,較佳的,該跟隨目標在該目標外環區或該目標內環區的中心點,是計算該跟隨目標在該目標外環區或該目標內環區中的一面積重心點決定;若該面積重心點不在跟隨目標11之範圍內時,則計算該跟隨目標11內離該面積重心點距離最近的一寬度中點為該中心點。That is to say, the probability values of the following target 11 appearing in the outer ring areas G5-G8 and the inner ring areas G1-G4 are calculated respectively, and an outer ring area and an inner ring area with a larger probability value are selected. The area is the target outer ring area and the target inner ring area, and further calculate a center point of the following target in the target outer ring area as the outer ring target coordinate Q out , and calculate a center point in the target inner ring area as the inner ring The target coordinate Q in . Wherein, preferably, the center point of the following target in the target outer ring area or the target inner ring area is determined by calculating an area center of gravity of the following target in the target outer ring area or the target inner ring area; If the area gravity center point is not within the range of the following target 11 , the center point is calculated as a width midpoint closest to the area gravity center point in the following target 11 .

請參閱圖8所示,較佳的,計算該跟隨目標11出現在其中該等內環區G1~G4及該等外環區G5~G8的機率值(S1021),具體係根據以下子步驟計算得到: 計算該跟隨目標11在該等外環區G5~G8、該等內環區G1~G4中佔據的面積比例,將該等外環區G5~G8、該等內環區G1~G4中該跟隨目標11佔據的面積比例設定為該等外環區G5~G8、該等內環區G1~G4的一原始機率值(S1021a); 判斷該飛行器的一飛行慣性方向和一飛行慣性反方向(S1021b); 當位於該飛行慣性反方向上的該外環區、該內環區的原始機率值大於0,將該外環區、該內環區的機率值設定為「0」(S1021c); 當位於該飛行慣性方向上的該外環區、該內環區的原始機率值大於0,將該外環區、該內環區的機率值設定為「1」(S1021d)。Referring to FIG. 8 , preferably, the probability value of the following target 11 appearing in the inner ring areas G1 - G4 and the outer ring areas G5 - G8 is calculated ( S1021 ), and the specific calculation is performed according to the following sub-steps get: Calculate the area ratio occupied by the following target 11 in the outer ring areas G5-G8 and the inner ring areas G1-G4, and the following areas in the outer ring areas G5-G8 and the inner ring areas G1-G4 The area ratio occupied by the target 11 is set as an original probability value of the outer ring areas G5-G8 and the inner ring areas G1-G4 (S1021a); Determine a flight inertia direction and a flight inertia reverse direction of the aircraft (S1021b); When the original probability value of the outer ring area and the inner ring area located in the opposite direction of the flight inertia is greater than 0, set the probability value of the outer ring area and the inner ring area to "0" (S1021c); When the original probability value of the outer ring region and the inner ring region located in the flight inertia direction is greater than 0, the probability value of the outer ring region and the inner ring region is set to "1" (S1021d).

也就是說,該等內環區G1~G4及該等外環區G5~G8的一原始機率值為該跟隨目標11在該等內環區G1~G4及該等外環區G5~G8中佔據該區的一面積比例。該等內環區G1~G4的原始機率值運算公式如下:

Figure 02_image069
Figure 02_image071
That is to say, an original probability value of the inner ring areas G1-G4 and the outer ring areas G5-G8 is that the following target 11 is in the inner ring areas G1-G4 and the outer ring areas G5-G8 occupy a proportion of the area. The calculation formulas of the original probability values of the inner ring areas G1~G4 are as follows:
Figure 02_image069
Figure 02_image071

其中,

Figure 02_image073
係指該跟隨目標11在該等內環區G1~G4中的面積,
Figure 02_image075
為該跟隨目標11在該等內環區G1~G4中的總面積。in,
Figure 02_image073
refers to the area of the following target 11 in the inner ring regions G1~G4,
Figure 02_image075
is the total area of the following target 11 in the inner ring regions G1-G4.

該等外環區的原始機率值運算公式如下:

Figure 02_image077
Figure 02_image079
The formulas for calculating the original probability values of these outer ring regions are as follows:
Figure 02_image077
Figure 02_image079

其中,

Figure 02_image073
係指該跟隨目標11在該等外環區G5~G8中的面積,
Figure 02_image081
為該跟隨目標11在該等外環區G5~G8中的總面積。in,
Figure 02_image073
refers to the area of the following target 11 in the outer ring regions G5~G8,
Figure 02_image081
is the total area of the following target 11 in the outer ring regions G5-G8.

當計算得到該等內環區G1~G4及該等外環區G5~G8的原始機率值後,請一併參閱圖9及圖10所示,圖9係該影像畫面10中該等內環區G1~G4及該等外環區G5~G8根據面積計算公式所得到之跟隨目標1111的原始機率值。為方便說明,定義該影像畫面10的一Y軸方向及一Z軸方向,假設該飛行器係由該影像畫面10右側沿該跟隨目標11向左側飛行,該飛行器的一飛行慣性方向係一-y方向,該飛行慣性反方向係一+y方向,該飛行慣性方向對應該內環區G4及該外環區G8,該飛行慣性反方向對應該內環區G2及該外環區G6。根據步驟S1021及S2022,當判斷得到該飛行慣性反方向後,並將該飛行慣性方向上的內環區G4及外環區G8的機率值設定為「1」,將該飛行慣性反方向上之內環區G2及外環區G6的機率值設定為「0」,經修正設定後該等內環區G1~G4及該等外環區G5~G8的機率值如圖10所示。After calculating the original probability values of the inner ring areas G1-G4 and the outer ring areas G5-G8, please refer to FIG. 9 and FIG. 10 together. FIG. 9 shows the inner rings in the image frame 10. The original probability values of the following target 1111 obtained from the areas G1 to G4 and the outer ring areas G5 to G8 according to the area calculation formula. For the convenience of description, a Y-axis direction and a Z-axis direction of the image frame 10 are defined, assuming that the aircraft flies from the right side of the image frame 10 to the left side along the following target 11, and a flight inertia direction of the aircraft is a -y The flight inertia direction is a +y direction, the flight inertia direction corresponds to the inner ring area G4 and the outer ring area G8, and the flight inertia direction corresponds to the inner ring area G2 and the outer ring area G6. According to steps S1021 and S2022, after it is determined that the reverse direction of the flight inertia is obtained, the probability values of the inner ring area G4 and the outer ring area G8 in the flight inertia direction are set to "1", and the inner ring in the reverse direction of the flight inertia is set to "1". The probability values of the ring area G2 and the outer ring area G6 are set to "0", and the probability values of the inner ring areas G1 - G4 and the outer ring areas G5 - G8 are shown in FIG. 10 after the correction and setting.

根據上述步驟獲得的該等內環區G1~G4及該等外環區G5~G8的機率值,將飛行器的飛行慣性反方向上的內環區及外環區的機率值設為機率最小值「0」,並將飛行器的飛行慣性反方向上的內環區及外環區的機率值設為機率最大值「1」,如此一來在進入下一步驟根據最大機率值選擇目標外環區及目標內環區時,排除飛行器已經跟隨過的跟隨目標11線段,並將飛行慣性方向上的外環區及內環區優先選擇為目標外環區及目標內環區,以在步驟S1022及S1023時,計算其中的外環目標座標Qout 及內環目標座標Qin 。上述步驟係用以排除飛行器前一個時刻所在方向的內環區及外環區,避免根據該等內環區G1~G4及外環區G5~G8的機率值決定之飛行方向導致飛行器反覆回頭之狀況發生。According to the probability values of the inner ring areas G1~G4 and the outer ring areas G5~G8 obtained in the above steps, set the probability values of the inner ring area and the outer ring area in the opposite direction of the aircraft's flight inertia as the probability minimum value "0", and set the probability values of the inner and outer ring areas in the opposite direction of the aircraft's flight inertia to the maximum probability value "1", so that in the next step, select the target outer ring area and the target according to the maximum probability value. In the inner ring area, the following target 11 line segments that the aircraft has already followed are excluded, and the outer ring area and the inner ring area in the flight inertia direction are preferentially selected as the target outer ring area and the target inner ring area, so that in steps S1022 and S1023 , calculate the outer ring target coordinate Q out and the inner ring target coordinate Q in . The above steps are used to exclude the inner ring area and outer ring area in the direction of the aircraft at the previous moment, so as to avoid the flight direction determined by the probability values of these inner ring areas G1~G4 and outer ring areas G5~G8 causing the aircraft to repeatedly turn around. situation occurs.

請參閱圖11所示,在本發明的飛行器路線跟隨方法的一第二較佳實施例中,與第一較佳實施例不同的是,在執行「擷取包含一跟隨目標11的一影像畫面10,將該影像畫面10切割為複數外環區、複數內環區及一中心區G0的步驟」(S101)後,係先執行以下步驟: 控制該飛行器移動使得該跟隨目標11通過該中心區G0(S1101); 再執行「計算該等外環區G5~G8中的一外環目標座標Qout ,且計算該等內環區G1~G4中的一內環目標座標Qin 」(S102)的步驟。Please refer to FIG. 11 , in a second preferred embodiment of the aircraft route following method of the present invention, the difference from the first preferred embodiment is that “capture an image frame including a following target 11 is executed” 10. After the step of dividing the image frame 10 into a plurality of outer ring areas, a plurality of inner ring areas and a central area G0" (S101), first perform the following steps: Control the aircraft to move so that the following target 11 passes through the central area G0 (S1101); then execute "calculate an outer ring target coordinate Q out in the outer ring areas G5~G8, and calculate an inner ring target coordinate Q in in the inner ring areas G1~G4" (S102) A step of.

本較佳實施例進一步將飛行器考慮當飛行器在執行任務之最初狀態,或當飛行器在執行跟隨飛行任務中受到氣流或碰撞等外力偏離該跟隨目標11,使得跟跟隨目標11在影像畫面10中並未通過該中心區G0,則該飛行器先移動至該跟隨目標11通過中心區G0,才開始或繼續根據外環目標座標Qout 及內環目標座標Qin 跟隨飛行之任務。In this preferred embodiment, the aircraft is further considered when the aircraft is in the initial state of performing the mission, or when the aircraft is subjected to an external force such as airflow or collision during the execution of the following flight mission and deviates from the following target 11 , so that the following target 11 is in the image frame 10 , and If the central area G0 is not passed, the aircraft will first move to the following target 11 and pass the central area G0 before starting or continuing the task of following the flight according to the outer ring target coordinate Q out and the inner ring target coordinate Q in .

請參閱圖12所示,在本較佳實施例中,控制該飛行器移動使得該跟隨目標11通過該中心區G0的步驟(S1101),具體係根據以下子步驟執行: 計算該跟隨目標11出現在中心區G0的一機率值(S1101a); 判斷該中心區G0的機率值是否大於一準確度臨界值(S1101b); 當該中心區G0的機率值大於該準確度臨界值,判斷該跟隨目標11已通過該中心區G0(S1101c); 當該中心區G0的機率值小於該準確度臨界值,計算該等外環區的該外環目標座標Qout 值(S1101d); 根據該外環目標座標Qout 值產生一校正飛行指令(S1101e)。Referring to FIG. 12 , in this preferred embodiment, the step of controlling the aircraft to move so that the following target 11 passes through the central area G0 ( S1101 ) is specifically performed according to the following sub-steps: Calculating that the following target 11 appears at A probability value of the central area G0 (S1101a); Determine whether the probability value of the central area G0 is greater than an accuracy threshold (S1101b); When the probability value of the central area G0 is greater than the accuracy threshold, determine the following target 11 The central area G0 has been passed (S1101c); When the probability value of the central area G0 is less than the accuracy threshold, calculate the outer ring target coordinate Q out value of the outer ring areas (S1101d); According to the outer ring target coordinate The value of Q out generates a correction flight command (S1101e).

又,該跟隨目標11出現在該中心區G0的機率值可根據以下公式計算得到:

Figure 02_image083
In addition, the probability value of the following target 11 appearing in the central area G0 can be calculated according to the following formula:
Figure 02_image083

其中,

Figure 02_image085
為該跟隨目標11在該中心區G0內的面積,
Figure 02_image087
為該中心區G0的面積。in,
Figure 02_image085
is the area of the following target 11 in the central area G0,
Figure 02_image087
is the area of the central region G0.

其中,計算該等外環區的該外環目標座標Qout 的詳細步驟與步驟S1022相同,在此不多加贅述。根據該外環目標座標Qout 產生一校正飛行指令的步驟,具體係根據以下公式計算得到:

Figure 02_image089
The detailed steps of calculating the outer ring target coordinates Q out of the outer ring regions are the same as step S1022 , and details are not repeated here. The step of generating a correction flight command according to the outer ring target coordinate Q out is calculated according to the following formula:
Figure 02_image089

也就是說,當該跟隨目標11在該中心區G0內的機率值大於該準確度臨界值時,表示該跟隨目標11已覆蓋該影像畫面10的中心區G0,該飛行器確實位在該跟隨目標11的範圍內,而已對準該跟隨目標11;當該跟隨目標11在該中心區G0內的機率值小於該準確度臨界值時,表示該影像畫面10的中心區G0並未對準該跟隨目標11,該飛行器已偏離該跟隨目標11,因此計算該外環區內的一外環目標座標Qout ,並據以產生該校正飛行指令,使得該飛行器向該影像畫面10中外圍的跟隨目標11位置移動,直到該跟隨目標11出現在該中心區G0的機率值大於該準確度臨界值,才進一步進入根據該內環目標座標Qin 產生一參考飛行指令並且根據弧度差值及累積弧度差值調整飛行速率,使飛行器準確沿該跟隨目標11飛行的步驟。That is to say, when the probability value of the following target 11 in the central area G0 is greater than the accuracy threshold, it means that the following target 11 has covered the central area G0 of the image frame 10, and the aircraft is indeed located at the following target Within the range of 11, the following target 11 has been aligned; when the probability value of the following target 11 in the central area G0 is less than the accuracy threshold, it means that the central area G0 of the image frame 10 is not aligned with the following target 11 Target 11, the aircraft has deviated from the following target 11, therefore, an outer ring target coordinate Q out in the outer ring area is calculated, and the correction flight command is generated accordingly, so that the aircraft is directed to the outer following target in the image frame 10. The position of 11 moves until the probability value of the following target 11 appearing in the central area G0 is greater than the accuracy critical value, and then further enters and generates a reference flight command according to the inner ring target coordinate Qin and generates a reference flight command according to the radian difference and the accumulated radian difference. The value adjusts the flight rate so that the aircraft follows exactly the steps that follow the target 11.

請參閱圖13所示,在本發明的一第三較佳實施例中,與第一較佳實施例不同的是,根據該內環目標座標Qin 產生一參考飛行指令的步驟中(S103),進一步包含有以下步驟: 計算該中心區G0內的一當前目標寬(S1031); 計算該中心區G0內該當前目標寬與一預設目標寬的差(S1032); 根據該內環目標座標Qin 及該跟隨目標11寬與該預設目標寬的差產生該參考飛行指令(S1033)。Please refer to FIG. 13 , in a third preferred embodiment of the present invention, which is different from the first preferred embodiment, in the step of generating a reference flight instruction according to the inner ring target coordinate Qin ( S103 ) , further comprising the following steps: calculating a current target width in the central area G0 ( S1031 ); calculating the difference between the current target width and a preset target width in the central area G0 ( S1032 ); according to the inner ring target coordinates Qin and the difference between the following target 11 width and the preset target width generate the reference flight command ( S1033 ).

以圖14為例,假設該中心區G0內該跟隨目標11的當前目標寬是

Figure 02_image091
,而一預設目標寬是
Figure 02_image093
,當前目標寬
Figure 02_image091
與預設目標寬
Figure 02_image093
的差
Figure 02_image095
Figure 02_image097
。該影像畫面10中中心區G0內該跟隨目標11的當前目標寬度小於該預設目標寬
Figure 02_image093
,表示該飛行器目前與該跟隨目標的垂直距離大於一預定之距離,因此根據該內環目標座標Qin 及該跟隨目標11寬與該預設目標寬的差
Figure 02_image095
產生該參考飛行指令
Figure 02_image041
(S1033)的步驟,具體是根據以下公式計算產生:
Figure 02_image099
Figure 02_image101
Taking Fig. 14 as an example, it is assumed that the current target width of the following target 11 in the central area G0 is
Figure 02_image091
, and a preset target width is
Figure 02_image093
, the current target width
Figure 02_image091
with preset target width
Figure 02_image093
difference
Figure 02_image095
for
Figure 02_image097
. The current target width of the following target 11 in the central area G0 of the image frame 10 is smaller than the preset target width
Figure 02_image093
, indicating that the current vertical distance between the aircraft and the following target is greater than a predetermined distance, so according to the inner ring target coordinate Qin and the difference between the width of the following target 11 and the preset target width
Figure 02_image095
generate the reference flight order
Figure 02_image041
The step of (S1033) is calculated according to the following formula:
Figure 02_image099
Figure 02_image101

其中,

Figure 02_image103
Figure 02_image105
Figure 02_image005
之定義與第一較佳實施例相同,在此不再贅述。in,
Figure 02_image103
,
Figure 02_image105
and
Figure 02_image005
The definition is the same as that of the first preferred embodiment, and will not be repeated here.

如圖15所示,經由產生上述的參考飛行指令,使得該飛行器產生與該跟隨目標11垂直之飛行速度,直到該影像畫面10中該中心區G0內的跟隨目標11的當前目標寬

Figure 02_image091
與該預設目標寬相等,表示該飛行器與該跟隨目標的垂直距離為該預定距離,達到避免忽遠忽近,保持飛行器與跟隨目標之垂直距離的目的。As shown in FIG. 15 , by generating the above-mentioned reference flight command, the aircraft generates a flying speed perpendicular to the following target 11 until the current target width of the following target 11 in the center area G0 of the image frame 10 is reached.
Figure 02_image091
If it is equal to the preset target width, it means that the vertical distance between the aircraft and the following target is the predetermined distance, so as to avoid sudden distance and nearness, and maintain the vertical distance between the aircraft and the following target.

在本較佳實施例中,進一步考慮並調整該飛行器與該跟隨目標11所在立面的距離。在跟隨同一跟隨目標11的情況下,當該影像畫面10中的該跟隨目標11寬度較小時,表示該飛行器與該跟隨目標11的垂直距離較遠,應產生一朝向該立面的飛行速度;當該影像畫面10中的該跟隨目標11寬度大於預設目標寬時,表示該飛行器與該跟隨目標11的垂直距離過近,應產生一遠離該立面的飛行速度。In this preferred embodiment, the distance between the aircraft and the facade where the following target 11 is located is further considered and adjusted. In the case of following the same following target 11, when the width of the following target 11 in the image frame 10 is smaller, it means that the vertical distance between the aircraft and the following target 11 is relatively far, and a flight speed towards the elevation should be generated ; When the width of the following target 11 in the image screen 10 is larger than the preset target width, it means that the vertical distance between the aircraft and the following target 11 is too close, and a flight speed away from the facade should be generated.

因此本較佳實施例中,除了根據該影像畫面10中的內環目標座標Qin 與該參考點(yc , zc )兩點間的向量產生平行該跟隨目標11所在立面的飛行方向,還根據該當前目標寬與預設目標寬的差,產生該參考飛行指令中與該立面垂直的飛行方向,以隨時校正飛行器與跟隨目標11的垂直距離。Therefore, in this preferred embodiment, in addition to generating the flying direction parallel to the elevation of the following target 11 according to the vector between the inner ring target coordinate Qin in the image frame 10 and the reference point (y c , z c ) , and according to the difference between the current target width and the preset target width, the flight direction perpendicular to the elevation in the reference flight instruction is generated, so as to correct the vertical distance between the aircraft and the following target 11 at any time.

以上所述僅是本發明的較佳實施例而已,並非對本發明做任何形式上的限制,雖然本發明已以較佳實施例揭露如上,然而並非用以限定本發明,任何熟悉本專業的技術人員,在不脫離本發明技術方案的範圍內,當可利用上述揭示的技術內容做出些許更動或修飾為等同變化的等效實施例,但凡是未脫離本發明技術方案的內容,依據本發明的技術實質對以上實施例所作的任何簡單修改、等同變化與修飾,均仍屬於本發明技術方案的範圍內。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention in any form. Although the present invention has been disclosed above with preferred embodiments, it is not intended to limit the present invention. Personnel, within the scope of not departing from the technical solution of the present invention, can make some changes or modifications to equivalent embodiments of equivalent changes by using the technical content disclosed above, but any content that does not depart from the technical solution of the present invention, according to the present invention Any simple modifications, equivalent changes and modifications made to the above embodiments still fall within the scope of the technical solutions of the present invention.

10:影像畫面 11:跟隨目標 Qin :內環目標 Qout :外環目標 G0:中心區 G1,G2,G3,G4:內環區 G5,G6,G7,G8:外環區10: Image screen 11: Follow target Q in : Inner ring target Q out : Outer ring target G0: Central area G1, G2, G3, G4: Inner ring area G5, G6, G7, G8: Outer ring area

圖1係本發明飛行器路線跟隨方法第一較佳實施例的流程圖。 圖2係本發明飛行器路線跟隨方法的飛行器擷取之影像畫面示意圖。 圖3係本發明飛行器路線跟隨方法第一較佳實施例中步驟S104的子步驟流程圖。 圖4係本發明飛行器路線跟隨方法第一較佳實施例中步驟S105的子步驟流程圖。 圖5及圖6係本發明飛行器路線跟隨方法的飛行器擷取之另一影像畫面示意圖。 圖7係本發明飛行器路線跟隨方法第一較佳實施例中步驟S102的子步驟流程圖。 圖8係本發明飛行器路線跟隨方法第一較佳實施例中步驟S1021的子步驟流程圖。 圖9及圖10係本發明飛行器路線跟隨方法的飛行器擷取之另一影像畫面示意圖。 圖11係本發明飛行器路線跟隨方法第二較佳實施例的流程圖。 圖12係本發明飛行器路線跟隨方法第二較佳實施例中的較詳細子步驟流程圖。 圖13係本發明飛行器路線跟隨方法第三較佳實施例的步驟S103的子步驟流程圖。 圖14及15分別係本發明飛行器路線跟隨方法的飛行器擷取之另一影像畫面示意圖。FIG. 1 is a flow chart of a first preferred embodiment of a method for following a route of an aircraft of the present invention. FIG. 2 is a schematic diagram of an image captured by an aircraft in the method for following an aircraft route according to the present invention. FIG. 3 is a flow chart of sub-steps of step S104 in the first preferred embodiment of the aircraft route following method of the present invention. FIG. 4 is a flow chart of sub-steps of step S105 in the first preferred embodiment of the aircraft route following method of the present invention. FIG. 5 and FIG. 6 are schematic diagrams of another image frame captured by the aircraft of the aircraft route following method of the present invention. FIG. 7 is a flow chart of sub-steps of step S102 in the first preferred embodiment of the aircraft route following method of the present invention. FIG. 8 is a flow chart of sub-steps of step S1021 in the first preferred embodiment of the aircraft route following method of the present invention. FIG. 9 and FIG. 10 are schematic diagrams of another image frame captured by the aircraft of the aircraft route following method of the present invention. FIG. 11 is a flow chart of the second preferred embodiment of the method for following the route of the aircraft of the present invention. FIG. 12 is a flow chart of more detailed sub-steps in the second preferred embodiment of the aircraft route following method of the present invention. FIG. 13 is a flow chart of sub-steps of step S103 of the third preferred embodiment of the aircraft route following method of the present invention. 14 and 15 are schematic diagrams of another image frame captured by the aircraft of the aircraft route following method of the present invention, respectively.

Claims (9)

一種飛行器路線跟隨方法,由一飛行器執行,包含以下步驟: 擷取包含一跟隨目標的一影像畫面,在該影像畫面中定義一中心區,複數內環區及複數外環區; 根據該跟隨目標計算該等外環區中的一外環目標座標,且計算該等內環區中的一內環目標座標; 根據該內環目標座標產生一參考飛行指令; 計算該外環目標座標及該內環目標座標相對一參考點的一弧度差值,並據以更新一累積弧度差值; 根據該累積弧度差值調整該參考飛行指令,產生一最終飛行指令。An aircraft route following method, executed by an aircraft, includes the following steps: capturing an image frame including a following target, and defining a central area, a plurality of inner ring areas and a plurality of outer ring areas in the image frame; Calculate an outer ring target coordinate in the outer ring areas according to the following target, and calculate an inner ring target coordinate in the inner ring areas; generating a reference flight instruction according to the inner ring target coordinates; Calculate a radian difference between the outer ring target coordinate and the inner ring target coordinate relative to a reference point, and update a cumulative radian difference accordingly; The reference flight command is adjusted according to the accumulated radian difference to generate a final flight command. 如請求項1所述的飛行器路線跟隨方法,其中,在該影像畫面中定義一中心區、複數內環區及複數內環區的步驟中,係在該影像畫面的中央定義一中心區,在該中心區的外圍定義一與該中心區同心且分割為該等內環區的內環、又在該內環的外圍定義一與該內環及該中心區同心且分割為該等外環區的外環,且各內環區與各外環區對應同一圓心角。The aircraft route following method according to claim 1, wherein in the step of defining a central area, a plurality of inner ring areas and a plurality of inner ring areas in the image frame, a central area is defined in the center of the image frame, and The periphery of the central area defines an inner ring that is concentric with the central area and is divided into the inner ring areas, and defines an inner ring that is concentric with the inner ring and the central area and is divided into the outer ring areas on the periphery of the inner ring The outer ring of , and each inner ring area and each outer ring area correspond to the same central angle. 如請求項1所述的飛行器路線跟隨方法,其中,計算該等外環區中的一外環目標座標,且計算該等內環區中的一內環目標座標的步驟中,係包含以下子步驟: 計算該跟隨目標出現在該等外環區及該等內環區的機率值; 選擇該等外環區中具有最大機率值的一外環區為一目標外環區,計算該目標外環區中該跟隨目標的一中心點為該外環目標座標; 選擇該等內環區中具有最大機率值的一內環區為一目標內環區,計算該目標內環區中該跟隨目標的一中心點為該內環目標座標。The method for following a route of an aircraft as claimed in claim 1, wherein the steps of calculating an outer ring target coordinate in the outer ring areas and calculating an inner ring target coordinate in the inner ring areas include the following steps: step: calculating the probability values of the following target appearing in the outer ring areas and the inner ring areas; Selecting an outer ring area with the largest probability value among the outer ring areas as a target outer ring area, and calculating a center point of the following target in the target outer ring area as the outer ring target coordinate; An inner ring area with the largest probability value among the inner ring areas is selected as a target inner ring area, and a center point of the following target in the target inner ring area is calculated as the inner ring target coordinate. 如請求項3所述的飛行器路線跟隨方法,其中,計算該跟隨目標出現在該等外環區及該等內環區的機率值,係根據以下子步驟執行: 計算該跟隨目標在該等外環區、該等內環區中佔據的面積比例,將該等外環區、該等內環區中該跟隨目標佔據的面積比例設定為該等外環區、該等內環區的一原始機率值; 判斷該飛行器的一飛行慣性方向和一飛行慣性反方向; 當位於該飛行慣性反方向上的該外環區、該內環區的原始機率值大於「0」,將該外環區、該內環區的機率值設定為「0」; 當位於該飛行慣性方向上的該外環區、該內環區的原始機率值大於「0」,將該外環區、該內環區的機率值設定為「1」。The aircraft route following method as claimed in claim 3, wherein calculating the probability value of the following target appearing in the outer ring areas and the inner ring areas is performed according to the following sub-steps: Calculate the area ratio occupied by the follower target in the outer ring area and the inner ring area, and set the area percentage occupied by the follower target in the outer ring area and the inner ring area as the outer ring area, a raw probability value for the inner ring zones; Determine a flight inertia direction and a flight inertia opposite direction of the aircraft; When the original probability value of the outer ring area and the inner ring area located in the opposite direction of the flight inertia is greater than "0", set the probability value of the outer ring area and the inner ring area to "0"; When the original probability value of the outer ring area and the inner ring area located in the flight inertia direction is greater than "0", the probability value of the outer ring area and the inner ring area is set to "1". 如請求項1所述的飛行器路線跟隨方法,其中,根據該外環目標座標及該內環目標座標計算一弧度差值,並據以更新一累積弧度差值的步驟中,包含以下子步驟: 計算該外環目標座標相對該參考點的弧度值; 計算該內環目標座標相對該參考點的弧度值; 將該外環目標座標的弧度值與該內環目標座標的弧度值相減,得到該弧度差值; 取得一歷史弧度差值,將該歷史弧度差值與該弧度差值相加得到該累積弧度差值。The aircraft route following method as claimed in claim 1, wherein the step of calculating a radian difference value according to the outer ring target coordinates and the inner ring target coordinate, and updating a cumulative radian difference value accordingly, includes the following sub-steps: Calculate the radian value of the outer ring target coordinate relative to the reference point; Calculate the radian value of the inner ring target coordinate relative to the reference point; The radian value of the outer ring target coordinate is subtracted from the radian value of the inner ring target coordinate to obtain the radian difference value; A historical radian difference is obtained, and the historical radian difference is added to the radian difference to obtain the accumulated radian difference. 如請求項1所述的飛行器路線跟隨方法,其中,根據該累積弧度差值調整該參考飛行指令,產生一最終飛行指令的步驟中,係包含以下步驟: 判斷該累積弧度差值的一絕對值是否大於一累積誤差臨界值; 當該累積弧度差值的一絕對值小於該累積誤差臨界值,根據該累積弧度差值對該參考飛行指令進行一速率調升運算,產生該最終飛行指令; 當該累積弧度差值的一絕對值不小於該累積誤差臨界值,根據該累積弧度差值對該參考飛行指令進行一速率調降運算,產生該最終飛行指令。The method for following a route of an aircraft as claimed in claim 1, wherein the step of adjusting the reference flight command according to the accumulated radian difference to generate a final flight command comprises the following steps: determining whether an absolute value of the cumulative radian difference is greater than a cumulative error threshold; When an absolute value of the cumulative radian difference is less than the cumulative error threshold, perform a rate-up operation on the reference flight order according to the cumulative radian difference to generate the final flight command; When an absolute value of the cumulative radian difference is not less than the cumulative error threshold, a rate reduction operation is performed on the reference flight command according to the cumulative radian difference to generate the final flight command. 如請求項1所述的飛行器路線跟隨方法,其中,執行「擷取包含一跟隨目標的一影像畫面,在該影像畫面中定義一中心區、複數內環區及複數外環區」的步驟後,先執行以下步驟: 控制該飛行器移動使得該跟隨目標通過該中心區; 再執行「計算該等外環區中的一外環目標座標,且計算該等內環區中的一內環目標座標」的步驟。The method for following a route of an aircraft as claimed in claim 1, wherein after performing the step of "capturing an image frame including a following target, and defining a central area, a plurality of inner ring areas and a plurality of outer ring areas in the image frame" , first perform the following steps: controlling the aircraft to move so that the following target passes through the central area; Then, the steps of "calculating an outer ring target coordinate in the outer ring areas, and calculating an inner ring target coordinate in the inner ring areas" are executed. 如請求項6所述的飛行器路線跟隨方法,其中,控制該飛行器移動使得該跟隨目標通過該中心區的步驟係根據以下子步驟執行: 計算該跟隨目標出現在中心區的一機率值; 判斷該中心區的機率值是否大於一準確度臨界值;當該中心區的機率值大於該準確度臨界值,判斷該跟隨目標已通過該中心區; 當該中心區的機率值小於該準確度臨界值,計算該等外環區的該外環目標座標值; 根據該外環目標座標產生一校正飛行指令。The aircraft route following method according to claim 6, wherein the step of controlling the aircraft to move so that the following target passes through the central area is performed according to the following sub-steps: Calculate a probability value of the following target appearing in the central area; Determine whether the probability value of the central area is greater than an accuracy threshold; when the probability value of the central area is greater than the accuracy threshold, determine that the following target has passed through the central area; When the probability value of the central area is less than the accuracy threshold, calculate the outer ring target coordinate values of the outer ring areas; A calibration flight command is generated according to the outer ring target coordinates. 如請求項1所述的飛行器路線跟隨方法,其中,根據該內環目標座標產生一參考飛行指令的步驟,係包含以下子步驟: 計算該中心區內該跟隨目標的一當前目標寬; 計算該中心區內該當前目標寬與一預設目標寬的差; 根據該內環目標座標及該跟隨目標寬與該預設目標寬的差產生該參考飛行指令。The method for following a route of an aircraft as claimed in claim 1, wherein the step of generating a reference flight instruction according to the inner ring target coordinates comprises the following sub-steps: calculating a current target width of the following target in the central area; calculating the difference between the current target width and a preset target width in the central area; The reference flight command is generated according to the inner ring target coordinates and the difference between the following target width and the preset target width.
TW109107296A 2020-03-05 2020-03-05 Aircraft route following method TWI757700B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW109107296A TWI757700B (en) 2020-03-05 2020-03-05 Aircraft route following method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW109107296A TWI757700B (en) 2020-03-05 2020-03-05 Aircraft route following method

Publications (2)

Publication Number Publication Date
TW202137135A TW202137135A (en) 2021-10-01
TWI757700B true TWI757700B (en) 2022-03-11

Family

ID=79601336

Family Applications (1)

Application Number Title Priority Date Filing Date
TW109107296A TWI757700B (en) 2020-03-05 2020-03-05 Aircraft route following method

Country Status (1)

Country Link
TW (1) TWI757700B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9047691B2 (en) * 2012-06-05 2015-06-02 Apple Inc. Route display and review
CN108364304A (en) * 2018-04-11 2018-08-03 湖南城市学院 A kind of system and method for the detection of monocular airborne target
CN110254722A (en) * 2018-04-13 2019-09-20 苏州极目机器人科技有限公司 A kind of aerocraft system and its method, the product with computer program
TWM591172U (en) * 2019-09-16 2020-02-21 范利漢 Precise stop control device for multi-rotor vehicle

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9047691B2 (en) * 2012-06-05 2015-06-02 Apple Inc. Route display and review
CN108364304A (en) * 2018-04-11 2018-08-03 湖南城市学院 A kind of system and method for the detection of monocular airborne target
CN110254722A (en) * 2018-04-13 2019-09-20 苏州极目机器人科技有限公司 A kind of aerocraft system and its method, the product with computer program
TWM591172U (en) * 2019-09-16 2020-02-21 范利漢 Precise stop control device for multi-rotor vehicle

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
李恭儀,無人機前方視野精準輪廓線條跟隨方法之研究,國立國立政治大學資訊科學系碩士論文,2018年12月 *
李恭儀,無人機前方視野精準輪廓線條跟隨方法之研究,國立國立政治大學資訊科學系碩士論文,2018年12月。

Also Published As

Publication number Publication date
TW202137135A (en) 2021-10-01

Similar Documents

Publication Publication Date Title
CN110222581B (en) Binocular camera-based quad-rotor unmanned aerial vehicle visual target tracking method
US9798324B2 (en) Autonomous vehicle operation
US10754354B2 (en) Hover control
JP6634512B2 (en) Method, apparatus and unmanned aerial vehicle for terrain following flight of an unmanned aerial vehicle
CN110276786B (en) Method and device for determining position information of tracking target, tracking device and system
CN108052102B (en) Robot travel route determining method and device and robot
CN105487552A (en) Unmanned aerial vehicle tracking shooting method and device
CN112799426A (en) Unmanned aerial vehicle navigation control system and method based on big data analysis
JP4982407B2 (en) Mobile object image tracking apparatus and method
WO2021244545A1 (en) Unmanned aerial vehicle guidance method, unmanned aerial vehicle, and storage medium
JP2017501383A (en) Method and apparatus for correcting plane conditions in real time
WO2021223171A1 (en) Target tracking method and apparatus, movable platform, and imaging platform
JP2018020759A5 (en)
CN107305374A (en) Unmanned plane system
CN111766900A (en) System and method for high-precision autonomous landing of unmanned aerial vehicle and storage medium
KR101769602B1 (en) Apparatus and method of position revision for hovering using optical flow and imu and ultrasonic sensor
CN110958661B (en) Unmanned aerial vehicle network route selection method and device and unmanned aerial vehicle node
TWI757700B (en) Aircraft route following method
CN107977985A (en) Unmanned plane hovering method, apparatus, unmanned plane and storage medium
JP2018046560A5 (en)
CN112365743A (en) Method and device for correcting flight path positioning data offset of aircraft
WO2020237478A1 (en) Flight planning method and related device
WO2021070518A1 (en) Aircraft position control system, aircraft, and aircraft position control method
CN108681324A (en) Mobile robot trace tracking and controlling method based on overall Vision
JPWO2021153198A5 (en)