CN106959770A - 3D indicating device and method for compensating rotation of 3D indicating device - Google Patents
3D indicating device and method for compensating rotation of 3D indicating device Download PDFInfo
- Publication number
- CN106959770A CN106959770A CN201710093370.8A CN201710093370A CN106959770A CN 106959770 A CN106959770 A CN 106959770A CN 201710093370 A CN201710093370 A CN 201710093370A CN 106959770 A CN106959770 A CN 106959770A
- Authority
- CN
- China
- Prior art keywords
- orientation
- state
- rotation
- output
- angle
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0346—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a three-dimensional [3D] space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/038—Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Position Input By Displaying (AREA)
Abstract
Description
本申请是申请日为2012年3月27日、申请号为201210084834.6、发明名称为“3D指示装置与补偿3D指示装置的转动的方法”的发明专利申请的分案申请。This application is a divisional application of an invention patent application with an application date of March 27, 2012, an application number of 201210084834.6, and an invention title of "3D pointing device and method for compensating the rotation of a 3D pointing device".
技术领域technical field
本发明是关于一种3D指示装置,特别是关于一种利用一方位传感器并使用于计算机、动作侦测、或导航的3D指示装置,且也是特别关于一种当3D指示装置移动及转动时用于补偿方位传感器之讯号的方法。The present invention relates to a 3D pointing device, in particular to a 3D pointing device using an orientation sensor for use in computers, motion detection, or navigation, and in particular to a 3D pointing device that is used when the 3D pointing device moves and rotates A method for compensating the signal of the orientation sensor.
背景技术Background technique
图1绘示出用户利用一携带式电子装置110,例如一3D指示装置或计算机鼠标,以侦测该携带式电子装置的动作,并将该侦测到的动作转换为一显示光标(cursordisplay),此显示光标例如为指示在一2D显示设备120的屏幕122上的光标。亦即,当携带式电子装置110射出一光线,该对应的点为该光线碰触到屏幕122之处。例如,携带式电子装置110可为计算机的鼠标或电视游乐器的手柄,而显示设备120可为计算机或电视游乐器的一部分。在图中存在有两个参考坐标,例如为空间指示参考坐标与显示器坐标,其分别与该携带式电子装置110及显示设备120相关联。与指示装置110相关联的第一参考坐标或空间指示参考坐标是由如图1所示之三个坐标轴,即:XP、YP及ZP,所定义而成。与显示设备120相关联的第二参考坐标或显示器坐标则是由如图1所示之三个坐标轴,即:XD、YD及ZD,所定义而成。显示设备120的屏幕122为参考坐标XDYDZD中XDYD平面的一子集,参考坐标XDYDZD则是与显示设备120相关联。因此,XDYD平面又可被视为显示设备120的显示平面。FIG. 1 illustrates that a user uses a portable electronic device 110, such as a 3D pointing device or a computer mouse, to detect the motion of the portable electronic device, and convert the detected motion into a display cursor (cursordisplay). , the display cursor is, for example, a cursor pointing on the screen 122 of a 2D display device 120 . That is, when the portable electronic device 110 emits a light, the corresponding point is where the light hits the screen 122 . For example, the portable electronic device 110 can be a computer mouse or a handle of a video game console, and the display device 120 can be a part of the computer or video game console. In the figure, there are two reference coordinates, such as a spatial indication reference coordinate and a display coordinate, which are respectively associated with the portable electronic device 110 and the display device 120 . The first reference coordinate or spatial indication reference coordinate associated with the pointing device 110 is defined by three coordinate axes as shown in FIG. 1 , namely: X P , Y P and Z P . The second reference coordinates or display coordinates associated with the display device 120 are defined by three coordinate axes as shown in FIG. 1 , namely: X D , Y D and Z D . The screen 122 of the display device 120 is a subset of the X D Y D plane in the reference coordinates X D Y D Z D associated with the display device 120 . Therefore, the X D Y D plane can be regarded as the display plane of the display device 120 .
藉由上述位于屏幕122上的光标,用户可使用该携带式电子装置实行操控以达到特定目的,此特定目的包括在显示设备120上玩电视游戏等娱乐。为了在使用携带式电子装置时有良好的互动,当用户移动携带式电子装置110时,屏幕122上的光标应该对应着携带式电子装置110所移动的方位、方向与距离进行移动,且屏幕122也应显示出光标随着上述的移动而映像到显示设备120的屏幕122上的新位置。携带式电子装置110的方位可用该携带式电子装置110于参考坐标XPYPZP上的三个偏向角来表示,这三个偏向角分别为偏航角(yaw angle)111、俯仰角(pitch angle)112与滚转角(roll angle)113。在此,偏航角111、俯仰角112与滚转角113是采用与商用交通工具,例如船舶及飞机等,相关的立体角(spatial angle)之通用标准来定义。一般来说,偏航角111是指携带式电子装置110相对于轴ZP的转动,俯仰角112是指携带式电子装置110相对于轴YP的转动,而滚转角113则是指携带式电子装置110相对于轴XP的转动。With the above-mentioned cursor on the screen 122 , the user can use the portable electronic device to perform manipulations to achieve specific purposes, such as playing video games on the display device 120 and other entertainment. In order to have a good interaction when using the portable electronic device, when the user moves the portable electronic device 110, the cursor on the screen 122 should move corresponding to the position, direction and distance of the portable electronic device 110, and the screen 122 It should also show that the cursor is mapped to the new position on the screen 122 of the display device 120 following the above-mentioned movement. The orientation of the portable electronic device 110 can be represented by three deflection angles of the portable electronic device 110 on the reference coordinates X P Y P Z P , the three deflection angles are respectively a yaw angle (yaw angle) 111, a pitch angle (pitch angle) 112 and roll angle (roll angle) 113. Here, the yaw angle 111 , the pitch angle 112 and the roll angle 113 are defined by common standards related to commercial vehicles, such as ships and airplanes, on the spatial angle. Generally speaking, the yaw angle 111 refers to the rotation of the portable electronic device 110 relative to the axis Z P , the pitch angle 112 refers to the rotation of the portable electronic device 110 relative to the axis Y P , and the roll angle 113 refers to the rotation of the portable electronic device 110 relative to the axis Y P. The rotation of the electronic device 110 relative to the axis XP .
在图1所示的习知技术中,当携带式电子装置110的偏航角111改变时,上述位于屏幕122上的光标必须随着偏航角111的改变而相对地在水平方向上移动。图2所示为当用户将携带式电子装置110相对于轴XP逆时针旋转90°时的情况。在图2所示的另一习知技术中,当偏航角111改变时,上述位于屏幕122上的光标将对应着做垂直方向的移动。偏航角111的改变可被一陀螺仪侦测到,此陀螺仪感测携带式电子装置110相对于轴XP的角速度ωx。图1与图2显示出偏航角111相同的改变可能映像成屏幕122上光标的不同动作。因此,需要适当的一补偿机制来对携带式电子装置110的方位进行补偿,以使其能正确且合意地对应映像至显示设备120的屏幕122上的光标。在美国专利号7,158,118、7,262,760与7,414,611中(发明人皆为Liberty),『补偿』所指的是对受到重力或相对于旋转轴进行额外旋转所影响的讯号进行校正和补偿。另外,在本发明中,『比对』所指的是:藉由感测装置所生成的讯号,并减少或消除与该感测装置相关联的噪声后,以计算并取得携带式电子装置110在第一参考坐标或空间指示坐标XPYPZP上实际的偏向角。此外,『映射』所指的是:计算并转换空间指示坐标XPYPZP上的偏向角至位于第二参考坐标或显示器坐标XDYDZD上的2D显示设备120之显示平面上的光标。In the conventional technology shown in FIG. 1 , when the yaw angle 111 of the portable electronic device 110 changes, the cursor on the screen 122 must relatively move horizontally along with the change of the yaw angle 111 . FIG. 2 shows the situation when the user rotates the portable electronic device 110 counterclockwise by 90° relative to the axis X P . In another conventional technique shown in FIG. 2 , when the yaw angle 111 changes, the above-mentioned cursor on the screen 122 will move correspondingly in the vertical direction. Changes in the yaw angle 111 can be detected by a gyroscope that senses the angular velocity ω x of the portable electronic device 110 relative to the axis X P . FIG. 1 and FIG. 2 show that the same change in the yaw angle 111 may be mapped to a different movement of the cursor on the screen 122 . Therefore, an appropriate compensation mechanism is needed to compensate the orientation of the portable electronic device 110 so that it can correctly and satisfactorily correspond to the cursor mapped on the screen 122 of the display device 120 . In US Patent Nos. 7,158,118, 7,262,760, and 7,414,611 (all inventors are Liberty), "compensation" refers to correcting and compensating for signals affected by gravity or additional rotation relative to the axis of rotation. In addition, in the present invention, "comparison" refers to: use the signal generated by the sensing device and reduce or eliminate the noise associated with the sensing device to calculate and obtain the portable electronic device 110 The actual deflection angle at the first reference coordinate or spatial pointing coordinate X P Y P Z P. In addition, "mapping" refers to: calculating and transforming the deflection angle on the space indication coordinate X P Y P Z P to the display plane of the 2D display device 120 on the second reference coordinate or display coordinate X D Y D Z D cursor on the .
对使用有五轴动作传感器(可测量Ax,Ay,Az、ωY、和ωZ)的携带式电子装置进行补偿是本领域的通常知识,例如美国专利号7,158,118、7,262,760与7,414,611中(发明人皆为Liberty)提出了此种具有五轴动作传感器的携带式电子装置,且也揭露了一种补偿机制,该补偿机制使用两个重力感测装置ωY和ωZ去检测相对于Yp和Zp二轴的转动,且该补偿机制还使用三个加速度传感器Ax、Ay、和Az去检测携带式电子装置沿着参考坐标XPYPZP的三个坐标轴上的加速度。上述Liberty所提之使用有五轴动作传感器的携带式电子装置可能无法输出携带式电子装置在3D参考坐标上的偏向角。换句话说,由于五轴动作传感器中加速度传感器与重力感测装置的限制,上述Liberty所提之携带式电子装置无法立即地输出偏向角于3D参考坐标上,而只能输出至2D参考坐标上,亦即上述之使用五轴动作传感器的携带式电子装置之输出仅为2D参考坐标上之平面模式。而且,当携带式电子装置在取得动作传感器所产生的讯号时受到动态环境中外界或内部的不良干扰,尤其是沿着重力方向上经历非预期的飘移或加速度时,上述之携带式电子装置与补偿机制无法精确或适当地计算或取得该携带式电子装置的移动、角度、和方向。换句话说,当施加动态作用(dynamicactions)或额外的加速度于上述Liberty所提供的具补偿机制的携带式电子装置上,尤其是沿着或大致上与重力相平行的方向上时,上述Liberty所提供的携带式电子装置无法适当且精确地输出于空间参考坐标XPYPZP上实际的偏航角、俯仰角与滚转角,也因此将立体角映像到2D显示器参考坐标时,例如:参考坐标XDYDZD,其映像程序便会严重地受到影响并产生错误。更具体地说,由于Liberty所提供的五轴补偿方式无法直接且精确地检测或补偿相对于轴XP的转动,故相对于轴XP的转动必须从加速度传感器所侦测到的重力加速度中推得。更进一步而言,由于既有加速度传感器的限制,只有当携带式电子装置为静态时,该加速度传感器上的读值才是精确的,这是因为这些加速度传感器无法将重力加速度从其他型态的加速度区分开来所致,这些其他型态的加速度例如为向心力所产生的加速度或使用者所施加的其他型态的额外之加速度。Compensation for portable electronic devices using five-axis motion sensors (measuring Ax, Ay, Az, ω Y , and ω Z ) is common knowledge in the art, such as in U.S. Pat. Both for Liberty) proposed such a portable electronic device with a five-axis motion sensor, and also disclosed a compensation mechanism that uses two gravity sensing devices ω Y and ω Z to detect relative to Yp and Zp Two-axis rotation, and the compensation mechanism also uses three acceleration sensors Ax, Ay, and Az to detect the acceleration of the portable electronic device along the three coordinate axes of the reference coordinates X P Y P Z P. The portable electronic device mentioned above by Liberty using the five-axis motion sensor may not be able to output the deflection angle of the portable electronic device on the 3D reference coordinate. In other words, due to the limitations of the acceleration sensor and the gravity sensing device in the five-axis motion sensor, the portable electronic device mentioned above by Liberty cannot immediately output the deflection angle on the 3D reference coordinate, but can only output it on the 2D reference coordinate , that is, the output of the above-mentioned portable electronic device using the five-axis motion sensor is only a plane mode on the 2D reference coordinates. Moreover, when the portable electronic device is subjected to external or internal adverse interference in a dynamic environment when obtaining the signal generated by the motion sensor, especially when experiencing unexpected drift or acceleration along the direction of gravity, the above-mentioned portable electronic device and The compensation mechanism cannot accurately or properly calculate or obtain the movement, angle, and orientation of the portable electronic device. In other words, when dynamic actions or additional accelerations are applied to the portable electronic device with a compensation mechanism provided by Liberty, especially along or substantially parallel to the direction of gravity, the above-mentioned Liberty The provided portable electronic device cannot properly and accurately output the actual yaw angle, pitch angle and roll angle on the spatial reference coordinate X P Y P Z P , and therefore when mapping the solid angle to the 2D display reference coordinate, for example: With reference to coordinates X D Y D Z D , the mapping program can be severely affected and generate errors. More specifically, since the five-axis compensation method provided by Liberty cannot directly and accurately detect or compensate the rotation relative to the axis X P , the rotation relative to the axis X P must be obtained from the gravitational acceleration detected by the acceleration sensor. Push it. Furthermore, due to the limitations of the existing accelerometers, the readings on the accelerometers are only accurate when the portable electronic device is static, because these accelerometers cannot separate the acceleration of gravity from other types of accelerometers. These other types of acceleration are, for example, the acceleration generated by the centripetal force or other types of additional acceleration imposed by the user.
而且,习知技术只能根据由动作传感器所产生的讯号所推算的结果而在2D参考坐标上输出一相对的移动样板。例如,上述由Liberty所提出的前案只能以相对的方式输出2D移动样板,并于一屏幕上显示出一光标,以对应上述的2D相对移动样板。更具体来说,光标只能从一第一位置移动到相对于该第一位置的一第二位置。像这一种随着时间从前一位置移动到下一位置的相对移动无法精确地确定并输出下一位置,尤其是在前一位置为一错误位置的情况下,或者是在前一位置是错误地被决定为下一位置之一不正确的参考点的情况下,在此下一位置是藉由该不正确的参考点及其相对的移动方式所推得。就以意图将光标移出显示屏幕的边界而导致错误输出为例子,来清楚地解释在习知技术中藉由相对移动关系来取得移动样板的缺陷。在习知技术中的光标到达一显示器的边界,接着并超出边界或边缘一段额外的距离的情况下,当光标来到一个新的位置,不管是在显示器内或仍然在边界的外部,游标便无法展现出一正确或绝对的模式。换句话说,在到达一新的位置时,习知技术的光标并不会以绝对的方式将上述超出边界的额外距离列入考虑,反而会舍弃该超出边界的额外距离,也因为该光标使用该相对移动关系,从而造成输出一错误的下一位置。由于在显示器的边界无法取得正确的位置,再加上采用上述的相对移动关系来取得光标的下一位置,故实际的移动样板将无法被推算而得。Moreover, the conventional technology can only output a relative moving template on the 2D reference coordinates according to the result estimated from the signal generated by the motion sensor. For example, the above-mentioned prior proposal proposed by Liberty can only output the 2D moving template in a relative manner, and display a cursor on a screen to correspond to the above-mentioned 2D relative moving template. More specifically, the cursor can only move from a first position to a second position relative to the first position. A relative movement like this from one position to the next over time cannot accurately determine and output the next position, especially if the previous position was a wrong position, or if the previous position was wrong In the case where the ground is determined to be an incorrect reference point for the next position, the next position is derived from the incorrect reference point and its relative movement. Taking the example of intentionally moving the cursor beyond the border of the display screen resulting in erroneous output to clearly explain the defects of obtaining the moving template by relative moving relationship in the prior art. In the case where the cursor in the prior art reaches the border of a display, and then goes beyond the border or border for an additional distance, when the cursor comes to a new position, whether inside the display or still outside the border, the cursor will Unable to exhibit a correct or absolute pattern. In other words, when arriving at a new position, the cursor of the prior art does not take into account the above-mentioned extra distance beyond the border in an absolute manner, but discards the extra distance beyond the border, also because the cursor uses The relative movement relationship results in an erroneous next position being output. Since the correct position cannot be obtained at the border of the display, and the next position of the cursor is obtained by using the above-mentioned relative movement relationship, the actual movement template cannot be estimated.
因此,本领域迫切需要一种较先进的携带式电子装置,以应用在动作感测、计算机或导航上。该携带式电子装置搭配改良的计算或比对方法,以精确地计算并取得于空间指示坐标上实际的偏向角。对于导航或包括整合有显示器的携带式通讯装置在内的计算机之应用,携带式电子装置可能须包括以下的功能:在一动态环境且包括不良外部干扰的情况下,将此实际的角度映像成在显示器参考坐标上的一光标、一指针或一位置信息。除此之外,随着3D技术的进步且其应用范围也愈来愈广泛,该应用范围包括在显示器、互动系统及导航方面上的应用,故对于一种能将位于一3D或空间参考坐标上的偏差实时且精确输出的电子装置之需求也愈来愈迫切,此电子装置例如包括整合有多个动作传感器的一动作感测装置、一电子装置、一导航设备或一通讯装置。而且,对于一种改良的比对方法或模型之需求也愈形迫切,该比对方法或模型可以对动作传感器所发出的讯号进行处理,以矫正或去除与该动作传感器所发出的讯号或讯号总成相关联的错误讯号或噪声。此外,根据所应用的领域,所输出的在3D参考坐标上的偏差能被进一步映射或转换至能运用在2D参考坐标上的模式。Therefore, there is an urgent need in the field for a more advanced portable electronic device to be applied in motion sensing, computer or navigation. The portable electronic device is equipped with an improved calculation or comparison method to accurately calculate and obtain the actual deflection angle on the spatially indicated coordinates. For navigation or computer applications including portable communication devices with integrated displays, the portable electronic device may have to include the ability to map this actual angle to A cursor, a pointer or a position information on the display reference coordinates. In addition, with the advancement of 3D technology and its wider range of applications, the range of applications includes applications in displays, interactive systems and navigation, so for a 3D or spatial reference coordinate The demand for an electronic device that can output real-time and accurate deviations on the sensor is becoming more and more urgent. Such an electronic device includes, for example, a motion sensing device integrated with multiple motion sensors, an electronic device, a navigation device, or a communication device. Moreover, there is an increasingly urgent need for an improved comparison method or model that can process signals from a motion sensor to correct or remove signals or signals that are inconsistent with the motion sensor. Assemblies associated false signals or noise. Furthermore, depending on the field of application, the output deviations on the 3D reference coordinates can be further mapped or converted to a model that can be used on the 2D reference coordinates.
发明内容Contents of the invention
本发明的其中一目的在于提供一种电子装置,该电子装置使用一九轴动作感测模块,此电子装置例如是应用在计算机、动作感测或导航上。此电子装置包括一加速度传感器、一磁力计与一转动传感器,加速度传感器是用以量测或侦测轴向加速度Ax、Az、Ay,磁力计是用以量测或侦测磁力Mx,My,Mz,而转动传感器则是用以量测或侦测角速度ωx、ωy、ωz。藉此,能取得包括偏向角在内的结果偏差(resulting deviation),该偏向角包括电子装置在一动态环境中进行移动和转动时,其于一空间指示参考坐标上的偏航角、俯仰角与滚转角。而且,上述之包括偏向角在内的结果偏差能以绝对的方式取得并输出,亦即能反应本发明的电子装置在空间指示参考坐标上实际的移动和转动,且较佳能排除动态环境中的不良外部干扰。One of the objectives of the present invention is to provide an electronic device using a nine-axis motion sensing module. The electronic device is used in computers, motion sensing or navigation, for example. The electronic device includes an acceleration sensor, a magnetometer and a rotation sensor. The acceleration sensor is used to measure or detect the axial acceleration Ax, Az, Ay, and the magnetometer is used to measure or detect the magnetic force Mx, My, Mz, and the rotation sensor is used to measure or detect the angular velocity ω x , ω y , ω z . Thereby, the resulting deviation including the yaw angle including the yaw angle and the pitch angle on a spatially indicated reference coordinate when the electronic device moves and rotates in a dynamic environment can be obtained. and roll angle. Moreover, the above-mentioned result deviation including the deflection angle can be obtained and output in an absolute manner, that is, it can reflect the actual movement and rotation of the electronic device of the present invention on the space indication reference coordinates, and it is better to exclude the deviation in the dynamic environment. Bad external interference.
本发明的另外一目的在于提供一种改良的比对方法或模型,该比对方法能改进随着时间所累积的错误讯号及噪声,这些错误讯号及噪声是与多个动作传感器所发出的讯号相关联。这些动作传感器所发出的讯号包括在动态环境中加速度传感器Ax、Az、Ay所产生的讯号,磁力计Mx,My,Mz所产生的讯号,以及陀螺仪ωx、ωy、ωz所产生的讯号。换句话说,累积的错误讯号可以被消除或校正,其中这些累积的错误讯号是与一动作感测模块所发出的讯号总成相关联,且该动作感测模块包括多个动作传感器,这些动作传感器是用以侦测相对应于参考坐标上之不同轴的移动和转动。Another object of the present invention is to provide an improved comparison method or model, which can improve the error signal and noise accumulated over time with the signals emitted by multiple motion sensors Associated. The signals generated by these motion sensors include the signals generated by the accelerometers Ax, Az, Ay in the dynamic environment, the signals generated by the magnetometers Mx, My, Mz, and the gyroscopes ω x , ω y , ω z signal. In other words, the accumulated error signals can be eliminated or corrected, wherein these accumulated error signals are associated with the signal assembly sent by a motion sensing module, and the motion sensing module includes a plurality of motion sensors, the motions Sensors are used to detect movement and rotation relative to different axes on the reference coordinates.
本发明的又一目的在于提供一改良的比对方法,以正确地计算并输出一结果偏差,该结果偏差包括一组偏向角,而这些偏向角则包括在一空间指示坐标上的一偏航角、一俯仰角与一滚转角,该偏航角、俯仰角与滚转角是对应到该空间指示坐标上的三个互相垂直的坐标轴。藉由对转动传感器所发出的与角速度相关的讯号、加速度传感器所发出的与轴向加速度相关的讯号及磁力计所发出的与磁力相关的讯号进行比对,可精确地取得并输出上述的偏向角,而这些偏向角则可在进一步地映射至不同于该空间指示坐标的另一个参考坐标上。Yet another object of the present invention is to provide an improved comparison method to correctly calculate and output a resulting deviation comprising a set of deflection angles comprising a yaw on a spatially indicated coordinate angle, a pitch angle and a roll angle, the yaw angle, pitch angle and roll angle are three mutually perpendicular coordinate axes corresponding to the spatial indication coordinates. By comparing the signals related to angular velocity sent by the rotation sensor, the signals related to axial acceleration sent by the acceleration sensor and the signals related to magnetic force sent by the magnetometer, the above-mentioned deviation can be accurately obtained and output angles, and these deflection angles can be further mapped to another reference coordinate different from the spatially indicated coordinates.
于本发明的另一个实施例中,在存有干扰的情况下(此干扰是由电子装置的用户或从周遭环境中引入,例如是外部电磁场),本发明提供一独特的更新程序,此更新程序包括一数据相关模型(data association model),以智能地处理从一动作感测模块所接收的讯号,以在3D参考坐标输出一结果偏差,并将干扰所引发的负面效用削减或删除。In another embodiment of the present invention, the present invention provides a unique update procedure in the presence of interference (introduced by the user of the electronic device or from the surrounding environment, such as external electromagnetic fields), the update The program includes a data association model to intelligently process signals received from a motion sensing module to output a result deviation in 3D reference coordinates and reduce or delete negative effects caused by interference.
本发明的再一目的在于提供一种映射方法,以将上述的位于一空间指示参考坐标上的偏向角映射到一显示器坐标上,这些偏向角较佳是分别对应到该空间指示参考坐标的三个互相垂直的坐标轴,亦即:偏航角、俯仰角与滚转角,而显示器坐标可位于电子装置的外部或与电子装置相整合。藉由上述的映射,可在异于空间指示参考坐标的显示器坐标上取得一移动样板,亦即将属于该结果偏差的偏向角映射或转换至该移动样板。Another object of the present invention is to provide a mapping method to map the above-mentioned deflection angles located on a spatial indication reference coordinate to a display coordinate. These deviation angles are preferably respectively corresponding to the three dimensions of the spatial indication reference coordinate coordinate axes perpendicular to each other, namely: yaw angle, pitch angle and roll angle, and the display coordinates can be located outside the electronic device or integrated with the electronic device. Through the above-mentioned mapping, a moving template can be obtained on the display coordinates different from the spatial indication reference coordinates, that is, the deflection angle belonging to the result deviation can be mapped or converted to the moving template.
在本发明的一实施例中,提供一种电子装置,此电子装置可产生3D偏向角并例如是应用在计算机、动作感测或导航上。电子装置使用一九轴动作感测模块,并藉由一改良的比对方法以删除该九轴动作感测模块所产生的累积错误讯号,从而取得位于一空间指示参考坐标上并对应于该电子装置的移动与转动的偏向角。本发明所提供的比对方法或比对模型,可藉由对上述九轴动作感测模块所产生的讯号进行比对,而取得并以绝对的方式输出电子装置的结果偏差的偏向角,该九轴动作感测模块可侦测到电子装置对应于XP轴、YP轴与ZP轴的转动速度或角速度,也可侦测到电子装置沿着XP轴、YP轴与ZP轴的轴向加速度,且可侦测到电子装置沿着XP轴、YP轴与ZP轴的周围磁力(ambient magnetism),此磁力例如是地球磁场或来自其他星球的磁场。换句话说,本发明能消除或减少在一动态环境中所产生的累积错误讯号与噪声,以精确地输出电子装置在一3D空间指示参考坐标上的偏向角,该偏向角包括偏航角、俯仰角与滚转角。上述的动态环境包括连续的移动、转动、受到外部重力的影响、磁场及在多个方向上额外的加速度,或者包括随着时间而变化的非线性移动和转动。而且,位于该3D空间指示参考坐标上且经过补偿并精确输出的偏向角,能更进一步地被映射或转换到另一个参考坐标中,此参考坐标例如为上述的显示器坐标,其例如为一2D参考坐标。In one embodiment of the present invention, an electronic device is provided. The electronic device can generate a 3D deflection angle and be used in computer, motion sensing or navigation, for example. The electronic device uses a nine-axis motion sensing module, and uses an improved comparison method to delete the accumulated error signals generated by the nine-axis motion sensing module, so as to obtain a spatial indication reference coordinate corresponding to the electronic device. The deflection angle of movement and rotation of the device. The comparison method or comparison model provided by the present invention can obtain and output the deflection angle of the result deviation of the electronic device in an absolute manner by comparing the signals generated by the above-mentioned nine-axis motion sensing module. The nine-axis motion sensing module can detect the rotation speed or angular velocity of the electronic device corresponding to the X P axis, Y P axis and Z P axis, and can also detect the electronic device along the X P axis, Y P axis and Z P axis. The axial acceleration of the axis, and the ambient magnetism of the electronic device along the X P axis, the Y P axis and the Z P axis can be detected, such as the earth's magnetic field or the magnetic field from other planets. In other words, the present invention can eliminate or reduce the cumulative error signal and noise generated in a dynamic environment, so as to accurately output the deflection angle of the electronic device on a 3D space indicating reference coordinate, the deflection angle includes yaw angle, pitch and roll angles. Such dynamic environments include continuous movement, rotation, influence by external gravity, magnetic fields, and additional accelerations in multiple directions, or non-linear movements and rotations that vary over time. Moreover, the deflection angle that is located on the 3D space indication reference coordinate and is compensated and accurately output can be further mapped or transformed into another reference coordinate, such as the above-mentioned display coordinates, which is, for example, a 2D Reference coordinates.
在本发明的另一实施例中,提供一种电子装置,此电子装置使用一九轴动作感测模块。其中,该电子装置的九轴动作感测模块包括至少一陀螺仪、至少一加速度传感器与至少一磁力计。在本发明的一较佳实施例中,九轴动作感测模块包括一转动传感器、一加速度传感器与一磁力计,此转动传感器可用于检测角速度ωx、ωy、ωz并产生相对应的讯号,加速度传感器可用于检测轴向加速度Ax,Ay,Az并产生相对应的讯号,而磁力计可用于检测磁力Mx,My,Mz并产生相对应的讯号。所属技术领域的技术人员应可理解,在另一实施例中,上述转动传感器可能包括三个陀螺仪,其分别对应到电子装置在3D空间参考坐标上的角速度ωx、ωy、ωz;此外,上述加速度传感器可包括三个加速度传感器,其分别对应到电子装置在3D空间参考坐标上的轴向加速度Ax,Ay,Az;另外,上述磁力计可包括三个磁力传感器(magnetic sensors),其分别对应到电子装置在3D空间参考坐标上的磁力Mx,My,Mz,上述磁力传感器例如为磁阻抗(magneto-impedance)传感器或磁抗(magneto-resistive)传感器。转动传感器侦测电子装置于一与该电子装置相关联的参考坐标上的转动,并提供带有一转动率或一角速度信息的输出讯号。上述之带有角速度信息的输出讯号包括三个部份,其分别对应到参考坐标的第一轴、第二轴与第三轴,亦即3D空间指示坐标的Xp轴、Yp轴与Zp轴。加速度传感器侦测电子装置于空间参考坐标上的轴向加速度,并提供一带有加速度信息的输出讯号,该空间参考坐标例如为一3D指示参考坐标。上述之带有加速度信息的输出讯号包括三个部份,其分别对应到参考坐标的第一轴、第二轴与第三轴,亦即3D空间指示坐标的Xp轴、Yp轴与Zp轴。磁力计侦测电子装置于空间参考坐标上的磁力,并提供一带有磁力信息的输出讯号,该空间参考坐标例如为一3D参考坐标。上述之带有磁力信息的输出讯号包括三个部份,其分别对应到参考坐标的第一轴、第二轴与第三轴,亦即3D空间指示坐标的Xp轴、Yp轴与Zp轴。上述之3D空间指示坐标的Xp轴、Yp轴与Zp轴也可被简称为X轴、Y轴与Z轴。In another embodiment of the present invention, an electronic device is provided, and the electronic device uses a nine-axis motion sensing module. Wherein, the nine-axis motion sensing module of the electronic device includes at least one gyroscope, at least one acceleration sensor and at least one magnetometer. In a preferred embodiment of the present invention, the nine-axis motion sensing module includes a rotation sensor, an acceleration sensor and a magnetometer. The rotation sensor can be used to detect angular velocities ω x , ω y , ω z and generate corresponding For signals, the acceleration sensor can be used to detect axial acceleration Ax, Ay, Az and generate corresponding signals, while the magnetometer can be used to detect magnetic forces Mx, My, Mz and generate corresponding signals. Those skilled in the art should understand that, in another embodiment, the above-mentioned rotation sensor may include three gyroscopes, which respectively correspond to the angular velocities ω x , ω y , and ω z of the electronic device on the 3D space reference coordinates; In addition, the above-mentioned acceleration sensor may include three acceleration sensors, which respectively correspond to the axial accelerations Ax, Ay, and Az of the electronic device on the 3D space reference coordinates; in addition, the above-mentioned magnetometer may include three magnetic sensors (magnetic sensors), They respectively correspond to the magnetic forces Mx, My, and Mz of the electronic device on the 3D space reference coordinates. The above-mentioned magnetic sensors are, for example, magneto-impedance sensors or magneto-resistive sensors. The rotation sensor detects the rotation of the electronic device on a reference coordinate associated with the electronic device, and provides an output signal with a rotation rate or an angular velocity information. The above-mentioned output signal with angular velocity information includes three parts, which respectively correspond to the first axis, the second axis and the third axis of the reference coordinates, that is, the Xp axis, the Yp axis and the Zp axis of the 3D space indicating coordinates. The acceleration sensor detects the axial acceleration of the electronic device on a spatial reference coordinate, such as a 3D indication reference coordinate, and provides an output signal with acceleration information. The above-mentioned output signal with acceleration information includes three parts, which respectively correspond to the first axis, the second axis and the third axis of the reference coordinates, that is, the Xp axis, the Yp axis and the Zp axis of the 3D space indicating coordinates. The magnetometer detects the magnetic force of the electronic device on a spatial reference coordinate, such as a 3D reference coordinate, and provides an output signal with magnetic force information. The above-mentioned output signal with magnetic force information includes three parts, which respectively correspond to the first axis, the second axis and the third axis of the reference coordinates, that is, the Xp axis, the Yp axis and the Zp axis of the 3D space indicating coordinates. The above-mentioned Xp axis, Yp axis and Zp axis of the 3D space indicating coordinates may also be referred to as X axis, Y axis and Z axis for short.
在本发明的另一实施例中,提供一种补偿方法,该补偿方法是用以补偿上述九轴动作感测模块所发出的讯号之累积误差,此九轴动作感测模块是位于与一空间指示参考坐标相关的动态环境。在一实施例中,是藉由一硬件处理器来执行或处理该补偿方法。藉由执行一数据比对,亦即将用来测量角速度的转动传感器所发出的讯号、用来测量轴向加速度的加速度传感器所发出的讯号与用来测量磁力的磁力计所发出的讯号相比对,此硬件处理器可以用来补偿与结果偏差相关的累计误差,此累计误差是源自于:上述之3D指示装置在空间指示坐标及动态环境下进行移动和转动时,其九轴动作感测模块所发出的讯号。也因此,在动态环境下,相应于在3D空间指示坐标下的3D指示装置之移动与转动的结果误差可以精确地被取得。In another embodiment of the present invention, a compensation method is provided. The compensation method is used to compensate the cumulative error of the signal sent by the above-mentioned nine-axis motion sensing module. The nine-axis motion sensing module is located in a space with Indicates the dynamic environment relative to the reference coordinates. In one embodiment, the compensation method is executed or processed by a hardware processor. By performing a data comparison, that is, comparing the signal from the rotation sensor used to measure the angular velocity, the signal from the acceleration sensor used to measure the axial acceleration with the signal from the magnetometer used to measure the magnetic force , this hardware processor can be used to compensate the cumulative error related to the result deviation. The signal sent by the module. Therefore, in a dynamic environment, the resulting error corresponding to the movement and rotation of the 3D pointing device at the pointing coordinates in the 3D space can be accurately obtained.
在本发明的另一实施例中,提供一种取得一结果偏差的方法,此结果偏差包括3D指示装置位于一空间参考坐标中的偏向角,在3D指示装置中装设有一九轴动作感测模块,且此3D指示装置是在上述的空间参考坐标中的一动态环境中进行移动和转动。上述之取得结果偏差的方法包括下述的步骤:首先,取得一先前状态(previous state),此先前状态与先前角速度(previous angular velocities)ωx、ωy、ωz相关联,此先前角速度ωx、ωy、ωz是由在前一时段T-1时的九轴动作感测模块所发出的动作感测讯号(motion sensorsignals)中获取;再来,藉由取得量测角速度ωx、ωy、ωz,以取得九轴动作感测模块的现今状态,此量测角速度ωx、ωy、ωz是由在一现今时段T的动作感测讯号中取得;之后,藉由取得量测轴向加速度Ax,Ay,Az与量测磁力Mx,My,Mz,以取得九轴动作感测模块的一量测状态,此量测轴向加速度Ax,Ay,Az与量测磁力Mx,My,Mz是由在现今时段T的动作感测讯号中取得,同时藉由现今状态的量测角速度ωx、ωy、ωz以计算预计轴向加速度Ax’,Ay’,Az’与预计磁力Mx’,My’,Mz’;接着,藉由比对九轴动作感测模块的现今状态与量测状态,以取得九轴动作感测模块的一更新状态;然后,计算并转换九轴动作感测模块的更新状态至所述的结果偏差,此结果偏差包括3D指示装置于空间参考坐标中的偏向角。In another embodiment of the present invention, a method for obtaining a result deviation, the result deviation includes the deflection angle of the 3D pointing device in a spatial reference coordinate, a nine-axis motion sense is installed in the 3D pointing device measurement module, and the 3D pointing device moves and rotates in a dynamic environment in the above-mentioned spatial reference coordinates. The above-mentioned method for obtaining result deviations includes the following steps: First, obtain a previous state (previous state), which is associated with previous angular velocities (previous angular velocities) ω x , ω y , ω z , and the previous angular velocities ω x , ω y , ω z are obtained from the motion sensor signals (motion sensor signals) sent by the nine-axis motion sensing module in the previous time period T-1; then, by obtaining the measured angular velocity ω x , ω y , ω z , to obtain the current state of the nine-axis motion sensing module, the measured angular velocity ω x , ω y , ω z is obtained from the motion sensing signal in a current time period T; after that, by obtaining the Measure the axial acceleration Ax, Ay, Az and measure the magnetic force M x , M y , M z to obtain a measurement state of the nine-axis motion sensing module. The measured axial acceleration Ax, Ay, Az and the measurement The magnetic force M x , M y , M z is obtained from the motion sensing signal in the current period T, and at the same time, the estimated axial acceleration Ax', Ay is calculated by the measured angular velocity ω x , ω y , ω z in the current state ', Az' and the expected magnetic force M x ', M y ', M z '; then, by comparing the current state of the nine-axis motion sensing module with the measurement state, an updated state of the nine-axis motion sensing module is obtained ; Then, calculate and convert the updated state of the nine-axis motion sensing module to the result deviation, the result deviation includes the deflection angle of the 3D pointing device in the spatial reference coordinates.
在本发明的另一实施例中,提供一种映射方法,此映射方法用以将偏向角转换至一显示器的一显示器坐标上,此显示器具有一预定的屏幕尺寸,且上述的偏向角是与一3D指示装置在一空间参考坐标中的移动和转动相关联。在一实施例中,是将在一空间参考坐标上的偏向角,包括偏航角、俯仰角与滚转角,映射或转换至位于一显示器坐标上且较佳是位于一2D参考坐标上进行移动的指示对象,此指示对象例如为指针。此映射方法包括下述的步骤:藉由计算与显示器坐标相关联的一预定敏感度以取得显示器坐标的边界信息,并藉上述的偏向角与边界信息而执行在显示器坐标上的角度与距离的转换。In another embodiment of the present invention, a mapping method is provided for converting the deflection angle to a display coordinate of a display having a predetermined screen size, and the above-mentioned deflection angle is the same as Movement and rotation of a 3D pointing device in a spatial reference coordinate are associated. In one embodiment, the yaw angle, including yaw angle, pitch angle and roll angle, on a spatial reference coordinate is mapped or converted to a display coordinate, preferably a 2D reference coordinate for movement The referent of , such as a pointer. The mapping method includes the following steps: obtaining boundary information of the display coordinates by calculating a predetermined sensitivity associated with the display coordinates, and performing an angle and distance calculation on the display coordinates by using the above-mentioned deflection angle and boundary information convert.
在本发明的另一实施例中,提供一种取得一结果偏差的方法,此结果偏差包括3D指示装置位于一空间参考坐标中的偏向角,在3D指示装置中装设有一九轴动作感测模块,且此3D指示装置是在上述的空间参考坐标中的一动态环境中进行移动和转动。上述之取得结果偏差的方法包括下述的步骤:首先,取得九轴动作感测模块的一先前状态,此先前状态包括一初始值组(initial-value set),此初始值组与先前角速度相关联,此先前角速度是由在前一时段T-1时的九轴动作感测模块所发出的动作感测讯号中获取;再来,藉由取得量测角速度ωx、ωy、ωz,以取得九轴动作感测模块的现今状态,此量测角速度ωx、ωy、ωz是由在一现今时段T的动作感测讯号中取得;之后,藉由取得量测轴向加速度Ax,Ay,Az,以取得九轴动作感测模块的一量测状态,此量测轴向加速度Ax,Ay,Az是由在现今时段T中的九轴动作感测模块所发出的动作感测讯号中取得,同时藉由现今状态的量测角速度ωx、ωy、ωz以计算预计轴向加速度Ax’,Ay’,Az’;接着,藉由比对九轴动作感测模块的现今状态与量测状态,以取得九轴动作感测模块的一第一更新状态;之后,藉由取得并运算一量测偏航角以取得九轴动作感测模块的一量测状态,此量测偏航角是由九轴动作感测模块在一现今时段T所发出的动作感测讯号中取得,并基于九轴动作感测模块的第一更新状态而运算一预计偏航角;然后,藉由比对九轴动作感测模块的现今状态与量测状态,以取得九轴动作感测模块的一第二更新状态;接着,计算并转换九轴动作感测模块的第二更新状态至所述的结果偏差,此结果偏差包括3D指示装置于空间参考坐标中的偏向角。In another embodiment of the present invention, a method for obtaining a result deviation, the result deviation includes the deflection angle of the 3D pointing device in a spatial reference coordinate, a nine-axis motion sense is installed in the 3D pointing device measurement module, and the 3D pointing device moves and rotates in a dynamic environment in the above-mentioned spatial reference coordinates. The above-mentioned method for obtaining the result deviation includes the following steps: first, obtain a previous state of the nine-axis motion sensing module, the previous state includes an initial-value set, and the initial-value set is related to the previous angular velocity In conjunction, the previous angular velocity is obtained from the motion sensing signal sent by the nine-axis motion sensing module in the previous period T-1; then, by obtaining the measured angular velocity ω x , ω y , ω z , to To obtain the current state of the nine-axis motion sensing module, the measured angular velocities ω x , ω y , and ω z are obtained from motion sensing signals in a current time period T; after that, by obtaining the measured axial acceleration Ax, Ay, Az, to obtain a measurement state of the nine-axis motion sensing module, the measured axial acceleration Ax, Ay, Az is the motion sensing signal sent by the nine-axis motion sensing module in the current time period T At the same time, the estimated axial acceleration Ax', Ay', Az' is calculated by measuring the angular velocity ω x , ω y , ω z in the current state; then, by comparing the current state of the nine-axis motion sensing module with The measurement state is to obtain a first update state of the nine-axis motion sensing module; after that, by obtaining and computing a measured yaw angle to obtain a measurement state of the nine-axis motion sensing module, the measured yaw angle The yaw angle is obtained from the motion sensing signal sent by the nine-axis motion sensing module in a current time period T, and an estimated yaw angle is calculated based on the first update state of the nine-axis motion sensing module; then, by comparing For the current state and measurement state of the nine-axis motion sensing module, to obtain a second update state of the nine-axis motion sensing module; then, calculate and convert the second update state of the nine-axis motion sensing module to the above-mentioned The result deviation, the result deviation includes the deflection angle of the 3D pointing device in the spatial reference coordinates.
在本发明的另一实施例中,提供一种3D指示装置,其包括一方位传感器、一转动传感器、及一运算传感器。方位传感器产生与3D指示装置的一方位相关联的一方位输出,且该3D指示装置的方位是与地球相关联的一全球参考坐标的三轴相关联。转动传感器产生与3D指示装置的一转动相关联的一转动输出,且3D指示装置的转动是与3D指示装置相关联的一空间参考坐标的三轴相关联。运算处理器使用方位输出与转动输出以产生一转换输出,该转换输出是与一显示设备相关联的一固定参考坐标相关联。In another embodiment of the present invention, a 3D pointing device is provided, which includes an orientation sensor, a rotation sensor, and an operation sensor. The orientation sensor generates an orientation output associated with an orientation of the 3D pointing device, and the orientation of the 3D pointing device is associated with three axes of a global reference coordinate associated with the earth. The rotation sensor generates a rotation output associated with a rotation of the 3D pointing device, and the rotation of the 3D pointing device is associated with three axes of a spatial reference coordinate associated with the 3D pointing device. The arithmetic processor uses the orientation output and the rotation output to generate a transformation output that is associated with a fixed reference coordinate associated with a display device.
在本发明的另一实施例中,提供一种补偿3D指示装置之转动的方法,此方法可能包括下述步骤。产生与3D指示装置的一方位相关联的一方位输出,且该3D指示装置的方位是与地球相关联的一全球参考坐标的三轴相关联。产生与3D指示装置的一转动相关联的一转动输出,且3D指示装置的方位是与该3D指示装置相关联的一空间参考坐标的三轴相关联。In another embodiment of the present invention, a method for compensating the rotation of a 3D pointing device is provided, and the method may include the following steps. An orientation output is generated that is associated with an orientation of the 3D pointing device, and the orientation of the 3D pointing device is associated with three axes of a global reference coordinate associated with the earth. A rotational output associated with a rotation of the 3D pointing device is generated, and the orientation of the 3D pointing device is associated with three axes of a spatial reference coordinate associated with the 3D pointing device.
为让本发明之上述目的、特征和优点更能明显易懂,下文将以实施例并配合所附图示,作详细说明如下。In order to make the above objects, features and advantages of the present invention more comprehensible, the following will be described in detail with examples and accompanying figures.
附图说明Description of drawings
图1所绘示为在2D参考坐标中且具有一五轴动作传感器的一习知技术。FIG. 1 shows a conventional technique in 2D reference coordinates with a 5-axis motion sensor.
图2所绘示为图1之具有五轴动作传感器的习知技术,其绕着Xp轴进行转动,且受到进一步的动态交互作用。FIG. 2 shows the conventional technology of FIG. 1 with a five-axis motion sensor, which is rotated about the Xp axis and subjected to further dynamic interactions.
图3所绘示为本发明的一实施例的一电子装置的爆炸图,此电子装置例如为一指示装置且具有一九轴动作感测模块。FIG. 3 is an exploded view of an electronic device according to an embodiment of the present invention. The electronic device is, for example, a pointing device and has a nine-axis motion sensing module.
图4所绘示为本发明的一实施例的一电子装置之方块图,其绘示出电子装置的硬件零件。FIG. 4 is a block diagram of an electronic device according to an embodiment of the present invention, which shows hardware components of the electronic device.
图5所绘示为本发明的另一实施例的一电子装置,此电子装置例如为一指示装置且具有一九轴动作感测模块与一外部处理器。FIG. 5 shows an electronic device according to another embodiment of the present invention. The electronic device is, for example, a pointing device and has a nine-axis motion sensing module and an external processor.
图6所绘示为本发明的另一实施例的一电子装置的爆炸图,此电子装置例如为一智能型手机或导航设备,并具有一九轴动作感测模块。FIG. 6 is an exploded view of an electronic device according to another embodiment of the present invention. The electronic device is, for example, a smart phone or a navigation device, and has a nine-axis motion sensing module.
图7所绘示为本发明之一实施例的取得一电子装置之结果偏差的方法的流程图,此电子装置可在一空间参考坐标中进行移动与转动。FIG. 7 is a flowchart of a method for obtaining a result deviation of an electronic device according to an embodiment of the present invention. The electronic device can move and rotate in a spatial reference coordinate.
图8所绘示为本发明之另一实施例的取得结果偏差的方法之流程图,此方法包括将结果偏差映像至一电子装置的一显示器上。FIG. 8 is a flowchart of a method for obtaining a result deviation according to another embodiment of the present invention. The method includes mapping the result deviation to a display of an electronic device.
图9所绘示为将本发明的3D指示装置的结果偏差的偏向角进行映射的一实施例。FIG. 9 shows an embodiment of mapping the deflection angle of the result deviation of the 3D pointing device of the present invention.
图10所绘示为一说明性的流程图,其绘示出本发明之另一实施例之取得电子装置之结果偏差的方法。FIG. 10 is an illustrative flowchart illustrating a method for obtaining result deviations of an electronic device according to another embodiment of the present invention.
图11所绘示为一说明性的流程图,其绘示出本发明之另一实施例之取得电子装置之结果偏差的方法,此方法包括将结果偏差映像至一电子装置的一显示器上。FIG. 11 is an illustrative flowchart illustrating a method for obtaining result deviations of an electronic device according to another embodiment of the present invention. The method includes mapping the result deviations to a display of an electronic device.
图12所绘示为一说明性的流程图,其绘示出本发明之另一实施例之取得电子装置之结果偏差的方法。FIG. 12 is an illustrative flowchart illustrating a method for obtaining result deviations of an electronic device according to another embodiment of the present invention.
图13所绘示为一流程图,其绘示出本发明之一实施例之补偿3D指示装置之旋转的方法。FIG. 13 is a flowchart illustrating a method for compensating the rotation of a 3D pointing device according to an embodiment of the present invention.
图14、图15、与图16分别绘示出本发明之三种不同实施例中的3D指示装置之示意图。FIG. 14 , FIG. 15 , and FIG. 16 respectively show schematic diagrams of 3D pointing devices in three different embodiments of the present invention.
具体实施方式detailed description
图3所绘示为本发明之一实施例的电子装置300(例如:指示装置)的爆炸图,此电子装置300能在一空间指示参考坐标(例如:3D参考坐标)及一动态环境中进行移动和转动。此空间指示参考坐标类似于图1与图2所绘示的参考坐标XPYPZP。相对于时间轴,电子装置300在上述的空间指示参考坐标与动态环境中所进行的移动和转动可为连续且非线性地。在此,“动态”所指的是移动或一般所指的运动(motion)。FIG. 3 is an exploded view of an electronic device 300 (for example, a pointing device) according to an embodiment of the present invention. This electronic device 300 can operate in a space indicating reference coordinates (for example: 3D reference coordinates) and a dynamic environment. Move and turn. The spatial indication reference coordinates are similar to the reference coordinates X P Y P Z P shown in FIGS. 1 and 2 . Relative to the time axis, the movement and rotation of the electronic device 300 in the above-mentioned space reference coordinates and dynamic environment may be continuous and non-linear. Here, "dynamic" refers to movement or motion in general.
电子装置包括一上盖310、一印刷电路板(PCB)340、一转动传感器342、一加速度传感器344、一磁力计345、一数据传输单元346、一运算处理器348、一下盖320及一电池组322。上盖310包括数个控制钮312,以供使用者于遥控时发出预定的指令。在一实施例中,壳体330包括上盖310与下盖320。于上述的动态环境中,壳体330在受到使用者的操控或受到任何方向之外力的情况下,壳体330能于空间指示参考坐标中进行移动和转动。如图3所示,在一实施例中,转动传感器342、加速度传感器344、磁力计345、数据传输单元346及运算处理器348都可依附在印刷电路板340上。印刷电路板340是被壳体330所包覆,此印刷电路板340包括至少一基板,此基板具有一长侧边,此长侧边是大致平行于壳体330的长侧面。此外,外加的电池组322提供电力给整个电子装置300。The electronic device includes an upper cover 310, a printed circuit board (PCB) 340, a rotation sensor 342, an acceleration sensor 344, a magnetometer 345, a data transmission unit 346, an arithmetic processor 348, a lower cover 320 and a battery Group 322. The upper cover 310 includes a plurality of control buttons 312 for the user to issue predetermined commands during remote control. In one embodiment, the casing 330 includes an upper cover 310 and a lower cover 320 . In the above-mentioned dynamic environment, when the housing 330 is manipulated by the user or subjected to any external force, the housing 330 can move and rotate in the spatially indicated reference coordinates. As shown in FIG. 3 , in one embodiment, the rotation sensor 342 , the acceleration sensor 344 , the magnetometer 345 , the data transmission unit 346 and the arithmetic processor 348 can all be attached to the printed circuit board 340 . The printed circuit board 340 is covered by the casing 330 , and the printed circuit board 340 includes at least one substrate. The substrate has a long side, and the long side is substantially parallel to the long side of the casing 330 . In addition, the external battery pack 322 provides power to the entire electronic device 300 .
而且,在一实施例中,上述的动态环境为本发明之电子装置300所处的环境,其包括对本发明之电子装置300所产生的不良外部干扰。在其中一例中,不良外部干扰包括不良轴向加速度,此不良轴向加速度是由重力以外的不良外力所造成。在其他的例子中,不良外部干扰包括由不良电磁场所产生的不良磁力。Moreover, in one embodiment, the aforementioned dynamic environment is the environment in which the electronic device 300 of the present invention is located, which includes adverse external disturbances to the electronic device 300 of the present invention. In one example, the undesired external disturbance includes undesired axial acceleration caused by an undesired external force other than gravity. In other examples, undesirable external disturbances include undesirable magnetic forces produced by undesirable electromagnetic fields.
图4所绘示为本发明的一实施例的电子装置300之方块图,其绘示出电子装置300的硬件零件。此电子装置300包括一九轴动作感测模块302与一处理及传输模块304,此九轴动作感测模块302包括转动传感器342、加速度传感器344与磁力计345,而处理及传输模块304包括数据传输单元346与运算处理器348。FIG. 4 is a block diagram of an electronic device 300 according to an embodiment of the present invention, which shows hardware components of the electronic device 300 . The electronic device 300 includes a nine-axis motion sensing module 302 and a processing and transmission module 304, the nine-axis motion sensing module 302 includes a rotation sensor 342, an acceleration sensor 344 and a magnetometer 345, and the processing and transmission module 304 includes data The transmission unit 346 and the arithmetic processor 348 .
在此,“九轴”所指的是三个加速度ωx,ωy,ωz、三个轴向加速度Ax,Ay,Az、三个磁场Mx,My,Mz。九轴动作感测模块302中的动作传感器342用以侦测并产生第一讯号组,此第一讯号组包括角速度ωx,ωy,ωz,角速度ωx,ωy,ωz是指电子装置300于移动及转动时,相对于空间参考坐标的三个互相垂直的坐标轴XP,YP,ZP的角速度。上述的角速度ωx,ωy,ωz是分别对应到三个坐标轴XP,YP,ZP。加速度传感器344用以侦测并产生第二讯号组,此第二讯号组包括轴向加速度Ax,Ay,Az,轴向加速度Ax,Ay,Az是指电子装置300于移动及转动时,沿着空间参考坐标的三个互相垂直的坐标轴XP,YP,ZP的轴向加速度。上述的轴向加速度Ax,Ay,Az是分别对应到三个坐标轴XP,YP,ZP。磁力计345用以侦测并产生第三讯号组,此第三讯号组包括磁场Mx,My,Mz,磁场Mx,My,Mz是指电子装置300于移动及转动时,沿着空间参考坐标的三个互相垂直的坐标轴XP,YP,ZP所承受的磁场。上述的磁场Mx,My,Mz是代表电子装置300的周围磁场(ambient magnetic field,例如:地球磁场)之方向与强度,上述的磁场Mx,My,Mz分别对应到三个坐标轴XP,YP,ZP。所属技术领域的技术人员应可了解,上述的『九轴』并非一定需在特定方位成垂直,其也可在不同的方位做转动。本发明所揭露的上述坐标系统仅是用于说明,其他位于不同的方位及/或具不同标号的坐标轴也可以适用于本发明。Here, "nine axes" refers to three accelerations ω x , ω y , ω z , three axial accelerations Ax, Ay, Az, and three magnetic fields Mx, My, Mz. The motion sensor 342 in the nine-axis motion sensing module 302 is used to detect and generate a first signal group. The first signal group includes angular velocities ω x , ω y , ω z . The angular velocities ω x , ω y , ω z refer to The angular velocity of the three mutually perpendicular coordinate axes X P , Y P , and Z P relative to the spatial reference coordinates when the electronic device 300 moves and rotates. The aforementioned angular velocities ω x , ω y , and ω z are respectively corresponding to the three coordinate axes X P , Y P , and Z P . The acceleration sensor 344 is used to detect and generate a second signal group. The second signal group includes axial acceleration Ax, Ay, Az. The axial acceleration of the three mutually perpendicular coordinate axes X P , Y P , Z P of the spatial reference coordinates. The above-mentioned axial accelerations Ax, Ay, and Az are respectively corresponding to the three coordinate axes X P , Y P , and Z P . The magnetometer 345 is used to detect and generate a third signal group, the third signal group includes the magnetic field Mx, My, Mz, the magnetic field Mx, My, Mz refers to the position of the electronic device 300 along the spatial reference coordinates when the electronic device 300 is moving and rotating. Three mutually perpendicular coordinate axes X P , Y P , and Z P are subjected to magnetic fields. The above-mentioned magnetic fields Mx, My, and Mz represent the direction and strength of the ambient magnetic field (such as the earth's magnetic field) of the electronic device 300, and the above-mentioned magnetic fields Mx, My, and Mz respectively correspond to the three coordinate axes X P , Y P , Z P . Those skilled in the art should understand that the above-mentioned "nine axes" do not necessarily have to be vertical in a specific orientation, and they can also be rotated in different orientations. The above-mentioned coordinate system disclosed in the present invention is only for illustration, and other coordinate axes located in different orientations and/or with different labels may also be applicable to the present invention.
而且,在本发明的一实施例中,动作感测模块或电子装置300的九轴动作感测模块302可为微机电(MEMS)式传感器。在本实施例中,上述九轴动作感测模块302之转动传感器342更包括至少一共振体(resonating mass),以使转动传感器能利用柯氏加速度的效应来侦测并量测该共振体沿着空间参考坐标的一坐标轴所进行的移动,从而产生包括位于空间参考坐标之角速度ωx,ωy,ωz的第一讯号组。所属技术领域的技术人员应可了解属于微机电式传感器的一三轴转动传感器(three-axis rotation sensor)中,在沿着空间参考坐标之X轴、Y轴及Z轴设置有三个共振体,以产生并取得三个共振体的移动量。所属技术领域的技术人员应可了解本发明之九轴动作传感器302包括微机电式的一三轴加速度传感器、一三轴转动传感器及一三轴磁力计。Moreover, in an embodiment of the present invention, the motion sensing module or the nine-axis motion sensing module 302 of the electronic device 300 may be a micro-electro-mechanical (MEMS) sensor. In this embodiment, the rotation sensor 342 of the nine-axis motion sensing module 302 further includes at least one resonating mass, so that the rotation sensor can use the effect of Coriolis acceleration to detect and measure the resonating mass along the The first signal group including angular velocities ω x , ω y , ω z at the spatial reference coordinates is generated by moving along a coordinate axis of the spatial reference coordinates. Those skilled in the art should understand that in a three-axis rotation sensor belonging to a micro-electromechanical sensor, three resonators are arranged along the X-axis, Y-axis and Z-axis of the spatial reference coordinates, To generate and obtain the movement of the three resonators. Those skilled in the art should understand that the nine-axis motion sensor 302 of the present invention includes a three-axis acceleration sensor, a three-axis rotation sensor, and a three-axis magnetometer of micro-electromechanical type.
数据传输单元346是电性连接到九轴动作感测模块302,以传输第一讯号组、第二讯号组与第三讯号组。在较佳实施例中,藉由印刷电路板340上的电性连接,数据传输单元346传输九轴动作感测模块302所发出的第一、第二与第三讯号组至运算处理器348。运算处理器348接收并计算由数据传输单元346来的第一、第二与第三讯号组。藉由与九轴动作感测模块302进行传讯,运算处理器348可以计算电子装置300的结果偏差,此结果偏差包括三个偏向角,其较佳是分别对应到空间参考坐标的三个坐标轴。上述的偏向角包括如图1与图2所示的偏航角111、俯仰角112与滚转角113。为了计算结果偏差,运算处理器348是使用一比对机制或算法去消除源自于九轴动作感测模块302发出的第一、第二与第三讯号组所产生的累积误差;藉此,在上述的动态环境中,可在排除上述不良外部干扰的情况下取得电子装置300之九轴动作感测模块302的结果偏差,此结果偏差包括在空间参考坐标中的偏向角,此偏向角较佳是对应到空间参考坐标中的三个互相垂直之坐标轴。也因此,较佳是以绝对方式取得及输出在空间参考坐标中所反应出或所对应之本发明之电子装置300之实际移动和转动,电子装置300例如包括一指示装置。此外,所述的运算处理器348所用之比对机制更包括一更新程序。在此更新程序中,是藉由与第一讯号组相关的一先前状态及与第二、第三讯号组相关的一量测状态,以取得九轴动作感测模块的一更新状态,此第一讯号组是与角速度ωx、ωy、ωz相关,第二讯号组是与轴向加速度Ax,Ay,Az相关,而第三讯号组则是与磁场Mx,My,Mz相关。上述的量测状态包括对第二讯号组所做的量测或量测而得的轴向加速度Ax,Ay,Az,以及对轴向加速度Ax’,Ay’,Az’所做的预计量测(predicted measurement),此轴向加速度Ax’,Ay’,Az’是基于或由动作感测模块302的一现今状态所运算而得。此外,上述的量测状态包括对第三讯号组所做的量测或量测而得的磁场Mx,My,Mz,以及对磁场Mx’,My’,Mz’所做的预计量测(predicted measurement),此磁场Mx’,My’,Mz’是基于或由动作感测模块302的现今状态所运算而得。本发明之电子装置中的九轴动作感测模块的各种状态将于之后做详述。The data transmission unit 346 is electrically connected to the nine-axis motion sensing module 302 to transmit the first signal group, the second signal group and the third signal group. In a preferred embodiment, through the electrical connection on the printed circuit board 340 , the data transmission unit 346 transmits the first, second and third signal groups sent by the nine-axis motion sensing module 302 to the arithmetic processor 348 . The arithmetic processor 348 receives and calculates the first, second and third signal groups from the data transmission unit 346 . By communicating with the nine-axis motion sensing module 302, the arithmetic processor 348 can calculate the result deviation of the electronic device 300. The result deviation includes three deflection angles, which are preferably respectively corresponding to the three coordinate axes of the spatial reference coordinates . The aforementioned deflection angles include yaw angle 111 , pitch angle 112 and roll angle 113 as shown in FIG. 1 and FIG. 2 . In order to calculate the deviation of the result, the operation processor 348 uses a comparison mechanism or algorithm to eliminate the cumulative error generated by the first, second and third signal groups sent by the nine-axis motion sensing module 302; thereby, In the above-mentioned dynamic environment, the result deviation of the nine-axis motion sensing module 302 of the electronic device 300 can be obtained under the condition of excluding the above-mentioned adverse external interference. The result deviation includes the deviation angle in the spatial reference coordinates, which is relatively It is best to correspond to three mutually perpendicular coordinate axes in the spatial reference coordinates. Therefore, it is preferable to obtain and output the actual movement and rotation of the electronic device 300 of the present invention reflected or corresponding in the spatial reference coordinates in an absolute manner. The electronic device 300 includes a pointing device, for example. In addition, the comparison mechanism used by the operation processor 348 further includes an update program. In this update procedure, an updated state of the nine-axis motion sensing module is obtained by using a previous state related to the first signal group and a measurement state related to the second and third signal groups. A signal group is related to angular velocity ω x , ω y , ω z , a second signal group is related to axial acceleration Ax, Ay, Az, and a third signal group is related to magnetic field Mx, My, Mz. The above-mentioned measurement state includes the measurement of the second signal group or the measured axial acceleration Ax, Ay, Az, and the estimated measurement of the axial acceleration Ax', Ay', Az' (predicted measurement), the axial accelerations Ax′, Ay′, Az′ are based on or calculated from a current state of the motion sensing module 302 . In addition, the above measurement state includes the measurement of the third signal group or the magnetic field Mx, My, Mz obtained from the measurement, and the predicted measurement (predicted) of the magnetic field Mx', My', Mz'. measurement), the magnetic fields Mx′, My′, Mz′ are based on or calculated from the current state of the motion sensing module 302 . Various states of the nine-axis motion sensing module in the electronic device of the present invention will be described in detail later.
在本实施例中,处理及传输模块304的运算处理器348更包括一映像程序,以将位于空间指示参考坐标中的结果偏差的偏向角转换成在一显示器参考坐标中的一移动样板。此显示器参考坐标是不同于空间指示参考坐标,但类似于图1与图2中的参考坐标XDYDZD。上述的移动样板可被显示于一2D显示设备的一屏幕上,此2D显示设备类似于如图1及图2所示的显示设备120。根据与显示器参考坐标相互关联的一敏感度输入,上述的映像程序转换偏向角,较佳是将偏向角转换为对应于空间指示参考坐标的三个互相垂直的坐标轴。In this embodiment, the arithmetic processor 348 of the processing and transmission module 304 further includes a mapping program for converting the deviation angle of the resulting deviation in the spatial reference reference coordinate into a moving template in a display reference coordinate. The display reference coordinates are different from the spatial indication reference coordinates, but similar to the reference coordinates X D Y D Z D in FIGS. 1 and 2 . The moving template mentioned above can be displayed on a screen of a 2D display device, which is similar to the display device 120 shown in FIGS. 1 and 2 . Based on a sensitivity input correlating to the display reference coordinates, the mapping program described above converts the deflection angles, preferably into three mutually perpendicular coordinate axes corresponding to the spatially indicated reference coordinates.
图5所绘示为本发明之另一实施例的电子装置500,此电子装置500使用一九轴动作感测模块且位于一3D空间指示参考坐标中。如图5所示,电子装置500包括两个部份,即:560与570,其可彼此进行数据的通讯。在一实施例中,第一部分560包括一上盖(未绘示)、一印刷电路板540、一九轴动作感测模块502、一数据传输单元546、一下盖520与一电池组522,其中九轴动作感测模块502包括一转动传感器542、一加速度传感器544与一磁力计545。藉由无线通信,例如基于IEEE 802.11标准的无线局域网络或蓝芽标准的无线传输,数据传输单元546将九轴动作感测模块502的转动传感器542所产生的第一讯号组(ωx,ωy,ωz)、加速度传感器544所产生的第二讯号组(Ax,Ay,Az)及磁力计545所产生的第三讯号组(Mx,My,Mz),传输到第二部分570的数据接收单元552。所属技术领域的技术人员应可明白,在其他的实施例中,第一部分560与第二部分570可藉由有线通讯或连接,例如:电缆或电线,来进行数据的传输。在本发明的一实施例中,动作感测模块或电子装置500的九轴动作感测模块502可为微机电(MEMS)式传感器。在本实施例中,上述九轴动作感测模块502之转动传感器542更包括至少一共振体,以使转动传感器542可利用柯氏加速度的效应以侦测并量测该共振体沿着空间参考坐标的一坐标轴上所进行的移动,从而产生包括位于空间参考坐标之角速度ωx,ωy,ωz的第一讯号组。所属技术领域的技术人员应可了解属于微机电式传感器的三轴转动传感器中,沿着空间参考坐标之X轴、Y轴及Z轴设置有三个共振体,以产生并取得三个共振体的移动量。所属技术领域的技术人员应可了解本发明之九轴动作传感器502包括微机电式的一三轴加速度传感器、一三轴转动传感器及一三轴磁力计。FIG. 5 shows an electronic device 500 according to another embodiment of the present invention. The electronic device 500 uses a nine-axis motion sensing module and is located in a 3D space indication reference coordinate. As shown in FIG. 5 , the electronic device 500 includes two parts, namely: 560 and 570 , which can communicate data with each other. In one embodiment, the first part 560 includes an upper cover (not shown), a printed circuit board 540, a nine-axis motion sensing module 502, a data transmission unit 546, a lower cover 520 and a battery pack 522, wherein The nine-axis motion sensing module 502 includes a rotation sensor 542 , an acceleration sensor 544 and a magnetometer 545 . Through wireless communication, such as wireless local area network based on IEEE 802.11 standard or wireless transmission of Bluetooth standard, the data transmission unit 546 transmits the first signal group (ω x , ω) generated by the rotation sensor 542 of the nine-axis motion sensing module 502 y , ω z ), the second signal group (Ax, Ay, Az) generated by the acceleration sensor 544 and the third signal group (Mx, My, Mz) generated by the magnetometer 545, the data transmitted to the second part 570 receiving unit 552 . Those skilled in the art should understand that in other embodiments, the first part 560 and the second part 570 can communicate or connect via wires, such as cables or wires, for data transmission. In an embodiment of the present invention, the motion sensing module or the nine-axis motion sensing module 502 of the electronic device 500 may be a micro-electro-mechanical (MEMS) sensor. In this embodiment, the rotation sensor 542 of the nine-axis motion sensing module 502 further includes at least one resonant body, so that the rotation sensor 542 can use the effect of Coriolis acceleration to detect and measure the resonant body along the spatial reference. A movement performed on a coordinate axis of the coordinates, thereby generating a first signal group comprising angular velocities ω x , ω y , ω z at the spatial reference coordinates. Those skilled in the art should be able to understand that in the three-axis rotation sensor belonging to the micro-electromechanical sensor, three resonators are arranged along the X-axis, Y-axis and Z-axis of the spatial reference coordinates to generate and obtain the three resonant bodies. amount of movement. Those skilled in the art should understand that the nine-axis motion sensor 502 of the present invention includes a three-axis acceleration sensor, a three-axis rotation sensor, and a three-axis magnetometer of micro-electromechanical type.
在一实施例中,第二部分570是与其他电子运算装置或系统相插接的一外部处理装置,电子运算装置例如是独立个人计算机或服务器580。举例来说,第二部分570是藉由一标准界面,例如是图5所示的通用串行总线,而插接或耦合于一笔记本电脑。第一部分560与第二部分570是藉由数据传输单元546及数据接收单元552而进行彼此间的通讯。如前所述,数据传输单元546及数据接收单元552彼此之间可藉由无线连接或有线连接而彼此相通讯。换句话说,以硬件配置与数据传输的角度来看,在本发明的一实施例中,包括转动传感器542、加速度传感器544与磁力计545在内的九轴动作感测模块502,是与处理单元或运算处理器554相分离;而从九轴动作感测模块502所发出的讯号则可藉由数据传输单元546、552,以有线或无线通信的方式传递到运算处理器554,其中无线通信例如基于IEEE 802.11标准或蓝芽的无线通信。In one embodiment, the second part 570 is an external processing device plugged with other electronic computing devices or systems, such as an independent personal computer or server 580 . For example, the second part 570 is plugged or coupled to a notebook computer through a standard interface, such as the USB shown in FIG. 5 . The first part 560 and the second part 570 communicate with each other through the data transmission unit 546 and the data receiving unit 552 . As mentioned above, the data transmission unit 546 and the data receiving unit 552 can communicate with each other through a wireless connection or a wired connection. In other words, from the perspective of hardware configuration and data transmission, in one embodiment of the present invention, the nine-axis motion sensing module 502 including the rotation sensor 542, the acceleration sensor 544 and the magnetometer 545 is compatible with the processing The unit or the operation processor 554 are separated; and the signal sent from the nine-axis motion sensing module 502 can be transmitted to the operation processor 554 by wired or wireless communication through the data transmission unit 546, 552, wherein the wireless communication For example wireless communication based on the IEEE 802.11 standard or Bluetooth.
在本发明的一实施例中,电子装置500的第二部分570包括数据传输单元552与运算处理器554。如前所述,第二部分570的数据传输单元552可与相分离且配置在第一部分560中的数据传输单元546进行数据传输。在第二部分570中的数据传输单元552可接收从第一部分560的数据传输单元546所传输过来的第一讯号组、第二讯号组与第三讯号组,并将其传输到运算处理器554。在本实施例中,运算处理器554能执行上述的运算与讯号的比对。在一实施例中,该运算处理器554所执行的比对机制更包括一更新程序,此更新程序是藉由与第一讯号组相关联的一先前状态及与第二讯号组、第三讯号组相关联的一量测状态以取得一更新状态。量测状态更包括对第二讯号组、第三讯号组进行量测及基于第一讯号组的预计量测。如图5所示,运算处理器554是位于电子装置之壳体的外部。在一实施例中,运算处理器554藉由一映像机制,而将电子装置的结果偏差中之偏向角转换至位于一显示器参考坐标的一移动样板,其中偏向角是位于空间指示参考坐标中,且较佳是指相应于空间指示参考坐标的三个互相垂直之坐标轴的角度,而上述的显示器参考坐标则是与笔记本电脑580相关联。上述的移动样板是显示在笔记本电脑580的屏幕582上。In an embodiment of the present invention, the second part 570 of the electronic device 500 includes a data transmission unit 552 and an arithmetic processor 554 . As mentioned above, the data transmission unit 552 of the second part 570 can perform data transmission with the separate data transmission unit 546 configured in the first part 560 . The data transmission unit 552 in the second part 570 can receive the first signal group, the second signal group and the third signal group transmitted from the data transmission unit 546 of the first part 560, and transmit them to the operation processor 554 . In this embodiment, the arithmetic processor 554 can perform the above-mentioned calculation and signal comparison. In one embodiment, the comparison mechanism executed by the arithmetic processor 554 further includes an update program, which uses a previous state associated with the first signal group and the second signal group, the third signal group Assembling an associated measurement state to obtain an updated state. The measurement state further includes measuring the second signal group and the third signal group and predicting measurement based on the first signal group. As shown in FIG. 5 , the computing processor 554 is located outside the housing of the electronic device. In one embodiment, the operation processor 554 converts the deflection angle in the result deviation of the electronic device to a moving template located in a display reference coordinate through a mapping mechanism, wherein the deflection angle is located in the spatial index reference coordinate, And preferably refers to the angles of three mutually perpendicular coordinate axes corresponding to the reference coordinates of the spatial indication, and the above-mentioned display reference coordinates are associated with the notebook computer 580 . The above mobile template is displayed on the screen 582 of the notebook computer 580 .
图6所绘示为本发明之另一实施例的携带式电子装置600的爆炸图,此携带式电子装置600具有一九轴动作感测模块且位于一3D空间指示参考坐标中。携带式电子装置600更包括一内建的显示器682,携带式电子装置600例如为智能型手机、平板计算机或导航设备。换句话说,以硬件配置的角度来看,上述与显示器相关联的显示器参考坐标无需位于空间指示坐标的外部。在一实施例中,电子装置600包括一下盖620、一印刷电路板640、一电池组622、一转动传感器642、一加速度传感器644、一磁力计645、一数据传输单元646、一运算处理器648、一显示器682及一上盖610。同样地,在一实施例中,壳体630包括一上盖610与一下盖620。内建的显示器682是整合于该壳体630中,而九轴动作感测模块602则包括转动传感器642、加速度传感器644与磁力计645。数据传输单元646及运算处理器648也可整合成电子装置600中的处理及传输模块604。在本发明的一实施例中,动作感测模块或电子装置600中的九轴动作感测模块602可为微机电(MEMS)式传感器。在本实施例中,上述九轴动作感测模块602之转动传感器642更包括至少一共振体,以使转动传感器可利用柯氏加速度的效应以侦测并量测该共振体沿着空间参考坐标的一坐标轴上所进行的移动,从而产生包括位于空间参考坐标之角速度ωx,ωy,ωz的第一讯号组。所属技术领域的技术人员应可了解属于微机电式传感器的三轴转动传感器中,沿着空间参考坐标之X轴、Y轴及Z轴上设置有三个共振体,以产生并取得三个共振体的移动量。所属技术领域的技术人员应可了解本发明之九轴动作传感器602包括微机电式的一三轴加速度传感器、一三轴转动传感器及一三轴磁力计。FIG. 6 is an exploded view of a portable electronic device 600 according to another embodiment of the present invention. The portable electronic device 600 has a nine-axis motion sensing module and is located in a 3D space indication reference coordinate. The portable electronic device 600 further includes a built-in display 682. The portable electronic device 600 is, for example, a smart phone, a tablet computer or a navigation device. In other words, from the perspective of hardware configuration, the above-mentioned display reference coordinates associated with the display need not be located outside the spatially indicated coordinates. In one embodiment, the electronic device 600 includes a lower cover 620, a printed circuit board 640, a battery pack 622, a rotation sensor 642, an acceleration sensor 644, a magnetometer 645, a data transmission unit 646, and an arithmetic processor 648 , a display 682 and a top cover 610 . Likewise, in one embodiment, the casing 630 includes an upper cover 610 and a lower cover 620 . The built-in display 682 is integrated in the housing 630 , and the nine-axis motion sensing module 602 includes a rotation sensor 642 , an acceleration sensor 644 and a magnetometer 645 . The data transmission unit 646 and the arithmetic processor 648 can also be integrated into the processing and transmission module 604 in the electronic device 600 . In an embodiment of the present invention, the motion sensing module or the nine-axis motion sensing module 602 in the electronic device 600 may be a micro-electromechanical (MEMS) sensor. In this embodiment, the rotation sensor 642 of the nine-axis motion sensing module 602 further includes at least one resonant body, so that the rotation sensor can use the effect of Coriolis acceleration to detect and measure the resonant body along the spatial reference coordinates. A movement performed on a coordinate axis of , thereby generating a first signal group comprising angular velocities ω x , ω y , ω z at the spatial reference coordinates. Those skilled in the art should be able to understand that in the three-axis rotation sensor belonging to the micro-electromechanical sensor, three resonators are arranged along the X-axis, Y-axis and Z-axis of the spatial reference coordinates, so as to generate and obtain the three resonant bodies amount of movement. Those skilled in the art should understand that the nine-axis motion sensor 602 of the present invention includes a three-axis acceleration sensor, a three-axis rotation sensor and a three-axis magnetometer of micro-electromechanical type.
处理及传输模块604的运算处理器648也可执行映射机制,此映射机制是将上述空间指示坐标或3D参考坐标中的结果偏差转换到一显示器参考坐标上,此显示器参考坐标例如为2D参考坐标。在上述的映射机制中,是将于空间指示坐标中的电子装置600的结果偏差中之偏向角转换成位于一显示器参考坐标中的一移动样板,此移动样板是与电子装置600本身相关联,且上述的偏向角较佳是指相应于空间指示坐标的三个互相垂直之坐标轴的角度。显示器682显示了上述的移动样板。上盖610包括一透明区域614,以让用户能看到该显示器682。The arithmetic processor 648 of the processing and transmission module 604 can also implement a mapping mechanism, which is to convert the resulting deviation in the above-mentioned spatial indication coordinates or 3D reference coordinates to a display reference coordinate, such as a 2D reference coordinate. . In the above-mentioned mapping mechanism, the deflection angle in the result deviation of the electronic device 600 in the spatial indication coordinates is converted into a moving template located in a display reference coordinate, and the moving template is associated with the electronic device 600 itself, And the above-mentioned deflection angle preferably refers to the angles of three mutually perpendicular coordinate axes corresponding to the spatial indication coordinates. Display 682 shows the moving template as described above. The upper cover 610 includes a transparent area 614 to allow the user to see the display 682 .
图7所绘示为一说明性的流程图,其绘示出本发明之一实施例的取得及/或输出一结果偏差的方法,此结果偏差包括电子装置位于空间指示坐标的偏向角,此电子装置例如为一指示装置、一导航设备或一智能型手机,可在一3D空间参考坐标及动态环境中移动和转动。在本发明的各个实施例中,如图7所示的方法可为一比对程序或比对模型,此比对程序或比对模型是嵌设在处理单元或处理及传输模块中的运算处理器348、554、648中或可由其执行。FIG. 7 is an illustrative flow chart illustrating a method for obtaining and/or outputting a result deviation according to an embodiment of the present invention. The result deviation includes a deflection angle of the electronic device at a space indicating coordinate, where The electronic device, such as a pointing device, a navigation device or a smart phone, can move and rotate in a 3D space reference coordinate and dynamic environment. In various embodiments of the present invention, the method shown in FIG. 7 can be a comparison program or a comparison model, which is an arithmetic processing embedded in a processing unit or a processing and transmission module. In or executable by the processor 348, 554, 648.
因此,在本发明的一实施例中,提供一于动态环境中取得结果偏差的方法,且较佳是排除不良的外部干扰,此结果偏差包括电子装置在空间指示参考坐标的偏向角,此方法是利用电子装置中的九轴动作感测模块。当电子装置在空间指示参考坐标中进行移动和转动时,不良的外部干扰可能会导致动作感测模块在测量、计算与输出上产生错误。在一实施例中,上述之取得结果偏差的方法包括以下步骤。首先,如图7所示,九轴动作感测模块的各种状态,例如:先前状态、现今状态、测量状态与更新状态,是指上述用于取得在3D参考坐标中结果偏差的方法之一个步骤或一个步骤组,较佳是以绝对的方式。在一实施例中,上述的方法包括,如步骤705与步骤710所述,取得九轴动作感测模块的先前状态之步骤。其中,先前状态包括一初始值组,于方法开始时该初始值组是预定用来初始化九轴动作感测模块的先前状态。初始值组较佳是用在方法的开始时,或者是当初使状态无法从更新状态取得时(容后说明)。在其他的实施例中,先前状态可由更新状态中取得或更新,该先前状态可为一第一四元值,其包括与先前角速度ωx,ωy,ωz相关联的值,这些先前角速度ωx,ωy,ωz是从九轴动作感测模块于前一时段T-1所发出的动作感测讯号中取得。藉由取得量测角速度ωx,ωy,ωz而获得九轴动作感测模块的一现今状态,其中这些量测角速度ωx、ωy、ωz是从九轴动作感测模块于现今时段T所发出的动作感测讯号中取得(例如步骤715与步骤720)。藉由取得量测轴向加速度Ax,Ay,Az而获得九轴动作感测模块的一量测状态,其中,,这些量测轴向加速度Ax,Ay,Az是从九轴动作感测模块于现今时段T所发出的动作感测讯号中取得(例如步骤725)。然后,藉由九轴动作感测模块于现今状态的量测角速度ωx,ωy,ωz来计算预计轴向加速度Ax’,Ay’,Az’(例如步骤730)。接着,藉由比对九轴动作感测模块的现今状态与量测状态以取得九轴动作感测模块的一更新状态(例如步骤735)。之后,计算九轴动作感测模块的更新状态并转换更新状态为结果偏差,结果偏差包括电子装置在空间指示参考坐标的偏向角(例如步骤745)。藉此,可在动态环境中取得结果偏差并排除不良外部干扰,此结果偏差包括与九轴动作感测模块的更新状态相关联的偏向角。为了建立一连续的回路,所取得之九轴动作感测模块的更新状态较佳是输出到先前状态。在一实施例中,更新状态可为一四元值,亦即如图中所示的第三四元值;藉此,此四元值可直接输出到另一个四元值的先前状态,即如图中所示的第一四元值的先前状态(例如步骤740)。Therefore, in an embodiment of the present invention, a method for obtaining result deviation in a dynamic environment, and preferably eliminating unwanted external disturbances, the result deviation includes the deflection angle of the electronic device indicating a reference coordinate in space, the method It utilizes the nine-axis motion sensing module in the electronic device. When the electronic device moves and rotates in the spatial indication reference coordinates, adverse external interference may cause errors in the measurement, calculation and output of the motion sensing module. In one embodiment, the above-mentioned method for obtaining result deviation includes the following steps. First, as shown in Figure 7, the various states of the nine-axis motion sensing module, such as previous state, current state, measurement state, and update state, refer to one of the above methods for obtaining the result deviation in the 3D reference coordinates A step or a group of steps, preferably absolute. In one embodiment, the above method includes, as described in step 705 and step 710 , the step of obtaining the previous state of the nine-axis motion sensing module. Wherein, the previous state includes an initial value group, and the initial value group is predetermined to initialize the previous state of the nine-axis motion sensing module at the beginning of the method. The initial value group is preferably used at the beginning of the method, or when the state cannot be obtained from the update state (described later). In other embodiments, the previous state may be retrieved or updated from the update state, which may be a first quaternion value, which includes values associated with previous angular velocities ω x , ω y , ω z , these previous angular velocities ω x , ω y , ω z are obtained from the motion sensing signal sent by the nine-axis motion sensing module in the previous period T-1. A current state of the nine-axis motion sensing module is obtained by obtaining the measured angular velocities ω x , ω y , ω z , wherein these measured angular velocities ωx, ωy, ωz are obtained from the nine-axis motion sensing module in the current period T Obtained from the motion sensing signal sent out (such as step 715 and step 720). A measurement state of the nine-axis motion sensing module is obtained by obtaining the measured axial accelerations Ax, Ay, Az, wherein, these measured axial accelerations Ax, Ay, Az are obtained from the nine-axis motion sensing module at Obtained from the motion sensing signal sent in the current time period T (for example, step 725). Then, the estimated axial accelerations Ax', Ay', Az' are calculated by using the measured angular velocities ω x , ω y , ω z of the nine-axis motion sensing module in the current state (eg step 730). Next, an updated state of the nine-axis motion sensing module is obtained by comparing the current state of the nine-axis motion sensing module with the measurement state (eg step 735 ). Afterwards, calculate the update state of the nine-axis motion sensing module and convert the update state into a result deviation, the result deviation includes the deflection angle of the electronic device indicating the reference coordinate in space (eg step 745 ). Thereby, the result deviation including the deflection angle associated with the updated state of the nine-axis motion sensing module can be obtained in a dynamic environment and exclude undesirable external disturbances. In order to establish a continuous loop, the obtained updated state of the nine-axis motion sensing module is preferably output to the previous state. In one embodiment, the update state can be a quaternion value, namely the third quaternion value shown in the figure; thereby, this quaternion value can be directly output to the previous state of another quaternion value, namely The previous state of the first quaternion value is shown in the figure (eg, step 740).
而且,所属技术领域的技术人员应明白:上述由处理及传输模块所执行且包括更新程序的比对机制,可参照如图7与图8所示之九轴动作感测模块的各种不同状态。如前所述,藉由与第一讯号组相关联的先前状态及与第二讯号组相关联的量测状态,处理器所执行的更新程序可取得九轴动作感测模块的更新状态,其中上述的第一讯号组是关于角速度ωx、ωy、ωz,而上述的第二讯号组则是关于轴向加速度Ax,Ay,Az。上述之量测状态包括对第二讯号组进行量测,亦即对轴向加速度Ax,Ay,Az进行量测,且包括从第一讯号组中计算而得的预计量测值Ax’,Ay’,Az’。对于九轴动作感测模块之上述的各种状态,以及取得在3D参考坐标中电子装置的结果偏差的方法之相关步骤,将于以下作详细的说明。Moreover, those skilled in the art should understand that: the above comparison mechanism executed by the processing and transmission module and including the update program can refer to various states of the nine-axis motion sensing module as shown in FIG. 7 and FIG. 8 . As mentioned above, the update program executed by the processor can obtain the updated state of the nine-axis motion sensing module by using the previous state associated with the first signal group and the measurement state associated with the second signal group, wherein The above-mentioned first signal group is related to angular velocities ω x , ω y , ω z , and the above-mentioned second signal group is related to axial accelerations Ax, Ay, Az. The above measurement state includes the measurement of the second signal group, that is, the measurement of the axial acceleration Ax, Ay, Az, and includes the estimated measurement value Ax', Ay calculated from the first signal group ', Az'. The above various states of the nine-axis motion sensing module and related steps of the method for obtaining the result deviation of the electronic device in the 3D reference coordinates will be described in detail below.
请再参照图7,在本发明的一实施例中,在该取得结果偏差的方法中,此结果偏差包括电子装置在空间指示参考坐标的偏向角且此方法是利用电子装置中的九轴动作感测模块,首先是取得九轴动作感测模块的一先前状态。在一实施例中,九轴动作感测模块的先前状态较佳为一第一四元值的形式,且较佳是于流程或方法的一开始时便初始化第一四元值且此初始化是此方法的取得先前状态之一部(例如步骤705)。换句话说,在本发明的一实施例中,九轴动作感测模块的讯号较佳是根据预定值组或四元值而初始化,预定值组或四元值例如包括为零,特别是例如包括以四元值表示且相关于偏航角相关的讯号或数值。第一四元值的四个元素可被初始化为一组预定初始值。或者,第一四元值也可被另一个讯号组所初始化或取代,上述之另一个讯号组是由转动传感器与加速度传感器于下一时段所产生的讯号组,以使图7所示的方法为在前一时段T-1与现今时段T间的一循环回路。关于在时段T-1的第一四元值如何被之后于时段T所输出的四元值所取代,将于后文做详细说明。所属技术领域的技术人员应可了解可用“尤拉角”来表示四元值。同样地,所属技术领域的技术人员应了解,上述的前一时段T-1与现今时段T能分别被现今时段T与下一时段T+1所取代,且落入本发明的精神与范围内。Please refer to FIG. 7 again. In an embodiment of the present invention, in the method for obtaining the result deviation, the result deviation includes the deflection angle of the electronic device indicating the reference coordinate in space and the method utilizes the nine-axis movement in the electronic device The sensing module first acquires a previous state of the nine-axis motion sensing module. In one embodiment, the previous state of the nine-axis motion sensing module is preferably in the form of a first quaternary value, and preferably the first quaternary value is initialized at the beginning of the process or method and the initialization is Part of the method is fetching the previous state (eg, step 705). In other words, in an embodiment of the present invention, the signal of the nine-axis motion sensing module is preferably initialized according to a predetermined set of values or a quaternary value, such as zero, especially for example Contains signals or values expressed as quaternion values relative to the yaw angle. The four elements of the first quaternion may be initialized to a set of predetermined initial values. Alternatively, the first quaternary value can also be initialized or replaced by another signal group, the above-mentioned another signal group is a signal group generated by the rotation sensor and the acceleration sensor in the next period, so that the method shown in FIG. 7 It is a loop between the previous time period T-1 and the current time period T. How the first quaternion value in the period T−1 is replaced by the output quaternion value in the period T later will be described in detail later. Those skilled in the art should understand that the quaternion value can be represented by "Eula angle". Similarly, those skilled in the art should understand that the above-mentioned previous time period T-1 and current time period T can be replaced by the current time period T and the next time period T+1 respectively, and fall within the spirit and scope of the present invention .
而且,上述动态环境包括本发明于之前所述的不良外部干扰。例如,不良外部干扰包括不良轴向加速度,此不良轴向加速度是由重力以外的不良外力所造成。在其他的例子中,不良外部干扰包括由不良电磁场所产生的不良磁力。在本发明的较佳实施例中,执行图7所示方法的技术效果包括:在动态环境中排除不良干扰的情况下,取得九轴运动感测模块的更新状态(例如步骤745),此更新状态是与电子装置的结果偏差相关联,此结果偏差包括在空间指示坐标中的偏向角,例如将不良的外力从重力中分离,以排除不良的轴向加速度,并排除不良的外部磁场,此不良的外部磁场是由动态环境中不良电磁场所产生。Moreover, the dynamic environment described above includes undesirable external disturbances as described above in the present invention. For example, undesired external disturbances include undesired axial acceleration caused by undesired external forces other than gravity. In other examples, undesirable external disturbances include undesirable magnetic forces produced by undesirable electromagnetic fields. In a preferred embodiment of the present invention, the technical effect of executing the method shown in FIG. 7 includes: under the condition of eliminating bad interference in a dynamic environment, obtain the update state of the nine-axis motion sensing module (such as step 745), the update The state is associated with the resultant deviation of the electronic device, which includes the deflection angle in the spatially indicated coordinates, such as separating undesired external forces from gravity, to exclude undesired axial acceleration, and to exclude undesired external magnetic fields, which Undesirable external magnetic fields are generated by undesired electromagnetic fields in a dynamic environment.
如图7所示的方法能在连续的时段中执行。在本发明的一实施例中,可由电子装置的数据处理单元以循环的方式执行步骤710-745。在其他实施例中,可同时执行多个步骤,例如可同时取得由九轴动作感测模块所发出的多个讯号,而非一次只取得一个讯号。所属技术领域的技术人员应可明白,在此所提的步骤只是为了说明之用,其他可能的步骤顺序,不管是依序执行或同时执行,皆应落在本发明的范围内。与前一时段T-1相关的第一四元值之取得如图中步骤710所示。当步骤710首次被执行时,第一四元值为在步骤705中被初始化的值。否则,于现今时段T的第一四元值是于前一时段T-1中取得。换句话说,步骤710通常是参照到上述之九轴动作感测模块的先前状态。根据本发明的另一实施例,先前状态可参照到步骤705或步骤710。The method shown in Figure 7 can be performed in consecutive time periods. In an embodiment of the present invention, the steps 710-745 may be executed in a loop by the data processing unit of the electronic device. In other embodiments, multiple steps can be executed at the same time, for example, multiple signals sent by the nine-axis motion sensing module can be obtained at the same time, instead of only one signal at a time. Those skilled in the art should understand that the steps mentioned here are for illustration purposes only, and other possible sequence of steps, whether performed sequentially or simultaneously, should fall within the scope of the present invention. The acquisition of the first quaternion value related to the previous period T−1 is shown in step 710 in the figure. When step 710 is executed for the first time, the first quaternion value is the value initialized in step 705 . Otherwise, the first quaternion value in the current time period T is obtained in the previous time period T−1. In other words, step 710 usually refers to the previous state of the aforementioned nine-axis motion sensing module. According to another embodiment of the present invention, the previous state may refer to step 705 or step 710 .
再来,取得由转动传感器产生的第一讯号组,在本发明的一实施例中,此第一讯号组包括步骤715所示的量测角速度ωx、ωy、ωz。在步骤720中,藉由角速度ωx、ωy、ωz可计算并取得现今时段T的第二四元值。步骤715与步骤720通常是指上述九轴动作感测模块的现今状态。在一实施例中,运算处理器可使用包括算法在内的一数据转换程序以将角速度ωx、ωy、ωz及第一四元值转换为第二四元值。该数据转换程序可为一程序或一指令,该程序或指令可用下述的方程式(1)来表示。Next, the first signal group generated by the rotation sensor is obtained. In an embodiment of the present invention, the first signal group includes the measured angular velocities ω x , ω y , and ω z shown in step 715 . In step 720, the second quaternion value of the current period T can be calculated and obtained by using the angular velocities ω x , ω y , ω z . Step 715 and step 720 generally refer to the present state of the above-mentioned nine-axis motion sensing module. In one embodiment, the arithmetic processor may use a data conversion program including an algorithm to convert the angular velocity ω x , ω y , ω z and the first quaternary value into the second quaternary value. The data conversion program can be a program or an instruction, and the program or instruction can be represented by the following equation (1).
方程式(1)是一微分方程。位于等号左侧的四元值为等号右侧的四元值(q0,q1,q2,q3)相对于时间的一阶导数。数据转换程序使用第一四元值作为微分方程(1)的初始值,并计算微分方程(1)的解。第二四元值为微分方程(1)的解。Equation (1) is a differential equation. The quaternion value on the left side of the equal sign is the first derivative with respect to time of the quaternion value (q 0 , q 1 , q 2 , q 3 ) on the right side of the equal sign. The data conversion program uses the first quaternion value as the initial value of the differential equation (1), and calculates the solution of the differential equation (1). The second quaternion value is the solution of the differential equation (1).
如图所示,在本实施例中,九轴动作感测模块的量测状态一般可由步骤725及步骤730所表示。在步骤725中,可取得加速度传感器所产生的第二讯号组,此第二讯号组包括量测轴向加速度Ax,Ay,Az,即Ax,Ay,Az为轴向加速度的量测值。为了取得本发明之九轴动作感测模块的量测状态,在一实施例中,基于上述九轴动作感测模块的现今状态或如步骤730所示的第二四元值,可计算并取得预计轴向加速度Ax’,Ay’,Az’。换句话说,可取得两组代表九轴动作感测模块的量测状态之轴向加速度,其中一组为步骤725中的量测轴向加速度Ax,Ay,Az,而另外一组为步骤730中的预计轴向加速度Ax’,Ay’,Az’,此预计轴向加速度Ax’,Ay’,Az’是基于上述现今状态或与量测角速度相关的第二四元值而求得。而且,在一实施例中,运算处理器可利用一数据转换程序以将一四元值转换成预计轴向加速度Ax’,Ay’,Az’。该数据转换程序可为一软件程序,其可以下述方程式(2),(3),(4)来代表。As shown in the figure, in this embodiment, the measurement state of the nine-axis motion sensing module can generally be represented by step 725 and step 730 . In step 725 , the second signal group generated by the acceleration sensor can be obtained, and the second signal group includes measured axial accelerations Ax, Ay, Az, that is, Ax, Ay, Az are measured values of axial accelerations. In order to obtain the measurement state of the nine-axis motion sensing module of the present invention, in one embodiment, based on the current state of the above-mentioned nine-axis motion sensing module or the second quaternion value shown in step 730, it can be calculated and obtained Estimated axial accelerations Ax', Ay', Az'. In other words, two sets of axial accelerations representing the measurement state of the nine-axis motion sensing module can be obtained, one of which is the measured axial accelerations Ax, Ay, and Az in step 725, and the other set is the measured state of the 9-axis motion sensing module in step 730 The estimated axial accelerations Ax', Ay', Az' in are obtained based on the above current state or the second quaternion value related to the measured angular velocity. Moreover, in one embodiment, the arithmetic processor can use a data conversion program to convert a quaternary value into predicted axial accelerations Ax', Ay', Az'. The data conversion program can be a software program, which can be represented by the following equations (2), (3), (4).
2(q1q3-q0q2)=Ax'...........................................(2)2(q 1 q 3 -q 0 q 2 )=Ax'.......................... ........(2)
2(q2q3+q0q1)=Ay'..............................................(3)2(q 2 q 3 +q 0 q 1 )=Ay'.......................... .........(3)
上述运算处理器可用于计算方程式(2),(3),(4)的解(Ax’,Ay’,Az’)。The above arithmetic processor can be used to calculate solutions (Ax', Ay', Az') of equations (2), (3), (4).
在取得结果误差的一实施例中,较佳是使用一比对机制以比对一九轴动作感测模块在现今时段T的现今状态与量测状态,其中上述结果误差包括一电子装置于一空间指示坐标中的偏向角,此电子装置例如为3D指示装置、携带式电子装置、导航设备或智能型手机,其使用有九轴运动感测模块。换句话说,在步骤735所示的实施例中,较佳是将第二四元值与位于现今时段T中的量测轴向加速度Ax,Ay,Az及预计轴向加速度Ax’,Ay’,Az’进行比对,其中第二四元值是与现今时段T中的量测角速度相关联。接着,在排除动态环境中不良外部干扰的情况下,所取得的结果可作为现今时段T中的九轴动作感测模块的一更新状态。在一实施例中,更新状态是指对现今时段T中九轴动作感测模块的现今状态进行更新。此外,包括与上述现今状态、量测状态及更新状态相关联的方程式之指令,将于下文中进行介绍。In an embodiment of obtaining the result error, it is preferable to use a comparison mechanism to compare the current state and measurement state of a nine-axis motion sensing module in the current time period T, wherein the above-mentioned result error includes an electronic device in a The deflection angle in the spatial indication coordinates. The electronic device is, for example, a 3D indicating device, a portable electronic device, a navigation device or a smart phone, which uses a nine-axis motion sensing module. In other words, in the embodiment shown in step 735, it is preferable to compare the second quaternion value with the measured axial acceleration Ax, Ay, Az and the expected axial acceleration Ax', Ay' located in the current time period T ,Az' for comparison, wherein the second quaternion value is associated with the measured angular velocity in the current time period T. Then, under the condition of excluding bad external interference in the dynamic environment, the obtained result can be used as an updated state of the nine-axis motion sensing module in the current time period T. In an embodiment, updating the status refers to updating the current status of the nine-axis motion sensing module in the current period T. In addition, commands including equations associated with the above-mentioned current state, measured state, and updated state will be described below.
根据本发明的一实施例,在图中步骤735所示的比对机制中,与上述第二四元值互相关联且与陀螺仪的角速度相关联的现今状态可以藉由下述方程式取得。According to an embodiment of the present invention, in the comparison mechanism shown in step 735 in the figure, the current state correlated with the second quaternion value and the angular velocity of the gyroscope can be obtained by the following equation.
x(t|t-1)=f(xt-1,ut)..................................(5)x(t|t-1)=f(x t-1 ,u t ).......................... ...(5)
在较佳的实施例中,与现今状态相关联的一第一机率(状态转换机率)可进一步藉由下述的方程式而取得。In a preferred embodiment, a first probability (state transition probability) associated with the current state can be further obtained by the following equation.
P(xt|xt-1,ut)=FxP(xt-1|xt-1)Fx T+FuP(ut-1|ut-1)Fu T+Qt P(x t |x t-1 ,u t )=F x P(x t-1 |x t-1 )F x T +F u P(u t-1 |u t-1 )F u T + Q
其中,Qt为额外动作模块噪声(additional motion model noise)。Among them, Q t is additional motion model noise (additional motion model noise).
同样地,与上述之预计轴向加速度互相关联,且与加速度传感器所测得的轴向加速度及现今状态相关的测量状态,可由下述方程式求得。Likewise, the measured state correlated with the above predicted axial acceleration, the axial acceleration measured by the acceleration sensor and the current state can be obtained by the following equation.
zt(t|t-1)=h(x(t|t-1))................................(8)z t (t|t-1)=h(x(t|t-1))........................... ...(8)
在较佳的实施例中,与量测状态相关联的一第二机率(量测机率)可进一步从下述的方程式求得:In a preferred embodiment, a second probability (measurement probability) associated with the measurement state can be further obtained from the following equation:
P(zt|xt)=HxP(xt|xt-1)Hx T+Rt................................(9)P(z t |x t )=H x P(x t |x t-1 )H x T +R t .......... .........(9)
其中,Rt为时段t时的量测模块噪声(measurement model noise)。Wherein, R t is the measurement model noise at time period t.
在一实施例中,基于如下相关于资料相关的方程式(11),上述的第一机率与第二机率可进一步用来取得九轴动作感测模块的更新状态。In one embodiment, based on the following equation (11) related to data, the above-mentioned first probability and second probability can be further used to obtain the update status of the nine-axis motion sensing module.
Dt={[zt-h(x(t|t-1))]P(zt|xt)[zt-h(x(t|t-1))]-1}1/2..............(11)D t ={[z t -h(x(t|t-1))]P(z t |x t )[z t -h(x(t|t-1))] -1 } 1/2 ..........(11)
在一实施例中,所取得之九轴动作感测模块的更新状态,其较佳包括由方程式所表示的比对机制或资料相关,可为如图所示的一第三四元值。而且,在如图所示接下来的步骤中,所取得之九轴动作感测模块的更新状态可被当作结果而输出,并用于在排除动态环境中不良外部干扰的情况下取得一结果偏差,此结果偏差包括在一空间指示参考坐标的偏向角。在本发明的较佳实施例中,所述的不良外部干扰是指或包括不良轴向加速度,此不良轴向加速度是由重力以外的不良外力所造成。在其他较佳的实施例中,不良外部干扰是指或包括由不良电磁场所产生的不良磁力。换句话说,由本发明所提供的方法及算法,能在排除上述不良干扰的情况下产生或提供结果偏差的输出。在其中一例中,本发明之电子装置的九轴动作传感器的外力可从重力中分离出来。在其他的例子中,也可排除电子装置的外部或内部的不良电磁场所产生的不良磁力。所属技术领域的技术人员应可了解上述实施例中的现今状态、量测状态、更新状态、数据相关及比对机制中的机率仅是用于说明之用,并非用以限制本发明。In one embodiment, the acquired update state of the nine-axis motion sensing module, which preferably includes a comparison mechanism or data correlation represented by an equation, may be a third quaternion value as shown in the figure. Moreover, in the following steps as shown in the figure, the obtained updated state of the nine-axis motion sensing module can be output as a result, and used to obtain a result deviation under the condition of excluding undesirable external disturbances in a dynamic environment , the resulting deviation includes a deviation angle in a spatially indicated reference coordinate. In a preferred embodiment of the present invention, the bad external disturbance refers to or includes bad axial acceleration, and the bad axial acceleration is caused by bad external force other than gravity. In other preferred embodiments, bad external disturbance refers to or includes bad magnetic force generated by bad electromagnetic fields. In other words, the method and algorithm provided by the present invention can generate or provide an output with a result deviation under the condition of eliminating the above-mentioned adverse interference. In one example, the external force of the nine-axis motion sensor of the electronic device of the present invention can be separated from the gravity. In other examples, bad magnetic force generated by bad electromagnetic fields outside or inside the electronic device may also be excluded. Those skilled in the art should understand that the current state, measurement state, update state, data correlation and probability in the comparison mechanism in the above embodiments are for illustration purposes only, and are not intended to limit the present invention.
如前所述,如图中步骤740所示,较佳是将所取得的更新状态,更新状态较佳是第三四元值的形态,输入至九轴动作感应模块的先前状态。在一较佳实施例中,更新状态更包括一第一数据相关模型,其中上述的数据相关模型可用来进行量测状态与预计量测状态的比对,该量测状态是与第二讯号组相关联,而该预计量测状态则从预计量测中取得。换句话说,在一实施例中,第一四元值可被上述之第三四元值所取代,或者是说第三四元值可直接取代第一四元值在前一时段T-1的值以进行下一个循环。换句话说,于现今时段T的第三四元值会变成下一时段T+1的第一四元值。或者是说,在前一时段T-1所输出的第三四元值可做为现今时段T的第一四元值。As mentioned above, as shown in step 740 in the figure, it is preferable to input the obtained update state, preferably in the form of the third quaternion value, into the previous state of the nine-axis motion sensing module. In a preferred embodiment, the update status further includes a first data correlation model, wherein the above data correlation model can be used to compare the measurement status with the predicted measurement status, the measurement status is related to the second signal group associated, and the predicted measurement status is obtained from the predicted measurement. In other words, in one embodiment, the first quaternion value can be replaced by the above-mentioned third quaternion value, or the third quaternion value can directly replace the first quaternion value in the previous period T-1 value for the next cycle. In other words, the third quaternion value in the current time period T will become the first quaternion value in the next time period T+1. In other words, the third quaternion value output in the previous time period T−1 can be used as the first quaternion value in the current time period T.
在步骤745中,本发明之九轴动作感测模块的更新状态可进一步被运算并转换为结果偏差,此结果偏差包括在空间参考坐标中的偏向角,其中偏向角包括位于空间参考坐标中之电子装置的偏航角、俯仰角与滚转角,上述之偏航角、俯仰角与滚转角较佳是分别对应于空间参考坐标的三个互相垂直的坐标轴的角度,因此较佳可在动态环境中排除不良外部干扰的情况下取得包括偏向角的结果偏差,此结果偏差是与九轴动作感测模块的更新状态相关。在一实施例中,所述的不良外部干扰是指或进一步包括不良轴向加速度,此不良轴向加速度是由重力以外的不良外力所造成。在其他的实施例中,不良外部干扰是指或进一步包括由不良电磁场所产生的不良磁力。在一实施例中,运算处理器使用一数据转换程序,以将代表九轴动作感测模块之更新状态的第三四元值转换为偏航角、俯仰角与滚转角。该数据转换程序可为一程序或指令,该程序或指令可用下述的方程式(12)、(13)、和(14)进行表示。In step 745, the updated state of the nine-axis motion sensing module of the present invention can be further calculated and converted into a result deviation, the result deviation includes the deviation angle in the spatial reference coordinates, wherein the deviation angle includes the deviation angle in the spatial reference coordinates The yaw angle, pitch angle, and roll angle of the electronic device, the above-mentioned yaw angle, pitch angle, and roll angle are preferably the angles corresponding to three mutually perpendicular coordinate axes of the spatial reference coordinates, so it is preferable to be able to dynamically The result deviation including the deflection angle is obtained when bad external interference is excluded in the environment, and the result deviation is related to the update status of the nine-axis motion sensing module. In one embodiment, the bad external disturbance refers to or further includes bad axial acceleration, and the bad axial acceleration is caused by bad external force other than gravity. In other embodiments, bad external disturbance refers to or further includes bad magnetic force generated by bad electromagnetic field. In one embodiment, the arithmetic processor uses a data conversion program to convert the third quaternion value representing the update state of the nine-axis motion sensing module into yaw angle, pitch angle and roll angle. The data conversion program can be a program or an instruction, and the program or instruction can be expressed by the following equations (12), (13), and (14).
pitch=arcsin(2(q0q2-q3q1)).........................(13)pitch=arcsin(2(q 0 q 2 -q 3 q 1 ))..........(13)
在方程式(12)、(13)、和(14)中,变数q0、q1、q2、和q3则为第三四元值中的四个元素。In equations (12), (13), and (14), the variables q 0 , q 1 , q 2 , and q 3 are the four elements in the third quaternion.
对于一种时间上连续且循环式的方法,在本发明的一实施例中,其会回到步骤710以执行在下一时段T+1的比对程序或方法,上述方法是由与九轴动作感测模块相通联的运算处理器所执行。此外,上述的结果偏差较佳是以一种绝对的方式取得和输出,以反应出本发明之电子装置在空间参考坐标上实际的移动及转动,上述结果偏差包括偏向角,而偏向角则包括由第三四元值所转换而得并位于空间转换坐标的偏航角、俯仰角与滚转角。所属技术领域的技术人员应可明白,上述电子装置在空间参考坐标或3D参考坐标上实际的移动及转动可为在一动态环境下实时的移动及转动,此实时的移动及转动可用向量进行表示,该向量相对于空间参考坐标上互相垂直的坐标轴具有一定的大小和方向。For a time-continuous and cyclical method, in an embodiment of the present invention, it will return to step 710 to execute the comparison program or method in the next period T+1, the above-mentioned method is performed with the nine-axis action The sensing module is connected to the computing processor for execution. In addition, the above-mentioned result deviation is preferably obtained and output in an absolute manner, so as to reflect the actual movement and rotation of the electronic device of the present invention on the spatial reference coordinates. The above-mentioned result deviation includes the deflection angle, and the deflection angle includes The yaw, pitch, and roll angles converted from the third quaternion and located in space-transformed coordinates. Those skilled in the art should understand that the actual movement and rotation of the above-mentioned electronic device on the spatial reference coordinates or 3D reference coordinates can be real-time movement and rotation in a dynamic environment, and the real-time movement and rotation can be represented by vectors , the vector has a certain magnitude and direction relative to mutually perpendicular coordinate axes on the spatial reference coordinates.
图8所绘示为一流程图,其绘示出本发明之另一实施例的映射方法,此映像方法将电子装置的结果偏向角映射到一显示器参考坐标上,此电子装置可在一3D空间参考坐标或动态环境中移动和转动。图9为一示意图,其显示出在本实施例中如何将上述之电子装置的包括偏向角在内的结果偏差进行映射。为了说明之目的,图7与图8间的差异可由如图8所示额外的映射步骤750来进行表示。图8中的步骤705-745是与图7中所对应的步骤相同,其执行针对电子装置的比对程序。步骤750则是执行针对电子装置的映像程序。运算处理器可包括一映像程序,其用来执行映像步骤750。在步骤750中,处理及传输模块取得显示器数据,此显示器数据例如包括屏幕尺寸与边界信息。在步骤750中,空间指示参考坐标中属于结果偏差的偏向角,基于与显示器参考坐标相关联的一敏感度输入,而被转换成位于显示器参考坐标中映像区域的一移动样板。所属技术领域的技术人员应可明白上述显示器数据报括显示器的形态,例如:LED显示器、LCD显示器、触控屏幕或3D显示器,以及显示器的频率,例如:120Hz或240Hz。在一实施例中,与显示器相关的显示器参考坐标可为一2D显示器参考坐标。在另一实施例中,显示器参考坐标可为一3D显示器的3D显示器参考坐标。FIG. 8 is a flowchart illustrating a mapping method according to another embodiment of the present invention. This mapping method maps the resulting deflection angle of the electronic device to a reference coordinate of a display. The electronic device can be displayed on a 3D display. Spatial reference coordinates or moving and turning in a dynamic environment. FIG. 9 is a schematic diagram showing how to map the resulting deviation of the above-mentioned electronic device including the deflection angle in this embodiment. For purposes of illustration, the difference between FIG. 7 and FIG. 8 may be represented by an additional mapping step 750 as shown in FIG. 8 . Steps 705-745 in FIG. 8 are the same as the corresponding steps in FIG. 7, which execute a comparison program for electronic devices. Step 750 is to execute the imaging program for the electronic device. The arithmetic processor may include a mapping program for performing the mapping step 750 . In step 750, the processing and transmission module obtains display data, such as display data including screen size and boundary information. In step 750, the deflection angles in the spatially indicated reference coordinates, which are the resulting deviations, are converted to a moving template located in the imaged region in the display reference coordinates based on a sensitivity input associated with the display reference coordinates. Those skilled in the art should be able to understand that the above display data includes the form of the display, such as LED display, LCD display, touch screen or 3D display, and the frequency of the display, such as 120Hz or 240Hz. In one embodiment, the display reference coordinates related to the display may be a 2D display reference coordinates. In another embodiment, the display reference coordinates may be 3D display reference coordinates of a 3D display.
上述的显示器数据更包括一敏感度输入,此敏感度输入为一参数,使用者可藉由设置在3D显示设备之外壳上的控制钮进行输入和调整此参数。敏感度输入可用于表示显示设备相应于电子装置的移动之敏感度。请参考图9,其对映像程序做更进一步的说明。在一实施例中,敏感度输入为一参数,此参数代表显示器与本发明之电子装置的关系,例如:距离关系。此电子装置的输出包括位于3D参考坐标的偏航角、俯仰角与滚转角在内的偏移,此偏移可映射到显示器的2D显示器参考坐标上的一移动样板。在另一个实施例中,敏感度输入可包括边界信息的一屏幕尺寸,此边界信息是由用户所预定,例如是藉由使用者的输入或操作而取得。在又一实施例中,为了增加或减少移动样板,敏感度输入可在映像程序中进行默认,让敏感度输入的参数为一默认值,上述移动样板包括距离、被移动的画素之数目或从电子装置的移动映像而来的画素之数目。The display data above further includes a sensitivity input, which is a parameter, and the user can input and adjust this parameter through the control button arranged on the shell of the 3D display device. The sensitivity input can be used to indicate the sensitivity of the display device to the movement of the electronic device. Please refer to FIG. 9 for a further description of the mapping procedure. In one embodiment, the sensitivity input is a parameter, which represents the relationship between the display and the electronic device of the present invention, for example, the distance relationship. The output of the electronic device includes offsets including yaw, pitch and roll in the 3D reference coordinates, which can be mapped to a moving template in the 2D display reference coordinates of the display. In another embodiment, the sensitivity input may include a screen size of boundary information, and the boundary information is predetermined by the user, for example, obtained through user input or operation. In yet another embodiment, in order to increase or decrease the movement template, the sensitivity input can be defaulted in the mapping program, so that the parameter of the sensitivity input is a default value. The above-mentioned movement template includes the distance, the number of pixels to be moved or from The number of pixels from the motion image of the electronic device.
图9为本发明的一实施例之一电子装置930与一显示设备的屏幕910的鸟瞰图。屏幕910具有一中心点922、一目标点924与一边界点926。中心点922为屏幕910的几合中心,目标点924为电子装置930所指示的位置,边界点926为位于屏幕910右方边界的一点。上述之各点922、924、926与电子装置930是位于一共享平面上,此共享平面是与显示器参考坐标XDYDZD的XD轴与ZD轴相平行。虚拟光束942、944、946为三道想象的光束,其分别从电子装置930发射到中心点922、目标点924与边界点926。距离P为中心点922与目标点924之间的距离,距离Pmax为中心点922与边界点926之间的距离,而距离d则为中心点922与电子装置930之间的距离。上述之电子装置930的结果偏差中的偏航角为虚拟光束942与虚拟光束944间所夹的角度θ,而角度θmax则为虚拟光束942与虚拟光束946间所夹的角度。上述的映像区域为位于显示器参考坐标且包括屏幕910之显示面的一平面,屏幕910之显示面为映像区域的一个子集。FIG. 9 is a bird's-eye view of an electronic device 930 and a screen 910 of a display device according to an embodiment of the present invention. The screen 910 has a center point 922 , a target point 924 and a boundary point 926 . The center point 922 is the geometric center of the screen 910 , the target point 924 is the position indicated by the electronic device 930 , and the boundary point 926 is a point on the right border of the screen 910 . The above-mentioned points 922, 924, 926 and the electronic device 930 are located on a shared plane, and the shared plane is parallel to the X D axis and the Z D axis of the display reference coordinates X D Y D Z D. The virtual light beams 942 , 944 , and 946 are three imaginary light beams emitted from the electronic device 930 to the center point 922 , the target point 924 and the boundary point 926 respectively. The distance P is the distance between the center point 922 and the target point 924 , the distance P max is the distance between the center point 922 and the boundary point 926 , and the distance d is the distance between the center point 922 and the electronic device 930 . The yaw angle in the above-mentioned result deviation of the electronic device 930 is the angle θ between the virtual beam 942 and the virtual beam 944 , and the angle θ max is the angle between the virtual beam 942 and the virtual beam 946 . The aforementioned image area is a plane located at the reference coordinates of the display and including the display surface of the screen 910, and the display surface of the screen 910 is a subset of the image area.
在本实施例中,上述的敏感度输入是由电子装置930的用户所提供。敏感度β可由下述的公式(15)所定义。In this embodiment, the aforementioned sensitivity input is provided by the user of the electronic device 930 . The sensitivity β can be defined by the following formula (15).
其中,在方程式(15)中的敏感度β是由使用者所提供。Wherein, the sensitivity β in equation (15) is provided by the user.
下述之方程式(16)可由方程式(15)及几何关系中推得。The following equation (16) can be deduced from equation (15) and the geometric relationship.
下述之方程式(17)可由方程式(16)中推得。The following equation (17) can be deduced from equation (16).
在方程式(17)中,距离Pmax可从屏幕的宽度推得,而屏幕的宽度则是步骤750所取得的显示器资料。另外,角度θ则为在步骤中所取得的偏航角,而敏感度输入β则是由使用者所提供。因此,电子装置930的运算处理器可依据方程式(17)而算出距离P。接着,运算处理器便可依据距离P与屏幕910的宽度而轻易地取得目标点于横向坐标上的位置。此外,依照类似的方法,运算处理器可依据俯仰角而轻易地取得屏幕910上的目标点924于纵向坐标上的位置。In equation (17), the distance P max can be deduced from the width of the screen, and the width of the screen is the display data obtained in step 750 . In addition, the angle θ is the yaw angle obtained in the step, and the sensitivity input β is provided by the user. Therefore, the computing processor of the electronic device 930 can calculate the distance P according to the equation (17). Then, the computing processor can easily obtain the position of the target point on the horizontal coordinate according to the distance P and the width of the screen 910 . In addition, according to a similar method, the computing processor can easily obtain the position of the target point 924 on the screen 910 on the longitudinal coordinate according to the pitch angle.
在步骤750中的映像程序可用以上所述为例,亦即将偏向角中的偏航角与俯仰角转换为屏幕910上的目标点924的二维坐标,进行说明。藉此,运算处理器已取得目标点924于现今时段的坐标。运算处理器会将目标点924于现今时段的坐标减去目标点924于前一时段的坐标,相减结果便为目标点924于现今时段的水平偏移与垂直偏移。上述的水平与垂直偏移可被传送到显示设备,以使显示设备能追踪目标点924的位置。显示设备能于屏幕910上显示一光标或某些影像效果(video effect),以强调目标点924的位置。当用户移动电子装置930时,上述的光标或影像效果能于屏幕910上展现出一移动样板。The mapping procedure in step 750 can be described above as an example, that is, converting the yaw angle and pitch angle in the yaw angle into the two-dimensional coordinates of the target point 924 on the screen 910 for illustration. In this way, the computing processor has obtained the coordinates of the target point 924 in the current time period. The arithmetic processor subtracts the coordinates of the target point 924 in the previous time period from the coordinates of the target point 924 in the current time period, and the result of the subtraction is the horizontal offset and vertical offset of the target point 924 in the current time period. The aforementioned horizontal and vertical offsets can be transmitted to the display device so that the display device can track the position of the target point 924 . The display device can display a cursor or some video effects on the screen 910 to emphasize the position of the target point 924 . When the user moves the electronic device 930 , the above-mentioned cursor or image effect can display a moving template on the screen 910 .
类似地,在本发明的另一实施例中,本发明的比对方法可为一循环式方法。对于一种时间上连续进行循环的方法,在本发明的一实施例中,由与九轴动作感测模块相通联的运算处理器所执行的此方法会回到步骤710以执行在下一时段T+1的比对及映像的程序或方法。接着,可执行下一时段T+1的比对及映像的程序或方法。Similarly, in another embodiment of the present invention, the comparison method of the present invention can be a round-robin method. For a method that continuously loops in time, in an embodiment of the present invention, the method executed by the arithmetic processor connected with the nine-axis motion sensing module will return to step 710 to execute in the next time period T +1 for the program or method of comparison and mapping. Then, the procedure or method of comparing and mapping for the next time period T+1 can be executed.
图10所绘示为本发明之另一实施例的比对方法。此流程图所绘示的方法提供一于动态环境中取得结果偏差的方法,此结果偏差包括电子装置在空间参考坐标的偏向角,此电子装置包括一九轴动作感测模块并可在一空间参考坐标与一动态环境中移动和转动,且在3D空间参考坐标与动态环境中移动和转动的电子装置可将其结果偏差映射到一显示器参考坐标上。藉此,包括偏向角在内的结果偏差较佳可在排除动态环境中不良外部干扰的情况下被取得,此偏向角是与九轴动作感测模块的输出或状态(例如:更新状态,容后详述)相关联。在一实施例中,不良外部干扰是指或更进一步包括不良轴向加速度,此不良轴向加速度是由重力以外的不良外力所造成。在另一个例子中,不良外部干扰是指或更进一步包括由不良电磁场所产生的不良磁力。图10所示的步骤1005-1030可参考如图7所示之本发明的另一实施例的步骤。FIG. 10 shows a comparison method according to another embodiment of the present invention. The method illustrated in this flow chart provides a method for obtaining result deviation in a dynamic environment. The result deviation includes the deflection angle of the electronic device at the spatial reference coordinates. The electronic device includes a nine-axis motion sensing module and can be positioned in a space The reference coordinates and a dynamic environment move and rotate, and the electronic device moves and rotates in the 3D spatial reference coordinates and the dynamic environment can map its resulting deviation to a display reference coordinate. Thereby, the deviation of the result including the deflection angle can preferably be obtained under the condition of excluding undesirable external disturbances in the dynamic environment. detailed description later) are associated. In one embodiment, the bad external disturbance refers to or further includes bad axial acceleration, and the bad axial acceleration is caused by bad external force other than gravity. In another example, bad external disturbance refers to or further includes bad magnetic force generated by bad electromagnetic field. Steps 1005-1030 shown in FIG. 10 may refer to the steps of another embodiment of the present invention shown in FIG. 7 .
对于使用有一九轴动作感测模块的一电子装置来说,电子装置例如为一指示装置、一导航设备、一智能型手机或一携带式电子设备,此动作感测模块的磁力计所产生的讯号较佳是可用来让取得结果偏差变得容易,且较佳是以绝对的方式,上述之结果偏差包括位于3D参考坐标的偏向角。由磁力计所产生的第三讯号组可由图10所示的步骤1035取得,此第三讯号组包括量测磁力(measured magnetism)Mx,My,Mz。在本实施例中,量测磁力Mx,My,Mz是指对所取得的磁力进行量测。在本发明的一实施例中,为了取得九轴运动感测模块的量测状态,基于上述九轴感测模块的现今状态或如步骤1040所示的第二四元值,也可运算并取得预计磁力Mx’,My’,Mz’。换句话说,可取得两组代表九轴动作感测模块的量测状态之磁力,其中一组为步骤1035中的量测磁力Mx,My,Mz,而另外一组为步骤1040中的预计磁力Mx’,My’,Mz’,此预计磁力Mx’,My’,Mz’是基于上述现今状态或与量测角速度相关的第二四元值而求得。而且,在一实施例中,运算处理器可利用一数据转换程序以将现今状态或第二四元值转换成预计磁力Mx’,My’,Mz’,反之亦然。该数据转换程序可为一软件程序,其可以下述方程式(18),(19),(20)来代表。For an electronic device using a nine-axis motion sensing module, such as a pointing device, a navigation device, a smart phone or a portable electronic device, the magnetometer of the motion sensing module generates The signal of is preferably available to facilitate obtaining, preferably in absolute terms, deviations of the results including the deflection angles at the 3D reference coordinates. The third signal group generated by the magnetometer can be obtained by step 1035 shown in FIG. 10 , the third signal group includes measured magnetism Mx, My, Mz. In this embodiment, measuring the magnetic forces Mx, My, Mz refers to measuring the obtained magnetic forces. In an embodiment of the present invention, in order to obtain the measurement state of the nine-axis motion sensing module, based on the current state of the above-mentioned nine-axis sensing module or the second quaternion value shown in step 1040, it can also be calculated and obtained Expected magnetic forces Mx', My', Mz'. In other words, two sets of magnetic force representing the measurement state of the nine-axis motion sensing module can be obtained, one set is the measured magnetic force Mx, My, Mz in step 1035, and the other set is the estimated magnetic force in step 1040 Mx', My', Mz', the estimated magnetic forces Mx', My', Mz' are obtained based on the above current state or the second quaternion value related to the measured angular velocity. Moreover, in one embodiment, the arithmetic processor can utilize a data conversion program to convert the current state or the second quaternion value into the predicted magnetic forces Mx', My', Mz', and vice versa. The data conversion program can be a software program, which can be represented by the following equations (18), (19), (20).
(q0 2+q1 2-q2 2-q3 2)cosλ+2(q1q3-q0q2)sinλ=Mx'.........................(18)(q 0 2 +q 1 2 -q 2 2 -q 3 2 )cosλ+2(q 1 q 3 -q 0 q 2 )sinλ=Mx'... .........(18)
2(q1q2-q0q3)cosλ+2(q2q3+q0q1)sinλ=My'............................(19)2(q 1 q 2 -q 0 q 3 )cosλ+2(q 2 q 3 +q 0 q 1 )sinλ=My'................... ........(19)
在方程式(18),(19),(20)中,变数λ为磁力计所量测到的周围磁场的方向与位于空间参考坐标的一水平平面间的倾角(dip angle)。此倾角λ可由量测而得或由本发明之电子装置的初始校正程序(initial calibration process)计算而得,并可做为一参数。上述运算处理器可用于计算方程式(18),(19),(20)的解(Mx’,My’,Mz’)。In equations (18), (19), and (20), the variable λ is the dip angle between the direction of the surrounding magnetic field measured by the magnetometer and a horizontal plane located at the spatial reference coordinates. The tilt angle λ can be obtained by measurement or calculated by an initial calibration process of the electronic device of the present invention, and can be used as a parameter. The arithmetic processor described above can be used to calculate solutions (Mx', My', Mz') of equations (18), (19), (20).
在本发明的一实施例中,提供取得上述之结果偏差的方法,此结果偏差包括位于空间参考坐标的偏向角,而电子装置利用一九轴动作感测模块且电子装置例如为一指示装置、一导航设备、一智能型手机或一携带式电子设备。此方法较佳是藉由使用一比对模型,以比对九轴动作感测模块于现今时段T的现今状态与量测状态。换句话说,如步骤1045所示的实施例中,较佳是将于现今时段T的现今状态之量测角速度之第二四元值与同样位于现今时段T的量测轴向加速度Ax,Ay,Az、预计轴向加速度Ax’,Ay’,Az’、量测磁力Mx,My,Mz及预计磁力Mx’,My’,Mz’相比对。藉此,便可取得九轴动作感测模块的一更新状态。一般来说且在本发明之实施例中,更新状态通常指:相较于现今状态或量测状态,对九轴动作感测模块于前一时段T-1的前一状态进行更新。在步骤1045的比对模型使用量测轴向加速度Ax,Ay,Az及量测磁力Mx,My,Mz,同时也使用了预计轴向加速度Ax’,Ay’,Az’及预计磁力Mx’,My’,Mz’。In one embodiment of the present invention, a method for obtaining the above-mentioned result deviation is provided. The result deviation includes the deflection angle at the spatial reference coordinates, and the electronic device uses a nine-axis motion sensing module and the electronic device is, for example, a pointing device, A navigation device, a smart phone or a portable electronic device. The method preferably uses a comparison model to compare the current state and the measurement state of the nine-axis motion sensing module in the current time period T. In other words, in the embodiment shown in step 1045, it is preferable to combine the second quaternion value of the measured angular velocity of the current state in the current time period T with the measured axial acceleration Ax, Ay also in the current time period T , Az, predicted axial acceleration Ax', Ay', Az', measured magnetic force Mx, My, Mz and predicted magnetic force Mx', My', Mz' are compared. In this way, an update status of the nine-axis motion sensing module can be obtained. Generally speaking and in the embodiments of the present invention, updating the state generally refers to updating the previous state of the nine-axis motion sensing module in the previous period T−1 compared with the current state or the measurement state. The comparison model in step 1045 uses measured axial accelerations Ax, Ay, Az and measured magnetic forces Mx, My, Mz, and also uses estimated axial accelerations Ax', Ay', Az' and estimated magnetic forces Mx', My', Mz'.
在一实施例中,所获得的九轴动作感测模块的更新状态可为如图所示的一第三四元值,较佳是涉及由与比对模型相关的方程式所表示的比对机制或资料相关。而且,如步骤1050~1060所示,可进一步被输出和利用此结果,以如图中的步骤所示取得包括位于空间参考坐标中的偏向角的结果偏差。所属技术领域的技术人员应可了解上述实施例中的现今状态、量测状态、更新状态、数据相关及比对机制中的机率仅是用于说明之用,并非用以限制本发明。In one embodiment, the obtained updated state of the nine-axis motion sensing module may be a third quaternion value as shown, preferably involving the alignment mechanism represented by the equation associated with the alignment model or data related. Moreover, as shown in steps 1050-1060, the result can be further output and utilized to obtain the result deviation including the deviation angle in the spatial reference coordinates as shown in the steps in the figure. Those skilled in the art should understand that the current state, measurement state, update state, data correlation and probability in the comparison mechanism in the above embodiments are for illustration purposes only, and are not intended to limit the present invention.
图11所绘示为本发明之比对方法的另一实施例。此流程图绘示出取得一结果偏差的方法,此结果偏差包括一电子装置位于空间指示坐标中的偏向角,此电子装置例如为一指示装置、一导航设备、一智能型手机或其他型态的携带式电子装置。此电子装置包括一九轴动作感测模块并可在一空间参考坐标与一动态环境中移动和转动,且在3D空间参考坐标与动态环境中移动和转动的电子装置可将其结果偏向角映射到一显示器参考坐标上。步骤1105~1130可能包括取得动作感测模块的一前一状态与一现今状态,并取得动作感测模块的一量测状态,此量测状态与轴向加速度相关。此外,在步骤1135中,较佳是使用一比对模型去比对现今时段T中九轴动作感测模块的现今状态与量测状态。换句话说,如步骤1135所示,较佳是将于现今时段T的第二四元值与于现今时段T的量测轴向加速度Ax,Ay,Az及预计轴向加速度Ax’,Ay’,Az进行比对,此第二四元值是与现今状态的量测角速度相关联。接着,可获得九轴动作感测模块的第一更新状态。在一实施例中,第一更新状态是指对于现今时段T中的九轴动作感测模块的现今状态进行第一次更新。而且,可取得或达到本发明的其中一技术效果。在步骤1135中,执行步骤1105~1135可取得的其中一好处或效果为:取得如图11所示的第一更新状态或第三四元值并排除不良轴向加速度,其中不良轴向加速度是由不良外力所造成,此不良外力例如为分离自重力的其他外力。FIG. 11 shows another embodiment of the comparison method of the present invention. This flowchart illustrates a method for obtaining a result deviation including a deflection angle of an electronic device, such as a pointing device, a navigation device, a smart phone or other types, located in spatially indicated coordinates portable electronic devices. The electronic device includes a nine-axis motion sensing module and can move and rotate in a spatial reference coordinate and a dynamic environment, and the electronic device that moves and rotates in a 3D spatial reference coordinate and a dynamic environment can map its resulting deflection angle to a Display reference coordinates. Steps 1105-1130 may include obtaining a previous state and a current state of the motion sensing module, and obtaining a measurement state of the motion sensing module, where the measurement state is related to the axial acceleration. In addition, in step 1135, a comparison model is preferably used to compare the current state and measurement state of the nine-axis motion sensing module in the current time period T. In other words, as shown in step 1135, it is preferable to combine the second quaternion value of the current time period T with the measured axial accelerations Ax, Ay, Az and predicted axial accelerations Ax', Ay' of the current time period T ,Az for comparison, the second quaternion value is associated with the measured angular velocity in the current state. Next, a first updated state of the nine-axis motion sensing module can be obtained. In an embodiment, the first update state refers to the first update of the current state of the nine-axis motion sensing module in the current period T. Moreover, one of the technical effects of the present invention can be obtained or achieved. In step 1135, one of the benefits or effects that can be obtained by executing steps 1105-1135 is: obtain the first updated state or the third quaternion value as shown in Figure 11 and exclude bad axial acceleration, wherein the bad axial acceleration is Caused by undesired external forces, such as other external forces separated from gravity.
在一实施例中,九轴动作感测模块的第一更新状态可为如图所示的一第三四元值,此结果较佳是涉及由与比对模型相关联的方程式所表示的比对或资料相关。而且,本发明的其中一技术效果包括如前所述的将动态环境中的不良外部干扰排除,其中不良外部干扰是指或包括不良轴向加速度,此不良轴向加速度是由不良外力所造成,此不良外力较佳是排除重力。或者,不良外部干扰还包括由不良电磁场所产生的不良磁力,此不良电磁场是邻近于动作感测模块。如图11之步骤1140所示,在基于第三四元值的情况下,可进一步对本发明之九轴感测模块的第一更新状态进行运算并转换为一瞬时俯仰角(temporary pitchangle)与一瞬时滚转角(temporary roll angle)。如图所示,可有效取得第一更新状态,并将动态环境中属于不良外部干扰的不良轴向加速度排除。在一实施例中,在排除上述由不良外力所造成的不良轴向加速度的情况下,可取得第一更新状态;上述不良外力是指不包括重力在内的外力。第三讯号组是由磁力计所产生,其包括量测磁力Mx,My,Mz。九轴动作感测模块的量测状态可藉由对一量测偏航角进行运算而取得,此量测偏航角是根据下述方程式(21)而从九轴运动感测模块于现今时段T所发出的动作感测讯号中获得。In one embodiment, the first update state of the nine-axis motion sensing module may be a third quaternion value as shown, the result preferably relates to the ratio expressed by the equation associated with the comparison model related to or data. Moreover, one of the technical effects of the present invention includes eliminating bad external disturbances in a dynamic environment as mentioned above, wherein bad external disturbances refer to or include bad axial acceleration, and this bad axial acceleration is caused by bad external forces, This undesirable external force is preferably to exclude gravity. Alternatively, the bad external disturbance also includes bad magnetic force generated by bad electromagnetic field, and the bad electromagnetic field is adjacent to the motion sensing module. As shown in step 1140 of FIG. 11 , based on the third quaternion value, the first update state of the nine-axis sensing module of the present invention can be further calculated and converted into an instantaneous pitch angle (temporary pitchangle) and an instantaneous pitch angle. Temporary roll angle. As shown in the figure, the first updated state can be effectively obtained, and bad axial acceleration belonging to bad external disturbances in a dynamic environment can be excluded. In one embodiment, the first updated state can be obtained when the aforementioned bad axial acceleration caused by the bad external force is excluded; the bad external force refers to the external force not including gravity. The third signal group is generated by the magnetometer, which includes the measured magnetic forces Mx, My, Mz. The measurement state of the nine-axis motion sensing module can be obtained by calculating a measured yaw angle, which is obtained from the nine-axis motion sensing module in the current time period according to the following equation (21). Obtained from the motion sensing signal sent by T.
在方程式(21)中,Ty是指量测偏航角,Tp是指瞬时俯仰角,而Tr则是指瞬时滚转角。In equation (21), Ty refers to the measured yaw angle, Tp refers to the instantaneous pitch angle, and Tr refers to the instantaneous roll angle.
在本发明的一实施例中,如步骤1145所示,为了取得九轴动作感测模块的所述量测状态,基于九轴动作感测模块的所述第一更新状态或于现今时段的第三四元值,可取得一预计偏航角(predicted yaw angle)。换句话说,为了九轴动作感测模块的量测状态,可取得步骤1140中的量测偏航角与步骤1145中的预计偏航角。In an embodiment of the present invention, as shown in step 1145, in order to obtain the measurement state of the nine-axis motion sensing module, based on the first update state of the nine-axis motion sensing module or the first update state in the current period Three quaternion values to obtain a predicted yaw angle. In other words, for the measurement state of the nine-axis motion sensing module, the measured yaw angle in step 1140 and the predicted yaw angle in step 1145 can be obtained.
而且,较佳是利用一比对模型以比对于现今时段T中九轴动作感测模块的现今状态与量测状态。换句话说,如步骤1150所示,较佳是于现今时段T中将第二四元值与量测轴向加速度Ax,Ay,Az、预计轴向加速度Ax’,Ay’,Az’、量测偏航角与预计偏航角进行比对,此第二四元值是与现今状态的量测角速度相关联。接着,可获得九轴动作感测模块的第二更新状态。在一实施例中,第二更新状态是指对于现今时段T中的九轴动作感测模块的现今状态进行第二次更新。于步骤1150中的比对模型是与上述比对模型非常近似,故将不再做详细的说明。在一实施例中,如图所示,所取得之九轴动作模块的第二更新状态可为一第四四元值。而且,在如图所示接下来的步骤中,所取得之九轴动作感测模块的第二更新状态可被当作结果而输出,并用于取得一结果偏差,此结果偏差包括在一空间指示参考坐标的偏向角。除了上述之技术效果外,即:如步骤1135所示,排除动态环境中属于不良外部干扰的不良轴向加速度而获得的动作感测模块的第一更新状态,还可达到如图11之步骤1150所示的技术效果,此技术效果是伴随着动作感测模块的第二更新状态而得。藉由执行步骤1140~1150可达到的优点或效果为:如图11所示,取得第二更新状态并排除不良磁力,不良磁力例如是由动态环境中邻近本发明的动作感测模块的不良的外部或内部电磁场所造成的。Moreover, it is preferable to use a comparison model to compare the current state and measurement state of the nine-axis motion sensing module in the current time period T. In other words, as shown in step 1150, it is preferred to compare the second quaternion value with the measured axial acceleration Ax, Ay, Az, the expected axial acceleration Ax', Ay', Az', the amount The measured yaw angle is compared with the predicted yaw angle, and the second quaternion value is associated with the measured angular velocity of the current state. Next, a second updated state of the nine-axis motion sensing module can be obtained. In an embodiment, the second update status refers to performing a second update on the current status of the nine-axis motion sensing module in the current time period T. The comparison model in step 1150 is very similar to the above comparison model, so no detailed description will be given. In one embodiment, as shown in the figure, the obtained second update state of the nine-axis motion module may be a fourth quaternion value. Moreover, in the following steps as shown in the figure, the obtained second updated state of the nine-axis motion sensing module can be output as a result and used to obtain a result deviation, which is included in a spatial indication The deflection angle of the reference coordinates. In addition to the above-mentioned technical effects, that is: as shown in step 1135, the first updated state of the motion sensing module obtained by excluding the bad axial acceleration belonging to bad external disturbances in the dynamic environment can also reach step 1150 as shown in Figure 11 As shown in the technical effect, this technical effect is obtained along with the second update state of the motion sensing module. The advantages or effects that can be achieved by executing steps 1140-1150 are: as shown in FIG. 11 , the second update status is obtained and bad magnetic force is eliminated. For example, bad magnetic force is caused by bad magnetic force adjacent to the motion sensing module of the present invention in a dynamic environment. caused by external or internal electromagnetic fields.
如图中步骤1155所示,将第二更新状态输出至九轴感测模块的前一状态,此第二更新状态较佳是第四四元值的形态。换句话说,在一实施例中,第一四元值可被上述之第四四元值所取代,或者是说第四四元值可直接取代第一四元值在前一时段T-1时的值以进行下一个循环。换句话说,于现今时段T的第四四元值会变成下一时段T+1的第一四元值。或者是说,在前一时段T-1所输出的第四四元值可做为现今时段T的第一四元值。As shown in step 1155 in the figure, the second updated state is output to the previous state of the nine-axis sensing module, and the second updated state is preferably in the form of a fourth quaternary value. In other words, in one embodiment, the first quaternion value can be replaced by the above-mentioned fourth quaternion value, or the fourth quaternion value can directly replace the first quaternion value in the previous period T-1 When the value for the next cycle. In other words, the fourth quaternion value in the current time period T will become the first quaternion value in the next time period T+1. In other words, the fourth quaternion value output in the previous time period T−1 can be used as the first quaternion value in the current time period T.
在步骤1160中,本发明之九轴动作感测模块的第二更新状态可进一步被运算并转换为结果偏差,此结果偏差包括在空间参考坐标中的偏向角,其中偏向角包括位于空间参考坐标中之电子装置的偏航角、俯仰角与滚转角,上述之偏航角、俯仰角与滚转角较佳是分别对应于空间参考坐标的三个互相垂直的坐标轴的角度。而且,如图所示,可进一步取得第二更新状态,较佳是排除动态环境中属于不良外部干扰的不良磁力。在一实施例中,较佳是取得第二更新状态并排除例如由上述不良电磁场所造成的不良磁力,或是排除地球磁场之外且邻近于动作感测模块或具足以影响动作感测模块的不良磁力。偏向角可根据方程式(12)、(13)、和(14)而算出,其中在方程式(12)、(13)、和(14)的变数q0、q1、q2、和q3则为第四四元值的四个元素。而且,步骤1160的偏向角可在排除不良外部干扰的情况下取得,此不良外部干扰包括不良轴向加速度与不良磁力,其中如前述步骤1135所述,不良轴向加速度是由不良外力所造成,此不良外力不包括重力。另外,如前述步骤1150所述,不良磁力之其一例如是由不良电磁场所造成。此外,在图11所示的步骤1165中,位于空间参考坐标且包括偏向角的结果偏差可进一步被映射至一显示器参考坐标中,此显示器参考坐标例如为一显示器的2D显示器参考坐标。In step 1160, the second update state of the nine-axis motion sensing module of the present invention can be further calculated and converted into a result deviation, the result deviation includes the deviation angle in the spatial reference coordinates, wherein the deviation angle includes the position in the spatial reference coordinates The yaw angle, pitch angle, and roll angle of the electronic device, the above-mentioned yaw angle, pitch angle, and roll angle are preferably angles corresponding to three mutually perpendicular coordinate axes of the spatial reference coordinates. Moreover, as shown in the figure, the second updated state can be further obtained, preferably to exclude bad magnetic force belonging to bad external disturbance in a dynamic environment. In one embodiment, it is preferable to obtain the second update state and exclude the bad magnetic force caused by the above-mentioned bad electromagnetic field, or exclude the earth’s magnetic field and be close to the motion sensing module or have sufficient influence on the motion sensing module Bad magnetism. The deflection angle can be calculated according to equations (12), (13), and (14), where the variables q 0 , q 1 , q 2 , and q 3 in equations (12), (13), and (14) are then Four elements for the fourth quaternion value. Moreover, the deflection angle in step 1160 can be obtained under the condition of excluding bad external disturbances, such bad external disturbances include bad axial acceleration and bad magnetic force, wherein as described in step 1135, the bad axial acceleration is caused by bad external forces, This bad external force does not include gravity. In addition, as mentioned in step 1150, one of the bad magnetic forces is caused by bad electromagnetic field, for example. In addition, in step 1165 shown in FIG. 11 , the resulting deviation at the spatial reference coordinate including the deflection angle may be further mapped to a display reference coordinate, such as a 2D display reference coordinate of a display.
如图12所示,在一较佳实施例中,第一更新状态与第二更新状态分别更包括一第一数据相关模型与一第二数据相关模型。第一数据相关模型是用于比对第一量测状态与一第一预计量测,其中第一量测状态是与第二讯号组相关联,而第一预计量测则是由所述的现今状态中取得。而且,第二数据相关模型是用于比对第二量测状态与一第二预计量测,其中第二量测状态是与第三讯号组相关联,而第二预计量测则是由所述的第一更新状态中取得。此外,在另一较佳实施例中,第二更新状态分别更包括一第一数据相关模型与一第二数据相关模型,且第一数据相关模型是用于比对第一量测状态与一第一预计量测,其中第一量测状态是与第二讯号组相关联,而第一预计量测则是由所述的现今状态中取得。第二数据相关模型是用于比对第二量测状态与一第二预计量测,其中第二量测状态是与第三讯号组相关联,而第二预计量测则是由所述的现今状态中取得。在基于比对结果的情况下,根据九轴动作感测模块的第一更新状态而取得所述第二预计量测或根据九轴动作感测模块的现今状态而取得所述第二预计量测间的差异于图12有更进一步的描述。标示“是”和“否”的路径是显示于图12中。As shown in FIG. 12 , in a preferred embodiment, the first update state and the second update state further include a first data correlation model and a second data correlation model respectively. The first data correlation model is used to compare the first measurement state with a first predicted measurement, wherein the first measurement state is associated with the second signal group, and the first predicted measurement is obtained by said obtained in its present state. Moreover, the second data correlation model is used to compare the second measurement state with a second predicted measurement, wherein the second measurement state is associated with the third signal group, and the second predicted measurement is determined by the obtained from the first update state described above. In addition, in another preferred embodiment, the second update state further includes a first data correlation model and a second data correlation model, and the first data correlation model is used to compare the first measurement state with a The first predicted measurement, wherein the first measurement state is associated with the second signal group, and the first predicted measurement is obtained from the current state. The second data correlation model is used to compare the second measurement state and a second predicted measurement, wherein the second measurement state is associated with the third signal group, and the second predicted measurement is obtained by said obtained in its present state. Based on the comparison result, the second estimated measurement is obtained according to the first updated state of the nine-axis motion sensing module or the second estimated measurement is obtained according to the current state of the nine-axis motion sensing module The differences between are further described in Figure 12. The paths labeled "Yes" and "No" are shown in FIG. 12 .
图12所示为本发明之取得结果偏差的另一实施例,此结果偏差包括一电子装置位于空间参考坐标的偏向角,此电子装置例如为一指示装置、一导航设备、一智能型手机或其他携带式电子设备,其包括一九轴动作感测模块。电子装置可在一空间指示参考坐标及动态环境中移动和转动,上述取得结果偏差的方法包括下述步骤。如图所示,在步骤1210中,可取得九轴动作感测模块的一先前状态,其中先前状态是与一先前角速度相关,此先前角速度是由九轴动作感测模块于一前一时段T-1所发出的动作感测讯号中获得。在其他实施例中,先前状态是与一先前角速度、一先前轴向加速度与一先前磁力相关,上述先前角速度、先前轴向加速度与先前磁力是由九轴动作感测模块于一前一时段T-1所发出的动作感测讯号中获得。接着,在步骤1220中,藉由取得由九轴动作感测模块于一现今时段T所发出的动作感测讯号中获得的量测角速度ωx,ωy,ωz,从而取得九轴动作感测模块的现今状态。在步骤1225中,藉由取得由九轴动作感测模块于现今时段T所发出的动作感测讯号中获得的量测轴向加速度Ax,Ay,Az,从而取得九轴动作感测模块的一第一量测状态。接着,在步骤1230中,基于九轴动作感测模块的现今状态可运算并取得九轴动作感测模块的一第一预计量测。在步骤1235中,进行一比对,以决定与量测状态相关的讯号是否足以被用来补偿九轴动作感测模块的现今状态,并取得九轴动作感测模块的更新状态,其中量测状态例如包括量测轴向加速度与量测磁力。FIG. 12 shows another embodiment of the result deviation of the present invention. The result deviation includes the deviation angle of an electronic device located in the spatial reference coordinates. The electronic device is, for example, a pointing device, a navigation device, a smart phone or Other portable electronic devices include a nine-axis motion sensing module. The electronic device can move and rotate in a space indicating reference coordinates and a dynamic environment, and the method for obtaining result deviation includes the following steps. As shown in the figure, in step 1210, a previous state of the nine-axis motion sensing module can be obtained, wherein the previous state is related to a previous angular velocity, which was determined by the nine-axis motion sensing module in a previous period T Obtained from the motion sensing signal sent by -1. In other embodiments, the previous state is related to a previous angular velocity, a previous axial acceleration and a previous magnetic force, and the previous angular velocity, previous axial acceleration and previous magnetic force are determined by the nine-axis motion sensing module in a previous period T Obtained from the motion sensing signal sent by -1. Next, in step 1220, by obtaining the measured angular velocity ω x , ω y , ω z obtained from the motion sensing signal sent by the 9-axis motion sensing module in a current time period T, thereby obtaining the 9-axis motion sense The current state of the test module. In step 1225, by obtaining the measured axial accelerations Ax, Ay, and Az obtained from the motion sensing signal sent by the nine-axis motion sensing module in the current time period T, one of the nine-axis motion sensing modules is obtained. The first measurement state. Next, in step 1230, a first predicted measurement of the nine-axis motion sensing module can be calculated and obtained based on the current state of the nine-axis motion sensing module. In step 1235, a comparison is performed to determine whether the signal related to the measurement state is sufficient to be used to compensate the current state of the nine-axis motion sensing module, and to obtain an updated state of the nine-axis motion sensing module, wherein the measurement The state includes, for example, measuring axial acceleration and measuring magnetic force.
根据本发明的上述目的,较佳是提供一比对机制与一补偿方法,此补偿方法可在具有外部干扰或内部干扰的情况下精确地输出一动作感测模块的结果偏差,此外部干扰或内部干扰例如包括由邻近动作感测模块的其它电子装置所产生的电磁场,或其他强度足以扭曲或干扰动作感测模块的正常运作的电磁场。在此情况下,使用数据相关的一比对机制能用于比对动作感测模块的量测状态与预计量测状态,以决定对先前状态进行更新的补偿。在前述步骤1235中,资料相关也包括一预定值,此预定值例如是根据所使用的动作感测模块的表现而预先选定,而使量测状态与预计量测的比对结果能参考数据相关与预定值,以决定所需的补偿,从而更新动作感测模块的状态,此状态例如为先前状态或更新状态。According to the above object of the present invention, it is preferable to provide a comparison mechanism and a compensation method, which can accurately output the result deviation of a motion sensing module in the case of external disturbance or internal disturbance, the external disturbance or Internal disturbances include, for example, electromagnetic fields generated by other electronic devices adjacent to the motion sensing module, or other electromagnetic fields that are strong enough to distort or interfere with the normal operation of the motion sensing module. In this case, a comparison mechanism using data correlation can be used to compare the measurement state of the motion sensing module with the expected measurement state to determine the compensation for updating the previous state. In the aforementioned step 1235, data correlation also includes a predetermined value, which is pre-selected, for example, according to the performance of the motion sensing module used, so that the comparison result of the measurement state and the expected measurement can refer to the data Correlating with the predetermined value to determine the required compensation, thereby updating the state of the motion sensing module, such as the previous state or the updated state.
藉此,基于数据相关的结果,可取得动作感测模块的更新状态。如图所示,若上述比对结果是落在资料相关所预计的结果范围内,则在本发明的一实施例中,如步骤1240所示,基于九轴运动感测模块的第一预计量测与第一量测状态的比对,可取得九轴运动感测模块的一第一更新状态。此外,如果比对结果不是落在数据相关所预计的结果范围内,则便无法执行并取得第一更新状态。在具有外部或内部干扰的情况下,使用数据相关与比对机制的效果特别好,其中上述外部或内部干扰例如是由不良电磁场所造成。当比对结果落在所预计的范围外时,如图12中所标示的“否”,则下一步骤将是取得动作感测模块的另一量测状态或第二量测状态,从而决定另一资料相关是否能被用于取得第二更新状态。然而,提供第二更新状态可做为本发明之方法中的另一步骤。基于包括与动作感测模块相关的量测轴向加速度在内的量测状态,可仅执行上述的步骤并取得第一更新状态的结果。换句话说,如图所示,不管是执行只能取得第一更新状态的步骤或是执行只能取得第二更新状态的步骤或是执行可取得第一更新状态与第二更新状态的步骤,皆落在本发明之申请专利范围所保护的范围内。而且,同样地,可取得或达到本发明的其中一技术效果。在步骤1240中,藉由执行步骤1210~1240可达到的优点或效果为:如图12所示,取得第一更新状态并排除不良轴向加速度,此不良轴向加速度是由不良外力所产生,此不良外力例如为不包括重力的不良外力。Thereby, based on the result of the data correlation, the update status of the motion sensing module can be obtained. As shown in the figure, if the above-mentioned comparison result falls within the expected result range of data correlation, in an embodiment of the present invention, as shown in step 1240, based on the first pre-measurement of the nine-axis motion sensing module By comparing the measurement with the first measurement state, a first update state of the nine-axis motion sensing module can be obtained. In addition, if the comparison result does not fall within the expected result range of data correlation, it cannot be executed and the first update status can be obtained. The use of data correlation and comparison mechanisms works particularly well in the presence of external or internal disturbances, eg caused by adverse electromagnetic fields. When the comparison result falls outside the expected range, as indicated by "No" in Figure 12, the next step will be to obtain another measurement state or the second measurement state of the motion sensing module, so as to determine Another data related to whether can be used to obtain the second update status. However, providing a second updated state can be used as another step in the method of the present invention. Based on the measured state including the measured axial acceleration associated with the motion sensing module, only the above steps can be performed and the result of the first updated state obtained. In other words, as shown in the figure, no matter whether the steps for obtaining only the first update state or the steps for obtaining only the second update state or the steps for obtaining the first update state and the second update state are performed, All fall within the scope protected by the patent application scope of the present invention. Moreover, similarly, one of the technical effects of the present invention can be obtained or achieved. In step 1240, the advantages or effects that can be achieved by executing steps 1210-1240 are: as shown in FIG. 12 , the first updated state is obtained and the bad axial acceleration is eliminated. The bad axial acceleration is generated by bad external force, This bad external force is, for example, bad external force not including gravity.
在本发明的另一实施例中,或在取得上述第二更新状态的情况下,可进一步执行如图12所示的步骤1245~1260。在步骤1245中,藉由取得一量测偏航角可取得九轴动作感测模块的一第二量测状态,其中是基于量测磁力Mx,My,Mz而取得量测偏航角,而量测磁力Mx,My,Mz则是从九轴动作感测模块于现今时段T所发出的动作感测讯号中获得。而且,如步骤1250所示,运算并取得九轴运动感测模块的一第二预计量测。接着,藉由如图12中标示为“是”的路径所代表的比对机制,可基于九轴运动感测模块的第一更新状态而取得一预计偏航角。在另一个实施例中,藉由如图12中标示为“否”的路径所代表的比对机制,可基于九轴运动感测模块的现今状态而取得预计偏航角。一旦取得量测状态与预计量测,可执行一第二次比对以决定:是否基于比对机制与第二数据相关所获得的结果,而进行补偿。如步骤1255所示,第二数据相关包括:决定比对结果是否落入一预定值或一预定范围内。如果比对结果落在预定值或预定范围内,则如标示为“是”的步骤1260所示,可取得一第二更新状态并进行补偿。此外,如果比对结果没有落在预定值或预定范围内,则应执行步骤1265,即图中标示为“否”的程序。换句话说,补偿机制是利用动作感测模块的第二预计量测以进行更新,而非利用动作感测模块的第二量测状态。同样地,除了上述的技术效果外,如步骤1240所示,排除动态环境中不良外部干扰的不良轴向加速度而得到动作感测模块的第一更新状态,可进一步达到如图12之步骤1260所示的技术效果,此技术效果是伴随着动作感测模块的第二更新状态而得。藉由执行步骤1245~1260可达到的优点或效果为:如图12所示,可进一步取得第二更新状态并排除不良磁力,不良磁力例如是由动态环境中邻近本发明的动作感测模块的不良的外部或内部电磁场所造成的。In another embodiment of the present invention, or when the above-mentioned second update state is obtained, steps 1245-1260 as shown in FIG. 12 may be further executed. In step 1245, a second measurement state of the nine-axis motion sensing module can be obtained by obtaining a measurement yaw angle, wherein the measurement yaw angle is obtained based on the measured magnetic force Mx, My, Mz, and The measured magnetic forces Mx, My, and Mz are obtained from the motion sensing signals sent by the nine-axis motion sensing module in the current time period T. Moreover, as shown in step 1250, a second predicted measurement of the nine-axis motion sensing module is calculated and obtained. Then, through the comparison mechanism represented by the path marked “Yes” in FIG. 12 , an estimated yaw angle can be obtained based on the first update state of the nine-axis motion sensing module. In another embodiment, the estimated yaw angle can be obtained based on the current state of the nine-axis motion sensing module through the comparison mechanism represented by the path marked "No" in FIG. 12 . Once the measurement status and expected measurements are obtained, a second comparison can be performed to determine whether to perform compensation based on the results obtained by the comparison mechanism in relation to the second data. As shown in step 1255, the second data correlation includes: determining whether the comparison result falls within a predetermined value or a predetermined range. If the comparison result falls within the predetermined value or within the predetermined range, as shown in step 1260 marked "Yes", a second update state can be obtained and compensation can be performed. In addition, if the comparison result does not fall within the predetermined value or within the predetermined range, step 1265 should be executed, which is the procedure marked "No" in the figure. In other words, the compensation mechanism uses the second predicted measurement of the motion sensing module for updating instead of using the second measurement state of the motion sensing module. Similarly, in addition to the above-mentioned technical effects, as shown in step 1240, the first update state of the motion sensing module can be obtained by excluding the bad axial acceleration of bad external disturbance in the dynamic environment, which can further achieve the step 1260 shown in Figure 12 The technical effect shown is obtained along with the second update state of the motion sensing module. The advantages or effects that can be achieved by executing steps 1245-1260 are: as shown in FIG. 12 , the second updated state can be further obtained and bad magnetic force can be eliminated. For example, bad magnetic force is caused by motion sensing modules adjacent to the motion sensing module of the present invention in a dynamic environment. Caused by adverse external or internal electromagnetic fields.
接续上述的步骤,在本发明的一实施例中,比对方法可为一连续的循环或是时间上为循环形式,在现今时段T所获得的更新状态可做为前一时段T-1的先前状态,并成为另一循环的起始,以再一次执行上述的步骤。对所属技术领域的技术人员来说,上述的时段T、时段T-1或时段T+1所指为何应是相当清楚明确,且是落在本发明所欲保护的范围内。例如,在图12所示的步骤1260中,藉由对九轴动作感测模块的第一更新状态进行更新可获得九轴动作感测模块的第二更新状态,其中对第一更新状态进行更新是基于九轴动作感测模块的第二预计量测与第二量测状态之间的第二比对机制。在步骤1265中,所获得的九轴动作感测模块的第二更新状态可进一步输出到先前状态而开始另一个循环。Continuing the above steps, in an embodiment of the present invention, the comparison method can be a continuous loop or a circular form in time, and the update status obtained in the current period T can be used as the update status of the previous period T-1 The previous state, and become the start of another cycle to perform the above steps again. For those skilled in the art, it should be quite clear what the above period T, period T-1 or period T+1 refers to, and it falls within the scope of protection of the present invention. For example, in step 1260 shown in FIG. 12 , the second update state of the nine-axis motion sensing module can be obtained by updating the first update state of the nine-axis motion sensing module, wherein the first update state is updated It is a second comparison mechanism between the second pre-measurement and the second measurement state based on the nine-axis motion sensing module. In step 1265, the obtained second updated state of the nine-axis motion sensing module can be further output to the previous state to start another cycle.
步骤1265完成后,于步骤1270中,以类似步骤745、步骤1060、步骤1160的方式取得结果偏差,此结果偏差包括于空间参考坐标中的偏向角,即:偏航角、俯仰角与滚转角。而且,可在排除不良外部干扰的情况下取得结果偏差,此不良外部干扰包括如步骤1240所示的不良轴向加速度,此不良轴向加速度是由不良外力所造成,此不良外力不包括重力。此外,不良外部干扰还包括如步骤1260所示的不良磁力,此不良磁力例如是由不良电磁场所产生。After step 1265 is completed, in step 1270, the result deviation is obtained in a manner similar to step 745, step 1060, and step 1160. The result deviation includes the yaw angle in the spatial reference coordinates, namely: yaw angle, pitch angle and roll angle . Moreover, the result deviation can be obtained under the condition of excluding unfavorable external disturbances, including unfavorable axial acceleration as shown in step 1240, and the unfavorable axial acceleration is caused by unfavorable external forces, which do not include gravity. In addition, the bad external disturbance also includes bad magnetic force shown in step 1260 , such bad magnetic force is generated by bad electromagnetic field.
如上所述,在本发明的一实施例中,提供一取得电子装置的结果偏差之方法,此电子装置包括一九轴动作感测模块与数据相关,这样可在九轴动作感测模块受到外部或内部干扰的情况下取得较精确的结果。因此,上述取得九轴动作感测模块的第一更新状态的步骤进一步包括:执行一第一数据相关,以决定九轴动作感测模块的第一预计量测与第一量测状态的比对结果是否落在九轴动作感测模块的一第一预定值内。而且,上述取得九轴动作感测模块的第二更新状态的步骤进一步包括:执行一第二数据相关,以决定九轴动作感测模块的第二预计量测与第二量测状态的比对结果是否落在九轴动作感测模块的一第二预定值内。As mentioned above, in one embodiment of the present invention, a method for obtaining the result deviation of an electronic device is provided. This electronic device includes a nine-axis motion sensing module and data correlation, so that the nine-axis motion sensing module can be externally controlled. or internal interference to obtain more accurate results. Therefore, the step of obtaining the first update state of the nine-axis motion sensing module further includes: performing a first data correlation to determine the comparison between the first predicted measurement and the first measurement state of the nine-axis motion sensing module Whether the result falls within a first predetermined value of the nine-axis motion sensing module. Moreover, the step of obtaining the second updated state of the nine-axis motion sensing module further includes: performing a second data correlation to determine a comparison between the second predicted measurement of the nine-axis motion sensing module and the second measurement state Whether the result falls within a second predetermined value of the nine-axis motion sensing module.
同样地,根据本发明的方法所述的连续循环,在一实施例中取得电子装置的一结果偏差的方法更包括将电子装置中的九轴动作感测模块的第二更新状态输出至前一状态。而且,九轴动作感测模块的前一状态可为于前一时段T-1的第一四元值,九轴动作感测模块的现今状态可为于现今时段T的第二四元值,而九轴动作感测模块的第一更新状态与第二更新状态也可分别为于现今时段T的第三四元值与第四四元值。Similarly, according to the continuous cycle described in the method of the present invention, in one embodiment, the method for obtaining a result deviation of the electronic device further includes outputting the second updated state of the nine-axis motion sensing module in the electronic device to the previous state. Moreover, the previous state of the nine-axis motion sensing module can be the first quaternion value in the previous period T-1, and the current state of the nine-axis motion sensing module can be the second quaternion value in the current period T, The first update state and the second update state of the nine-axis motion sensing module may also be the third quaternary value and the fourth quaternary value in the current time period T, respectively.
总之,本发明还提供一九轴比对方法,其比对电子装置因转动而产生并侦测到的讯号与因加速度而产生并侦测到的讯号,其中此电子装置是使用有一九轴动作感测模块,且转动与加速度是分别绕着与沿着三个轴而进行。在一实施例中,九轴比对方法可将结果偏差输出,其中结果偏差包括于空间参考坐标中的偏航角、俯仰角与滚转角,此空间参考坐标例如为电子装置的3D参考坐标。在另一实施例中,九轴比对方法包括将结果偏差映射到一显示器坐标,此结果偏差包括于空间参考坐标中的偏航角、俯仰角与滚转角,而显示器坐标例如为显示设备的屏幕上的显示器参考坐标。九轴比对方法包括将动作感测模块的各种状态进行比对,并使用本发明之数据相关以输出一结果偏差,此结果偏差包括例如在一3D参考坐标的偏航角、俯仰角与滚转角。此方法具有新颖性与非显而易见。In a word, the present invention also provides a nine-axis comparison method, which compares the signal generated and detected by the electronic device with the signal generated and detected by the acceleration, wherein the electronic device uses a nine-axis Motion sensing module, and the rotation and acceleration are performed around and along the three axes respectively. In one embodiment, the nine-axis comparison method can output the result deviation, wherein the result deviation includes yaw angle, pitch angle and roll angle in the spatial reference coordinate, such as the 3D reference coordinate of the electronic device. In another embodiment, the nine-axis comparison method includes mapping the resulting deviations to a display coordinate. The resulting deviations include yaw, pitch, and roll in spatially referenced coordinates, where the display coordinates are, for example, the display device's Display reference coordinates on the screen. The nine-axis comparison method includes comparing various states of the motion sensing module, and using the data correlation of the present invention to output a result deviation, which includes, for example, the yaw angle, pitch angle and roll angle. This method is novel and non-obvious.
综上所述,所属技术领域的技术人员应可了解,在本发明中,将包括位于一空间指示参考坐标的3D角度以绝对的方式输出也是具有新颖性。而且,具有动作感测模块的电子装置具有本发明所提出的且具有新颖性的比对方法及程序,故能以绝对的方式取得并输出上述的结果偏差,其是不易被所属技术领域的技术人员从习知技术中推得,故也具有进步性。上述之与结果偏差相关联的『绝对』是指本发明之电子装置在空间指示参考坐标中实际的移动与转动,其中结果偏差是从改良的电子装置所取得并输出,结果偏差包括偏向角,而偏向角例如是位于空间指示参考坐标中的偏航角、俯仰角与滚转角。而且,由于九轴动作感测模块于动态环境中移动和转动所产生和累积的噪声可被有效地删除或补偿,因此本发明之九轴比对方法可精确地将所述的偏差输出,此偏差包括在3D参考坐标中的角度。而且,在本发明说明书中,“一”或“一个”可代表“至少一个”或“多个”的意思。如上所述,所属技术领域的技术人员应可了解,“动态”所指的是移动或一般所指的运动。所属技术领域的技术人员应可了解,“排除”在此所指的是将不良的干扰排除,其并不限于特定排除的量或程度,任何量或程度都应符合本发明之精神且应落在本发明所欲保护的范围内。To sum up, those skilled in the art should understand that in the present invention, it is also novel to output the 3D angle including the reference coordinates located in a space in an absolute manner. Moreover, the electronic device with the motion sensing module has the novel comparison method and program proposed by the present invention, so the above-mentioned result deviation can be obtained and output in an absolute manner, which is not easily recognized by the technology in the technical field. Personnel are deduced from known technology, so also have progressiveness. The above-mentioned "absolute" associated with the result deviation refers to the actual movement and rotation of the electronic device of the present invention in the space indicating reference coordinates, wherein the result deviation is obtained and output from the improved electronic device, and the result deviation includes the deflection angle, The deflection angles are, for example, yaw angles, pitch angles, and roll angles located in the spatial indication reference coordinates. Moreover, since the noise generated and accumulated by the movement and rotation of the nine-axis motion sensing module in a dynamic environment can be effectively deleted or compensated, the nine-axis comparison method of the present invention can accurately output the deviation. The angle to include in the 3D reference coordinates. Moreover, in the description of the present invention, "a" or "an" may mean "at least one" or "a plurality". As noted above, those skilled in the art will appreciate that "dynamic" refers to movement or motion in general. Those skilled in the art should understand that "exclusion" here refers to the elimination of undesirable interference, which is not limited to a specific amount or degree of exclusion, any amount or degree should conform to the spirit of the present invention and should fall into the Within the scope of protection intended by the present invention.
图13所绘示为本发明之补偿3D指示装置之转动的方法的实施例的流程图。此方法的目的在于将3D指示装置的转动和移动转换成在一显示设备的显示平面的移动样板(例如:如图1与图2所示的显示设备120的平面XDYD)。该方法可由图14所绘示的3D指示装置所执行,图14为本发明之3D指示装置的示意图。图14中的3D指示装置包括一转动传感器342、一方位传感器1410、与一运算处理器1420。此方位传感器1410包括一加速度传感器344与其他运算处理器348。FIG. 13 is a flowchart of an embodiment of the method for compensating the rotation of the 3D pointing device of the present invention. The purpose of this method is to convert the rotation and movement of the 3D pointing device into a movement pattern on a display plane of a display device (for example, the plane X D Y D of the display device 120 shown in FIGS. 1 and 2 ). The method can be implemented by the 3D pointing device shown in FIG. 14 , which is a schematic diagram of the 3D pointing device of the present invention. The 3D pointing device in FIG. 14 includes a rotation sensor 342 , an orientation sensor 1410 , and an arithmetic processor 1420 . The orientation sensor 1410 includes an acceleration sensor 344 and other computing processors 348 .
图13的程序如下所示。在步骤1320中,方位传感器1410产生与该3D指示装置的一方位相关联的一方位输出,且该3D指示装置的方位是与地球相关联的一全球参考坐标的三轴相关联。该方位传感器1410的运算处理器348藉由执行如图7与图8所述的步骤710至步骤745可产生上述的方位输出。简单来说,在图7与图8所述的步骤710至步骤745中,转动传感器342产生一转动输出(ωx,ωy,ωz),该转动输出是与3D指示装置的转动相关联,且3D指示装置的转动是与3D指示装置相关联的一空间参考坐标的三轴相关联(如图1或图2所示的参考坐标XPYPZP),此加速度传感器344产生一第一讯号组,此第一讯号组包括多个轴向加速度Ax,Ay,Az,这些轴向加速度Ax,Ay,Az是与位于空间参考坐标的3D指示装置的移动和转动相关联。然后,运算处理器348便基于第一讯号组与该转动输出产生该方位输出。更详细的说明,请参照上述对图7与图8的相关讨论。The program of Fig. 13 is as follows. In step 1320, the orientation sensor 1410 generates an orientation output associated with an orientation of the 3D pointing device, and the orientation of the 3D pointing device is associated with three axes of a global reference coordinate associated with the earth. The arithmetic processor 348 of the orientation sensor 1410 can generate the above orientation output by executing steps 710 to 745 as described in FIG. 7 and FIG. 8 . In short, in steps 710 to 745 described in FIG. 7 and FIG. 8 , the rotation sensor 342 generates a rotation output (ω x , ω y , ω z ), which is associated with the rotation of the 3D pointing device , and the rotation of the 3D pointing device is associated with the three axes of a spatial reference coordinate associated with the 3D pointing device (the reference coordinate X P Y P Z P shown in FIG. 1 or FIG. 2 ), the acceleration sensor 344 generates a A first signal group, the first signal group includes a plurality of axial accelerations Ax, Ay, Az, these axial accelerations Ax, Ay, Az are associated with the movement and rotation of the 3D pointing device located at the spatial reference coordinates. Then, the arithmetic processor 348 generates the orientation output based on the first signal group and the rotation output. For a more detailed description, please refer to the related discussion of FIG. 7 and FIG. 8 above.
运算处理器348产生的方位输出的形式可为一转动矩阵、一四元值、一转动向量、或包括三个方位角(即:偏航角、俯仰角、与滚转角)的其他形式。四元值形式的方位输出可为图7与图8之步骤740所产生的第三四元值。上述的方位角,亦即:偏航角、俯仰角、与滚转角,是于步骤745中所产生。运算处理器348藉由下述的方程式(22)可从方位角取得转动矩阵:The orientation output generated by the arithmetic processor 348 may be in the form of a rotation matrix, a quaternion value, a rotation vector, or other forms including three orientation angles (ie, yaw angle, pitch angle, and roll angle). The orientation output in the form of a quaternion may be the third quaternion generated in step 740 of FIGS. 7 and 8 . The azimuth angles mentioned above, namely: yaw angle, pitch angle, and roll angle, are generated in step 745 . The operation processor 348 can obtain the rotation matrix from the azimuth by the following equation (22):
[R]3×3是以转动向量为形式的方位输出,θ代表俯仰角,φ代表滚转角,ψ代表偏航角。[R] 3×3 is the orientation output in the form of rotation vector, θ represents the pitch angle, φ represents the roll angle, and ψ represents the yaw angle.
运算处理器348藉由下述的方程式(23)可从四元值的形式取得以转动向量为形式的方位输出,而四元值的形式可用<e0,e1,e2,e3>进行表示。The arithmetic processor 348 can obtain the orientation output in the form of the rotation vector from the form of the quaternion value by the following equation (23), and the form of the quaternion value can be represented by <e0, e1, e2, e3>.
假设以转动向量为形式的该方位输出可表示为<e1,e2,e3>,且以四元值为形式的该方位输出可表示为<e0,e1,e2,e3>。运算处理器348可根据下述的方程式(24)将转动向量的形式转换成四元值的形式。Suppose the orientation output in the form of a rotation vector can be expressed as <e 1 , e 2 , e 3 >, and the orientation output in the form of a quaternion value can be expressed as <e 0 , e 1 , e 2 , e 3 >. The operation processor 348 can convert the form of the rotation vector into the form of the quaternion value according to the following equation (24).
其中该方位输出的四个形式的其中之一个形式可轻易的依据方程式(22)、(23)及(24)转换成四个形式中的另一个形式。One of the four forms of the orientation output can be easily converted into another of the four forms according to equations (22), (23) and (24).
在步骤1340中,转动传感器342产生与3D指示装置的一转动相关联的一转动输出,且3D指示装置的转动是与3D指示装置本身相关联的一空间参考坐标的三轴相关联(例如图1与图2所绘示的参考坐标XPYPZP)。在步骤1360中,运算处理器1420使用方位输出与转动输出以产生与固定参考坐标相关联的一转换输出<dx,dy>,而上述之固定参考坐标是与显示设备相关联。此转换输出<dx,dy>代表位于固定参考坐标的平面上的二维移动,该二维移动是平行于该显示设备的屏幕,例如是图1与图2所示的显示设备120的显示平面XDYD,其中dx代表沿着XD轴的移动,而dy则代表沿着YD轴的移动。而且,转换输出<dx,dy>可代表显示平面上的一段移动。由3D指示装置所画出的多段运动可构成显示平面上的一移动样板,并控制显示设备上的虚拟对象(virtual object)或光标沿着移动样板移动。In step 1340, the rotation sensor 342 generates a rotation output associated with a rotation of the 3D pointing device, and the rotation of the 3D pointing device is associated with three axes of a spatial reference coordinate associated with the 3D pointing device itself (eg, FIG. 1 and the reference coordinates X P Y P Z P shown in Fig. 2). In step 1360, the arithmetic processor 1420 uses the orientation output and the rotation output to generate a transformation output <d x , d y > associated with the fixed reference coordinates associated with the display device. The transformation output <d x , d y > represents a two-dimensional movement on a plane of fixed reference coordinates, the two-dimensional movement is parallel to the screen of the display device, such as the display device 120 shown in FIGS. 1 and 2 Display plane X D Y D , where d x represents movement along the X D axis and d y represents movement along the Y D axis. Also, the transformation output <d x , d y > may represent a segment of movement on the display plane. The multi-segment movements drawn by the 3D pointing device can constitute a moving template on the display plane, and control a virtual object or cursor on the display device to move along the moving template.
步骤1360包括四个步骤1362、1364、1366、和1368,在步骤1362中,运算处理器1420取得显示设备的方位,此显示设备的方位是与地球的全球参考坐标相关联。例如,3D指示装置可包括一重设键,此重设键可传送一重设讯号至运算处理器1420,在收到重设讯号后该第一运算处理器1420将方位传感器1410所产生的一现今方位输出记录为与全球参考坐标相关联的该显示设备的方位,因此,与地球的全球参考坐标相关联的该显示设备的方位可被记录成一重设的偏航角。Step 1360 includes four steps 1362, 1364, 1366, and 1368. In step 1362, the arithmetic processor 1420 obtains the orientation of the display device, which is associated with the global reference coordinates of the earth. For example, the 3D pointing device may include a reset button, and the reset button may send a reset signal to the operation processor 1420. After receiving the reset signal, the first operation processor 1420 uses a current orientation generated by the orientation sensor 1410 The output is recorded as the orientation of the display device in relation to the global reference coordinates, thus, the orientation of the display device in relation to the global reference coordinates of the earth may be recorded as a reset yaw angle.
在步骤1364中,运算处理器1420基于该方位输出及与地球全球参考坐标相关联的显示设备的方位而取得与固定参考坐标相关联的该3D指示装置的方位。如上所述,由运算处理器1420所记录的现今方位输出可能包括与全球参考坐标的三轴的其中之一轴(例如:Z轴)相关联的一重设的偏航角。此运算处理器1420可藉由将方位输出减去该重设的偏航角而取得与固定参考坐标相关联的该3D指示装置的方位,此固定参考坐标则与显示设备相关联。In step 1364, the arithmetic processor 1420 obtains the orientation of the 3D pointing device associated with the fixed reference coordinate based on the orientation output and the orientation of the display device associated with the earth global reference coordinate. As mentioned above, the current orientation output recorded by the arithmetic processor 1420 may include a reset yaw angle associated with one of the three axes of the global reference coordinate (eg, the Z axis). The arithmetic processor 1420 can obtain the orientation of the 3D pointing device associated with the fixed reference coordinates associated with the display device by subtracting the reset yaw angle from the orientation output.
图7与图8所示的步骤705是相等于步骤1362与步骤1364。在本发明的其他实施例中,为了产生步骤1320中的方位输出,此运算处理器345可执行如图7与图8所示的步骤705~步骤745。在本实施例中,由方位传感器1410所产生的方位输出代表与固定参考坐标相关联的3D指示装置,而此固定参考坐标则与显示设备相关联。因此,在其他的实施例中,运算处理器1420也可省略步骤1362与步骤1364。Step 705 shown in FIG. 7 and FIG. 8 is equivalent to step 1362 and step 1364 . In other embodiments of the present invention, in order to generate the orientation output in step 1320, the arithmetic processor 345 may execute steps 705 to 745 as shown in FIG. 7 and FIG. 8 . In this embodiment, the orientation output generated by the orientation sensor 1410 represents the 3D pointing device associated with a fixed reference coordinate associated with the display device. Therefore, in other embodiments, the operation processor 1420 may also omit the step 1362 and the step 1364 .
在步骤1366中,运算处理器1420基于与固定参考坐标相关联的3D指示装置的方位与转动输出来产生与显示设备相关联的一转换转动,其中此固定参考坐标是与显示设备相关联。例如,运算处理器1420可根据下述的方程式(25)产生转换转动。In step 1366, the arithmetic processor 1420 generates a translation rotation associated with the display device based on the orientation and rotation output of the 3D pointing device associated with the fixed reference coordinates associated with the display device. For example, the operation processor 1420 can generate the conversion rotation according to the following equation (25).
其中,R11-R13、R21-R23、和R31-R33为3x3转动矩阵中的元素,且从3D指示装置的方位中取得,而3D指示装置的方位是与显示设备相关联的固定参考坐标相关联。而且,[ωx ωyωz]D为与固定参考坐标相关联的转换转动,而固定参考坐标则是与显示设备相关联。[ωxωy ωz]P为转动传感器342所产生的转动输出。另外,转换转动[ωx ωy ωz]D包括三个角速度ωx、ωy、ωz,其分别与显示设备相关联的固定参考坐标的三个轴XD、YD、ZD相关联。而且,转动输出[ωx ωy ωz]P包括三个角速度ωx、ωy、ωz,其分别与3D指示装置相关联的空间参考坐标的三个轴XP、YP、ZP相关联。Among them, R 11 -R 13 , R 21 -R 23 , and R 31 -R 33 are elements in the 3x3 rotation matrix, and are obtained from the orientation of the 3D pointing device, and the orientation of the 3D pointing device is associated with the display device associated with a fixed reference coordinate. Also, [ω x ω y ω z ] D is the transformation rotation associated with the fixed reference coordinates associated with the display device. [ω x ω y ω z ] P is the rotation output generated by the rotation sensor 342 . In addition, the transformation rotation [ω x ω y ω z ] D includes three angular velocities ω x , ω y , ω z , which are respectively related to the three axes X D , Y D , Z D of the fixed reference coordinates associated with the display device couplet. Furthermore, the rotational output [ω x ω y ω z ] P includes three angular velocities ω x , ω y , ω z , which are respectively associated with the three axes X P , Y P , Z P of the spatial reference coordinates associated with the 3D pointing device. Associated.
在步骤1368中,运算处理器1420基于该转换转动[ωx ωy ωz]D来产生转换输出<dx,dy>,其中dx为转换输出的第一移动分量,而dy为转换输出的第二移动分量。其中,第一移动分量是与固定参考坐标的XD轴相关联,而第二移动分量是与固定参考坐标的YD轴相关联,且固定参考坐标是与显示设备相关联。例如,运算处理器1420将转换转动中的角速度ωy乘以一预定的尺寸因子(scale factor)而产生第二移动分量dy,且运算处理器1420将转换转动中的角速度ωz乘以上述预定的尺寸因子而产生第一移动分量dx。其中,尺寸因子的值可由使用者设定。In step 1368, the arithmetic processor 1420 generates a transformation output <d x , d y > based on the transformation rotation [ω x ω y ω z ] D , where d x is the first motion component of the transformation output and d y is Transform the second shifted component of the output. Wherein, the first movement component is associated with the XD axis of the fixed reference coordinate, and the second movement component is associated with the YD axis of the fixed reference coordinate, and the fixed reference coordinate is associated with the display device. For example, the operation processor 1420 multiplies the angular velocity ω y in the conversion rotation by a predetermined scale factor to generate the second movement component d y , and the operation processor 1420 multiplies the angular velocity ω z in the conversion rotation by the above-mentioned A predetermined size factor is used to generate a first movement component dx . Wherein, the value of the size factor can be set by the user.
如图13所示的补偿3D指示装置之转动的方法可被如图15所示的3D指示装置所执行,而图15所示为本发明之另一实施例的3D指示装置。图15所示的3D指示装置包括一转动传感器342、一方位传感器1510、与一运算处理器1420,其中方位传感器1510包括一加速度传感器344、一磁力计345、与一运算处理器348。The method for compensating the rotation of the 3D pointing device shown in FIG. 13 can be implemented by the 3D pointing device shown in FIG. 15 , and FIG. 15 shows a 3D pointing device according to another embodiment of the present invention. The 3D pointing device shown in FIG. 15 includes a rotation sensor 342 , an orientation sensor 1510 , and an arithmetic processor 1420 , wherein the orientation sensor 1510 includes an acceleration sensor 344 , a magnetometer 345 , and an arithmetic processor 348 .
在步骤1320中,方位传感器1510产生一方位输出,此方位输出是与3D指示装置的方位相关联,而3D指示装置的方位则与地球的全球参考坐标的三轴相关联。藉由执行如图10所示的步骤1010至步骤1060、或如图11所示的步骤1110至步骤1160、或如图12所示的步骤1210至步骤1270,方位传感器1510的运算处理器348可产生上述的方位输出。简单来说,在图10、图11、或图12所示的步骤中,转动传感器342产生与3D指示装置的转动相关联的一转动输出(ωx,ωy,ωz),而3D指示装置的转动则与空间参考坐标的三个轴(如图1与图2所示的参考坐标XPYPZP)相关联。加速度传感器344产生一第一讯号组,此第一讯号组包括轴向加速度Ax,Ay,Az,此轴向加速度Ax,Ay,Az是与3D指示装置在空间参考坐标中的移动和转动相关联。磁力计345产生一第二讯号组(Mx,My,Mz),此第二讯号组是与地球的磁场相关联。而且,基于第一讯号组、第二讯号组、与转动输出,运算处理器348产生方位输出。可参考上述关于图10、图11、与图12的叙述,其有更详细的介绍。In step 1320, the orientation sensor 1510 generates an orientation output that is associated with the orientation of the 3D pointing device, and the orientation of the 3D pointing device is associated with the three axes of the global reference coordinates of the earth. By executing steps 1010 to 1060 as shown in FIG. 10 , or steps 1110 to 1160 as shown in FIG. 11 , or steps 1210 to 1270 as shown in FIG. 12 , the arithmetic processor 348 of the orientation sensor 1510 can Produces the azimuth output described above. In short, in the steps shown in FIG. 10, FIG. 11, or FIG. 12, the rotation sensor 342 generates a rotation output (ω x , ω y , ω z ) associated with the rotation of the 3D pointing device, and the 3D pointing device The rotation of the device is associated with the three axes of the spatial reference coordinates (the reference coordinates X P Y P Z P shown in FIGS. 1 and 2 ). The acceleration sensor 344 generates a first signal group, the first signal group includes axial accelerations Ax, Ay, Az, the axial accelerations Ax, Ay, Az are associated with the movement and rotation of the 3D pointing device in the spatial reference coordinates . The magnetometer 345 generates a second set of signals (Mx, My, Mz) associated with the Earth's magnetic field. Furthermore, based on the first signal set, the second signal set, and the rotation output, the arithmetic processor 348 generates an azimuth output. Reference can be made to the above descriptions about FIG. 10 , FIG. 11 , and FIG. 12 , which have more detailed introductions.
运算处理器348可产生上述的方位输出,此方位输出的型式可为一转动矩阵、一四元值、一转动向量、或为包括偏航角、俯仰角与滚转角等三个方位角的形式。以四元值为型式的方位输出可为如图10所示步骤1050中所产生的第三四元值、或可为如图11所示步骤1150中所产生的第四四元值、或可从如图12所示步骤1265中的更新状态所取得。而且,偏航角、俯仰角与滚转角等三个方位角是可由图10的步骤1060、图11的步骤1160、或图12的步骤1270所产生。转动矩阵与转动向量可根据方程式(22)、方程式(23)、及方程式(24)而取得。The arithmetic processor 348 can generate the above-mentioned orientation output, which can be in the form of a rotation matrix, a quaternion value, a rotation vector, or three orientation angles including yaw angle, pitch angle, and roll angle. . The orientation output in the form of a quaternion value may be the third quaternion value generated in step 1050 as shown in FIG. 10, or may be the fourth quaternion value generated in step 1150 as shown in FIG. Obtained from the updated status in step 1265 as shown in FIG. 12 . Moreover, the three azimuth angles such as yaw angle, pitch angle and roll angle can be generated by step 1060 in FIG. 10 , step 1160 in FIG. 11 , or step 1270 in FIG. 12 . The rotation matrix and rotation vector can be obtained according to Equation (22), Equation (23), and Equation (24).
在本实施例中,图15所示的转动传感器342可如图14所示的转动传感器342般执行步骤1340,而图15所示的运算处理器1420可如图14所示的运算处理器1420般执行步骤1360。In this embodiment, the rotation sensor 342 shown in FIG. 15 can perform step 1340 like the rotation sensor 342 shown in FIG. 14 , and the arithmetic processor 1420 shown in FIG. Generally execute step 1360.
图10所示的步骤1005与图11所示的步骤1105是等同于步骤1362与步骤1364。在本发明的另一个实施例中,为了产生步骤1320中的方位输出,图15的运算处理器348可执行图10所示的步骤1005至步骤1060或图8所示的步骤1105至步骤1160。在本例中,方位传感器所产生的方位输出代表3D指示装置的方位,此3D指示装置的方位是与跟显示设备相关联的固定参考坐标相关联。因此,在另一个实施例中,图15的运算处理器1420省略步骤1362与步骤1364。Step 1005 shown in FIG. 10 and step 1105 shown in FIG. 11 are equivalent to steps 1362 and 1364 . In another embodiment of the present invention, in order to generate the orientation output in step 1320, the arithmetic processor 348 in FIG. 15 may execute steps 1005 to 1060 shown in FIG. 10 or steps 1105 to 1160 shown in FIG. 8 . In this example, the orientation output generated by the orientation sensor represents the orientation of the 3D pointing device, and the orientation of the 3D pointing device is associated with a fixed reference coordinate associated with the display device. Therefore, in another embodiment, the operation processor 1420 in FIG. 15 omits the step 1362 and the step 1364 .
图13所示的补偿3D指示装置之转动的方法也可由图16所示的3D指示装置执行。图16所示为本发明之另一个实施例之3D指示装置的示意图。图16所示的3D指示装置包括一转动传感器342、一方位传感器1610、及一运算处理器1420。方位传感器1610包括一加速度计344、一磁力计345、与一运算处理器348。The method for compensating the rotation of the 3D pointing device shown in FIG. 13 can also be implemented by the 3D pointing device shown in FIG. 16 . FIG. 16 is a schematic diagram of a 3D pointing device according to another embodiment of the present invention. The 3D pointing device shown in FIG. 16 includes a rotation sensor 342 , an orientation sensor 1610 , and an arithmetic processor 1420 . The orientation sensor 1610 includes an accelerometer 344 , a magnetometer 345 , and an arithmetic processor 348 .
在步骤1320中,方位传感器1610产生与3D指示装置的方位相关联的一方位输出,而此3D指示装置的方位则是和地球的全球参考坐标相关联。为了产生方位输出,磁力计345产生包括轴向加速度Ax,Ay,Az的一第一讯号组,此轴向加速度Ax,Ay,Az是与3D指示装置在空间参考坐标中的移动和转动相关联。磁力计345产生与地球磁场相关联的一第二讯号组(Mx,My,Mz),且图16的运算处理器348基于第一讯号组与第二讯号组而产生方位输出。方位输出的详细说明如下所述。In step 1320, the orientation sensor 1610 generates an orientation output associated with the orientation of the 3D pointing device, which is associated with the global reference coordinates of the earth. To generate the orientation output, the magnetometer 345 generates a first set of signals comprising axial accelerations Ax, Ay, Az associated with movement and rotation of the 3D pointing device in the spatial reference coordinates . The magnetometer 345 generates a second set of signals (Mx, My, Mz) associated with the earth's magnetic field, and the arithmetic processor 348 of FIG. 16 generates an azimuth output based on the first set of signals and the second set of signals. A detailed description of the bearing output is described below.
方位输出可为包括偏航角ψ、俯仰角θ、与滚转角φ的型式,偏航角ψ、俯仰角θ、与滚转角φ分别是与地球的全球参考坐标的三个轴相关联。第一讯号组包括轴向加速度Ax,Ay,Az,此轴向加速度Ax,Ay,Az分别与3D指示装置沿着空间参考坐标的XP,YP,ZP轴的移动和转动相关联。第二讯号组包括磁场Mx,My,Mz,此磁场Mx,My,Mz分别与3D指示装置沿着空间参考坐标的XP,YP,ZP轴的移动和转动相关联,且空间参考坐标是与3D指示装置相关联。The orientation output may be in the form of yaw angle ψ, pitch angle θ, and roll angle φ, which are respectively associated with the three axes of the global reference coordinate of the earth. The first signal group includes axial accelerations Ax, Ay, Az respectively associated with movement and rotation of the 3D pointing device along X P , Y P , Z P axes of the spatial reference coordinates. The second signal group includes magnetic fields Mx, My, Mz, the magnetic fields Mx, My, Mz are respectively associated with the movement and rotation of the 3D pointing device along the X P , Y P , Z P axes of the spatial reference coordinates, and the spatial reference coordinates is associated with the 3D pointing device.
运算处理器348可根据下述的方程式(26)和(27)来计算俯仰角θ、与滚转角φ。The arithmetic processor 348 can calculate the pitch angle θ and the roll angle φ according to the following equations (26) and (27).
在方程式(26)和(27)中,Ax,Ay,Az为第一讯号组的轴向加速度,且g为重力加速度。而且,运算处理器348可根据方程式(28)计算俯仰角ψ。In equations (26) and (27), Ax, Ay, Az are the axial accelerations of the first signal group, and g is the gravitational acceleration. Moreover, the arithmetic processor 348 can calculate the pitch angle ψ according to equation (28).
在方程式(28)中,Mx,My,Mz为上述之第二讯号组的各元素。根据方程式(26)、(27)、和(28),图16的运算传感器38可产生包括偏航角ψ、俯仰角θ、与滚转角φ的方位输出。In equation (28), Mx, My, Mz are the elements of the above-mentioned second signal group. According to equations (26), (27), and (28), the operational sensor 38 of FIG. 16 can generate azimuth outputs including yaw angle ψ, pitch angle θ, and roll angle φ.
在本实施例中,图16所示的转动传感器342可如图14所示的转动传感器342般执行步骤1340,而图15所示的运算处理器1420可如图14所示的运算处理器1420般执行步骤1360。In this embodiment, the rotation sensor 342 shown in FIG. 16 can perform step 1340 like the rotation sensor 342 shown in FIG. 14 , and the operation processor 1420 shown in FIG. Generally execute step 1360.
图13所示的方法与图14至图16所示的3D指示装置,可将3D指示装置在三维空间的转动和移动转换到位于显示设备的显示平面上的二维的移动样版。传统的指示装置在进行转换时无法考虑到每一偏航角、俯仰角、与滚转角,且在某些状况下这些转换是错误地。举例来说,当传统的指示装置处于翻转过来的状态时,该指示装置可能将其转动转换成沿着刚好相反的方向移动。另一方面,无论使用者如何定位或转动3D指示装置,由于本发明之实施例会将每一偏航角、俯仰角、与滚转角列入考虑,因此图13所示的方法与图14至图16所示的3D指示装置可将3D指示装置的转动和移动进行正确的转换。The method shown in FIG. 13 and the 3D pointing device shown in FIGS. 14 to 16 can convert the rotation and movement of the 3D pointing device in three-dimensional space into a two-dimensional moving template on the display plane of the display device. Conventional pointing devices do not take into account every angle of yaw, pitch, and roll when making conversions, and in some cases these conversions are wrong. For example, when a conventional pointing device is turned upside down, the pointing device may convert its rotation into movement in the exact opposite direction. On the other hand, no matter how the user positions or turns the 3D pointing device, since the embodiment of the present invention will take into account each yaw angle, pitch angle, and roll angle, the method shown in FIG. The 3D pointing device shown in 16 can correctly convert the rotation and movement of the 3D pointing device.
所属技术领域的技术人员应可了解,本发明可应用于各种领域,包括:游戏、计算机、和导航。所属技术领域的技术人员应可了解,本发明之保护范围当视后附之申请专利范围所界定者为准,且应包括本发明各种可能的应用,包括:指示装置、导航设备或智能型手机等电子装置。Those skilled in the art will appreciate that the present invention can be applied in various fields, including: games, computers, and navigation. Those skilled in the art should be able to understand that the protection scope of the present invention shall prevail as defined by the scope of the appended patent application, and shall include various possible applications of the present invention, including: indicating devices, navigation equipment or intelligent Electronic devices such as mobile phones.
上述实施例仅是为了方便说明而举例,虽遭所属技术领域的技术人员任意进行修改,均不会脱离如权利要求书中所欲保护的范围。The above-mentioned embodiments are only examples for the convenience of description, and even if they are arbitrarily modified by those skilled in the art, they will not depart from the scope of protection as claimed in the claims.
Claims (27)
Applications Claiming Priority (5)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US13/072,794 US9760186B2 (en) | 2010-01-06 | 2011-03-28 | Electronic device for use in motion detection and method for obtaining resultant deviation thereof |
| US13/072,794 | 2011-03-28 | ||
| US13/176,771 | 2011-07-06 | ||
| US13/176,771 US8552978B2 (en) | 2010-01-06 | 2011-07-06 | 3D pointing device and method for compensating rotations of the 3D pointing device thereof |
| CN201210084834.6A CN102778965B (en) | 2011-03-28 | 2012-03-27 | 3D pointing device and method for compensating rotation of 3D pointing device |
Related Parent Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210084834.6A Division CN102778965B (en) | 2011-03-28 | 2012-03-27 | 3D pointing device and method for compensating rotation of 3D pointing device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106959770A true CN106959770A (en) | 2017-07-18 |
Family
ID=47123895
Family Applications (2)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210084834.6A Ceased CN102778965B (en) | 2011-03-28 | 2012-03-27 | 3D pointing device and method for compensating rotation of 3D pointing device |
| CN201710093370.8A Pending CN106959770A (en) | 2011-03-28 | 2012-03-27 | 3D indicating device and method for compensating rotation of 3D indicating device |
Family Applications Before (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201210084834.6A Ceased CN102778965B (en) | 2011-03-28 | 2012-03-27 | 3D pointing device and method for compensating rotation of 3D pointing device |
Country Status (1)
| Country | Link |
|---|---|
| CN (2) | CN102778965B (en) |
Families Citing this family (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9760186B2 (en) | 2010-01-06 | 2017-09-12 | Cm Hk Limited | Electronic device for use in motion detection and method for obtaining resultant deviation thereof |
| CN104750442A (en) * | 2013-12-31 | 2015-07-01 | 冠捷投资有限公司 | Display and control method of indicator mark |
| JP6333075B2 (en) * | 2014-06-04 | 2018-05-30 | 株式会社トプコン | Surveying equipment |
| CN106406570A (en) * | 2015-07-29 | 2017-02-15 | 中兴通讯股份有限公司 | Projection cursor control method and device and remote controller |
| CN110160497B (en) * | 2019-06-20 | 2022-01-07 | 惠州市博实结科技有限公司 | Iron tower inclination measuring method and device, computer equipment and storage medium |
| TWI712779B (en) | 2019-11-22 | 2020-12-11 | 國立雲林科技大學 | Multifunctional gear detection system |
| CN112432643B (en) * | 2020-11-10 | 2023-12-01 | 神行太保智能科技(苏州)有限公司 | Driving data generation method, device, electronic device and storage medium |
| CN118131925A (en) * | 2023-07-18 | 2024-06-04 | 华为技术有限公司 | Device display control method, electronic device and communication system |
Citations (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5181181A (en) * | 1990-09-27 | 1993-01-19 | Triton Technologies, Inc. | Computer apparatus input device for three-dimensional information |
| US5453758A (en) * | 1992-07-31 | 1995-09-26 | Sony Corporation | Input apparatus |
| US20040095317A1 (en) * | 2002-11-20 | 2004-05-20 | Jingxi Zhang | Method and apparatus of universal remote pointing control for home entertainment system and computer |
| US7089148B1 (en) * | 2000-10-30 | 2006-08-08 | The United States Of America As Represented By The Secretary Of The Navy | Method and apparatus for motion tracking of an articulated rigid body |
| EP1731996A2 (en) * | 2005-06-08 | 2006-12-13 | Guanglie Zhang | Writing system |
| US20070091068A1 (en) * | 2004-04-30 | 2007-04-26 | Hillcrest Laboratories, Inc. | 3D pointing devices with orientation compensation and improved usability |
| CN1971310A (en) * | 2005-11-25 | 2007-05-30 | 三星电子株式会社 | Geomagnetic sensor for computing azimuth and method thereof |
| CN101078957A (en) * | 2006-05-23 | 2007-11-28 | 三星电子株式会社 | Pointing device, pointer movement method and medium, and display device for displaying the pointer |
| CN101256456A (en) * | 2004-04-30 | 2008-09-03 | 希尔克瑞斯特实验室公司 | Free-space positioning device with tilt compensation and improved usability |
| CN101377722A (en) * | 2007-08-31 | 2009-03-04 | 财团法人工业技术研究院 | Space pointing device with action interaction |
| CN101472095A (en) * | 2007-12-26 | 2009-07-01 | 原相科技股份有限公司 | Cursor control method and device using same |
| CN201514612U (en) * | 2009-09-23 | 2010-06-23 | 吴健康 | Three-dimensional dynamic positioning equipment |
| CN101788860A (en) * | 2010-01-08 | 2010-07-28 | 圆展科技股份有限公司 | Method and system for converting displacement information |
| CN101872259A (en) * | 2010-06-03 | 2010-10-27 | 中国人民解放军第二炮兵工程学院 | Natural interaction pen capable of automatically inputting written contents and handwriting detection method |
| CN101915580A (en) * | 2010-07-14 | 2010-12-15 | 中国科学院自动化研究所 | An Adaptive 3D Attitude Positioning Method Based on Micro-inertia and Geomagnetic Technology |
Family Cites Families (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR100543701B1 (en) * | 2003-06-17 | 2006-01-20 | 삼성전자주식회사 | Spatial input device and method |
| CN101173858B (en) * | 2007-07-03 | 2010-06-02 | 北京控制工程研究所 | A three-dimensional attitude determination and local positioning method for a lunar patrol probe |
| CN101726295B (en) * | 2008-10-24 | 2011-09-07 | 中国科学院自动化研究所 | Unscented Kalman filter-based method for tracking inertial pose according to acceleration compensation |
-
2012
- 2012-03-27 CN CN201210084834.6A patent/CN102778965B/en not_active Ceased
- 2012-03-27 CN CN201710093370.8A patent/CN106959770A/en active Pending
Patent Citations (18)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US5181181A (en) * | 1990-09-27 | 1993-01-19 | Triton Technologies, Inc. | Computer apparatus input device for three-dimensional information |
| US5453758A (en) * | 1992-07-31 | 1995-09-26 | Sony Corporation | Input apparatus |
| US7089148B1 (en) * | 2000-10-30 | 2006-08-08 | The United States Of America As Represented By The Secretary Of The Navy | Method and apparatus for motion tracking of an articulated rigid body |
| US20040095317A1 (en) * | 2002-11-20 | 2004-05-20 | Jingxi Zhang | Method and apparatus of universal remote pointing control for home entertainment system and computer |
| CN101427570A (en) * | 2004-04-30 | 2009-05-06 | 希尔克瑞斯特实验室公司 | Free space pointing device and method |
| US7414611B2 (en) * | 2004-04-30 | 2008-08-19 | Hillcrest Laboratories, Inc. | 3D pointing devices with orientation compensation and improved usability |
| CN101256456A (en) * | 2004-04-30 | 2008-09-03 | 希尔克瑞斯特实验室公司 | Free-space positioning device with tilt compensation and improved usability |
| CN100440313C (en) * | 2004-04-30 | 2008-12-03 | 希尔克瑞斯特实验室公司 | Free space positioning device and free space positioning method |
| US20070091068A1 (en) * | 2004-04-30 | 2007-04-26 | Hillcrest Laboratories, Inc. | 3D pointing devices with orientation compensation and improved usability |
| EP1731996A2 (en) * | 2005-06-08 | 2006-12-13 | Guanglie Zhang | Writing system |
| CN1971310A (en) * | 2005-11-25 | 2007-05-30 | 三星电子株式会社 | Geomagnetic sensor for computing azimuth and method thereof |
| CN101078957A (en) * | 2006-05-23 | 2007-11-28 | 三星电子株式会社 | Pointing device, pointer movement method and medium, and display device for displaying the pointer |
| CN101377722A (en) * | 2007-08-31 | 2009-03-04 | 财团法人工业技术研究院 | Space pointing device with action interaction |
| CN101472095A (en) * | 2007-12-26 | 2009-07-01 | 原相科技股份有限公司 | Cursor control method and device using same |
| CN201514612U (en) * | 2009-09-23 | 2010-06-23 | 吴健康 | Three-dimensional dynamic positioning equipment |
| CN101788860A (en) * | 2010-01-08 | 2010-07-28 | 圆展科技股份有限公司 | Method and system for converting displacement information |
| CN101872259A (en) * | 2010-06-03 | 2010-10-27 | 中国人民解放军第二炮兵工程学院 | Natural interaction pen capable of automatically inputting written contents and handwriting detection method |
| CN101915580A (en) * | 2010-07-14 | 2010-12-15 | 中国科学院自动化研究所 | An Adaptive 3D Attitude Positioning Method Based on Micro-inertia and Geomagnetic Technology |
Also Published As
| Publication number | Publication date |
|---|---|
| CN102778965A (en) | 2012-11-14 |
| CN102778965B (en) | 2017-04-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US8552978B2 (en) | 3D pointing device and method for compensating rotations of the 3D pointing device thereof | |
| CN102778965B (en) | 3D pointing device and method for compensating rotation of 3D pointing device | |
| US11698687B2 (en) | Electronic device for use in motion detection and method for obtaining resultant deviation thereof | |
| US8441438B2 (en) | 3D pointing device and method for compensating movement thereof | |
| US8957909B2 (en) | System and method for compensating for drift in a display of a user interface state | |
| US20110307213A1 (en) | System and method of sensing attitude and angular rate using a magnetic field sensor and accelerometer for portable electronic devices | |
| JP5407863B2 (en) | INPUT DEVICE, CONTROL DEVICE, CONTROL SYSTEM, AND CONTROL METHOD | |
| US7636645B1 (en) | Self-contained inertial navigation system for interactive control using movable controllers | |
| US8396684B2 (en) | Method and system for motion tracking | |
| JP2013029512A (en) | System and method for portable electronic device that detect attitude and angular velocity using magnetic sensor and accelerometer | |
| US20110199298A1 (en) | Pointer with motion sensing resolved by data merging | |
| JP2009534690A (en) | System for sensing yaw using magnetic field sensor and portable electronic device using said system | |
| Fang et al. | Development of a wearable device for motion capturing based on magnetic and inertial measurement units | |
| JP2009526980A (en) | Motion capture device and method related thereto | |
| CN109540135B (en) | Method and device for detecting pose and extracting yaw angle of paddy field tractor | |
| CN112611380A (en) | Attitude detection method based on multi-IMU fusion and attitude detection device thereof | |
| JP3763435B2 (en) | Attitude angle detector | |
| Ratchatanantakit et al. | A sensor fusion approach to MARG module orientation estimation for a real-time hand tracking application | |
| US20170199585A1 (en) | Processing unit, computer program amd method to control a cursor on a screen according to an orientation of a pointing device | |
| TWI494797B (en) | Electronic device for use in motion detection and method for obtaining resultant deviation thereof | |
| JP4023889B2 (en) | Attitude angle detector | |
| CN115356965B (en) | Loose coupling real-package data acquisition device and data processing method | |
| CN114279396B (en) | Method and device for determining motion posture, computer readable medium and electronic device | |
| US10648812B2 (en) | Method for filtering the signals arising from a sensor assembly comprising at least one sensor for measuring a vector physical field which is substantially constant over time and in space in a reference frame | |
| TWI534659B (en) | 3D pointing device and method for compensating for its movement |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170718 |