JP2011053060A - Program, information storage medium, error measurement method for acceleration sensor, error-measuring device for acceleration sensor and game system - Google Patents

Program, information storage medium, error measurement method for acceleration sensor, error-measuring device for acceleration sensor and game system Download PDF

Info

Publication number
JP2011053060A
JP2011053060A JP2009201686A JP2009201686A JP2011053060A JP 2011053060 A JP2011053060 A JP 2011053060A JP 2009201686 A JP2009201686 A JP 2009201686A JP 2009201686 A JP2009201686 A JP 2009201686A JP 2011053060 A JP2011053060 A JP 2011053060A
Authority
JP
Japan
Prior art keywords
information
acceleration
acceleration sensor
error
detection
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.)
Withdrawn
Application number
JP2009201686A
Other languages
Japanese (ja)
Inventor
Kentaro Yamaguchi
兼太郎 山口
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Bandai Namco Entertainment Inc
Original Assignee
Namco Bandai Games Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Namco Bandai Games Inc filed Critical Namco Bandai Games Inc
Priority to JP2009201686A priority Critical patent/JP2011053060A/en
Publication of JP2011053060A publication Critical patent/JP2011053060A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a program for calculating offset error information and sensitivity error information of an acceleration sensor, based on the detection information obtained, regardless of the orientation of the acceleration sensor, and to provide an information storage medium, an error measurement method for acceleration sensors, an error-measuring device and a game system. <P>SOLUTION: Six sets of acceleration information, based on the detected information of an acceleration sensor 20, are substituted into a variable of an equation of an ellipsoid, including six parameters corresponding to the sensitivities and offsets in the three detection axis detections of the acceleration sensor 20 orthogonal to one another that form simultaneous quadratic equations with the six parameters as the unknowns. The simultaneous quadratic equations are reduced to simultaneous linear equations, with each being represented by an equation with at least one of the six unknowns and containing five new unknowns, and the simultaneous linear equations are solved. The original six unknowns are calculated based on the five new unknowns, and offset error information and sensitivity error information of the three detection axis directions of the acceleration sensor are calculated, based on the calculation results. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、プログラム、情報記憶媒体、加速度センサの誤差測定方法、加速度センサの誤差測定装置及びゲームシステムに関する。   The present invention relates to a program, an information storage medium, an acceleration sensor error measurement method, an acceleration sensor error measurement device, and a game system.

最近では、ゲーム用のコントローラに加速度センサを設けてコントローラの向きや動きを検出して、ゲーム入力とすることが可能なゲーム装置が存在する。このようなゲーム装置では、検出された向きや動きに応じてゲーム空間のオブジェクトの向きや動きを制御して、当該オブジェクトを含むゲーム画像を生成するゲームが実現されている。   Recently, there is a game device that can be used as a game input by providing an acceleration sensor in a game controller to detect the direction and movement of the controller. In such a game device, a game is realized in which the direction and movement of an object in the game space are controlled according to the detected direction and movement, and a game image including the object is generated.

特開2003−225467号公報JP 2003-225467 A

このようなゲームにおいてはコントローラの向きや動きに応じて矛盾なく動作するゲーム画像を生成することが重要なポイントとなる。ところが、コントローラに内蔵されている加速度センサには誤差(個体差)がある。そのため、加速度センサを使うゲームを開発する際に、幾つかのコントローラで正しく動作することを確認しても、他のコントローラでの動作については不確実さが残る。   In such a game, it is important to generate a game image that operates consistently according to the direction and movement of the controller. However, there is an error (individual difference) in the acceleration sensor built in the controller. Therefore, when developing a game that uses an acceleration sensor, even if it is confirmed that it operates correctly with some controllers, there remains uncertainty about the operation with other controllers.

従来、加速度センサの誤差の測定方法として、加速度センサの各検出軸方向を上向き及び下向きにした状態で静止させて各検出軸方向に重力加速度のみが加わる状態に設定し、得られた検出値から加速度センサの各検出軸方向のオフセット誤差と感度誤差を算出する手法が行われていた。   Conventionally, as a method for measuring the error of the acceleration sensor, the acceleration sensor is set to a state where each detection axis direction of the acceleration sensor is set upward and downward, and only gravitational acceleration is applied to each detection axis direction. A technique for calculating an offset error and a sensitivity error in each detection axis direction of the acceleration sensor has been performed.

しかし、この手法では、加速度センサの各検出軸方向を正確に上向き及び下向きに合わせた状態で静止させなければ誤差を正確に測定できないため、煩わしい操作が必要であるとともに測定に時間がかかるという問題があった。   However, with this method, the error cannot be measured accurately unless it is stationary with each detection axis direction of the acceleration sensor accurately aligned upward and downward. was there.

本発明は、以上のような課題に鑑みてなされたものであり、本発明のいくつかの態様によれば、加速度センサの向きに関係なく得られた検出情報に基づき、加速度センサのオフセット誤差情報及び感度誤差情報を計算可能なプログラム、情報記憶媒体、加速度センサの誤差測定方法及び誤差測定装置並びにゲームシステムを提供することができる。   The present invention has been made in view of the above problems, and according to some aspects of the present invention, based on the detection information obtained regardless of the orientation of the acceleration sensor, the offset error information of the acceleration sensor. And a program capable of calculating sensitivity error information, an information storage medium, an error measuring method and error measuring apparatus for an acceleration sensor, and a game system can be provided.

(1)本発明は、加速度センサのオフセット誤差情報及び感度誤差情報を計算するプログラムであって、前記加速度センサの互いに直交する3つの検出軸方向の各感度及び各オフセットに対応した6つのパラメータを含む楕円体の方程式の変数に、前記加速度センサの検出情報に基づく6組の加速度情報を代入し、前記6つのパラメータを未知数とする6つの2次方程式からなる連立2次方程式を作成する連立方程式作成部と、前記連立2次方程式を、前記6つの未知数の少なくとも1つを含む式でそれぞれ表される5つの新たな未知数を含むとともに前記6つの未知数のいずれも含まない5つの1次方程式からなる連立1次方程式に帰着させて当該連立1次方程式を解く連立方程式計算部と、前記5つの新たな未知数の値から前記6つの未知数の値を計算し、計算結果に基づいて前記加速度センサの前記3つの検出軸方向のオフセット誤差情報及び感度誤差情報を計算する加速度誤差計算部として、コンピュータを機能させる、プログラムに関するものである。また本発明は、コンピュータに読み取り可能な情報記憶媒体であって、上記各部として本体装置を機能させるプログラムを記憶(記録)した情報記憶媒体に関するものである。   (1) The present invention is a program for calculating offset error information and sensitivity error information of an acceleration sensor, and includes six parameters corresponding to each sensitivity and each offset in three detection axis directions orthogonal to each other of the acceleration sensor. Simultaneous equations for creating simultaneous quadratic equations composed of six quadratic equations with six parameters as unknowns by substituting six sets of acceleration information based on the detection information of the acceleration sensor into variables of ellipsoidal equations The creation unit and the simultaneous quadratic equations include five new unknowns each represented by an equation including at least one of the six unknowns, and five linear equations that do not include any of the six unknowns. A simultaneous equation calculation unit that solves the simultaneous linear equations by reducing the simultaneous equations, and the six new values from the new unknown values. It calculates the value of the number, as the acceleration error calculator based on the calculation result to calculate an offset error information and the sensitivity error information of the three detection axis of the acceleration sensor, causes a computer to function, and a program. The present invention also relates to an information storage medium that can be read by a computer and stores (records) a program that causes a main device to function as each of the above-described units.

加速度センサのオフセット誤差情報は、オフセット誤差そのものであってもよいし、オフセット誤差を一義的に導き出せる他の任意の情報であってもよい。   The offset error information of the acceleration sensor may be the offset error itself, or may be any other information that can uniquely derive the offset error.

同様に、加速度センサの感度誤差情報は、感度誤差そのものであってもよいし、感度誤差を一義的に導き出せる他の任意の情報であってもよい。   Similarly, the sensitivity error information of the acceleration sensor may be the sensitivity error itself, or may be any other information that can uniquely derive the sensitivity error.

本発明によれば、加速度センサの検出情報に基づく任意の6組の加速度情報が得られれば代数的に加速度センサのオフセット誤差情報及び感度誤差情報を計算することができる。従って、従来手法のように加速度センサの各検出軸方向を正確に上向き及び下向きに合わせた状態での検出情報が得られなくとも、加速度センサの向きに関係なく得られた検出情報に基づきオフセット誤差情報及び感度誤差情報を計算することができる。   According to the present invention, if any six sets of acceleration information based on the detection information of the acceleration sensor can be obtained, the offset error information and the sensitivity error information of the acceleration sensor can be calculated algebraically. Therefore, even if the detection information in the state in which each detection axis direction of the acceleration sensor is accurately set to the upward and downward directions as in the conventional method cannot be obtained, the offset error is based on the detection information obtained regardless of the orientation of the acceleration sensor. Information and sensitivity error information can be calculated.

また、ニュートン法(ニュートン・ラプソン法)により、コンピュータで連立2次方程式の解を反復計算により得る方法では計算が収束するまでに時間がかかるが、本発明によれば、連立2次方程式を連立1次方程式に帰着させて代数的に解くので計算時間を短縮することができる。   In addition, it takes time for the calculation to converge in a method in which the solution of the simultaneous quadratic equation is obtained by iterative calculation with a computer by Newton's method (Newton-Raphson method). Since it is reduced to a linear equation and solved algebraically, the calculation time can be shortened.

(2)また、本発明に係るプログラム及び情報記憶媒体では、前記連立方程式計算部は、前記連立1次方程式の係数行列がその対角要素の絶対値が対角要素でない他のすべての要素の絶対値よりも大きくなるように前記連立1次方程式を作成するようにしてもよい。   (2) Further, in the program and the information storage medium according to the present invention, the simultaneous equation calculation unit is configured such that the coefficient matrix of the simultaneous linear equation includes all other elements whose absolute values of the diagonal elements are not diagonal elements. The simultaneous linear equations may be created so as to be larger than the absolute value.

例えば、所定の規則に従って6組の加速度情報を作成し、連立2次方程式から所定の規則に従って連立1次方程式を作成することにより、対角要素の絶対値が対角要素でない他のすべての要素の絶対値よりも大きくなる係数行列を作成することができる。   For example, by generating six sets of acceleration information according to a predetermined rule and generating simultaneous linear equations according to a predetermined rule from simultaneous quadratic equations, all other elements whose diagonal elements are not diagonal elements in absolute value A coefficient matrix that is larger than the absolute value of can be created.

このようにすれば、連立1次方程式の計算過程でピボット選択を行わなくても解が得られるとともに計算誤差もより小さくなるので、計算負荷を増やさずに連立1次方程式を安定して精度良く解くことができる。   In this way, the solution can be obtained and the calculation error can be reduced without performing pivot selection in the calculation process of the simultaneous linear equations, and the simultaneous linear equations can be stably and accurately increased without increasing the calculation load. Can be solved.

(3)また、本発明に係るプログラム及び情報記憶媒体では、前記連立方程式計算部は、前記6組の加速度情報の中で第1の検出軸方向の値が最大及び最小の2つの前記加速度情報を前記楕円体の方程式の変数にそれぞれ代入して得られた2つの2次方程式の一方から他方を減算して得られる多項式に基づいて前記1次方程式の1つを作成し、前記6組の加速度情報の中で第2の検出軸方向の値が最大及び最小の2つの前記加速度情報を前記楕円体の方程式の変数にそれぞれ代入して得られた2つの2次方程式の一方から他方を減算して得られる多項式に基づいて前記1次方程式の他の1つを作成し、前記6組の加速度情報の中で第3の検出軸方向の値が最大及び最小の2つの前記加速度情報を前記楕円体の方程式の変数にそれぞれ代入して得られた2つの2次方程式の一方から他方を減算して得られる多項式に基づいて前記1次方程式の他の1つを作成するようにしてもよい。   (3) Further, in the program and the information storage medium according to the present invention, the simultaneous equation calculation unit includes the two pieces of acceleration information having a maximum value and a minimum value in the first detection axis direction among the six sets of acceleration information. Is created by subtracting the other from one of the two quadratic equations obtained by substituting each of the ellipsoidal equations into the equation variables, and one of the linear equations is created. Subtract the other from one of the two quadratic equations obtained by substituting the two acceleration information having the maximum and minimum values in the second detection axis direction into the variables of the ellipsoidal equation. Another one of the linear equations is created based on the obtained polynomial, and the two pieces of acceleration information having the maximum and minimum values in the third detection axis direction among the six sets of acceleration information are Substituting for each variable in the ellipsoid equation One may be created other one of said linear equations based on the polynomial obtained by subtracting one from the two quadratic equation is.

例えば、連立方程式計算部は、前記6組の加速度情報の中で第1の検出軸方向の値が最大及び最小の2つの前記加速度情報を検出し、当該2つの加速度情報を前記楕円体の方程式の変数にそれぞれ代入して得られた2つの2次方程式の一方から他方を減算して得られる多項式に基づいて前記1次方程式の1つを作成し、前記6組の加速度情報の中で第2の検出軸方向の値が最大及び最小の2つの前記加速度情報を検出し、当該2つの加速度情報を前記楕円体の方程式の変数にそれぞれ代入して得られた2つの2次方程式の一方から他方を減算して得られる多項式に基づいて前記1次方程式の他の1つを作成し、前記6組の加速度情報の中で第3の検出軸方向の値が最大及び最小の2つの前記加速度情報を検出し、当該2つの加速度情報を前記楕円体の方程式の変数にそれぞれ代入して得られた2つの2次方程式の一方から他方を減算して得られる多項式に基づいて前記1次方程式の他の1つを作成するようにしてもよい。   For example, the simultaneous equation calculation unit detects the two pieces of acceleration information having the maximum and minimum values in the first detection axis direction among the six sets of acceleration information, and uses the two pieces of acceleration information as equations of the ellipsoid. One of the linear equations is created based on a polynomial obtained by subtracting the other from one of the two quadratic equations obtained by substituting each of the variables, and among the six sets of acceleration information, From two of the two quadratic equations obtained by detecting the two acceleration information having the maximum and minimum values in the detection axis direction of 2 and substituting the two acceleration information into the variables of the ellipsoidal equation, respectively. Another one of the linear equations is created based on a polynomial obtained by subtracting the other, and the two accelerations having the maximum and minimum values in the third detection axis direction among the six sets of acceleration information Information is detected, and the two pieces of acceleration information are Another one of the linear equations may be created based on a polynomial obtained by subtracting the other from one of the two quadratic equations obtained by substituting each of the variables in the circular equation. .

また、例えば、連立方程式計算部は、前記6組の加速度情報の中で、第1の検出軸方向の値が最大、前記第1の検出軸方向の値が最小、第2の検出軸方向の値が最大、前記第2の検出軸方向の値が最小、第3の検出軸方向の値が最大、前記第3の検出軸方向の値が最小となる前記加速度情報がぞれぞれあらかじめ決められており、前記6組の加速度情報の中で前記第1の検出軸方向の値が最大及び最小の2つの前記加速度情報を前記楕円体の方程式の変数にそれぞれ代入して得られた2つの2次方程式の一方から他方を減算して得られる多項式に基づいて前記1次方程式の1つを作成し、前記6組の加速度情報の中で前記第2の検出軸方向の値が最大及び最小の2つの前記加速度情報を前記楕円体の方程式の変数にそれぞれ代入して得られた2つの2次方程式の一方から他方を減算して得られる多項式に基づいて前記1次方程式の他の1つを作成し、前記6組の加速度情報の中で前記第3の検出軸方向の値が最大及び最小の2つの前記加速度情報を前記楕円体の方程式の変数にそれぞれ代入して得られた2つの2次方程式の一方から他方を減算して得られる多項式に基づいて前記1次方程式の他の1つを作成するようにしてもよい。   Further, for example, the simultaneous equation calculation unit has the maximum value in the first detection axis direction, the minimum value in the first detection axis direction, and the second detection axis direction in the six sets of acceleration information. The acceleration information with a maximum value, a minimum value in the second detection axis direction, a maximum value in the third detection axis direction, and a minimum value in the third detection axis direction is determined in advance. Two acceleration information obtained by substituting the two acceleration information having the maximum and minimum values in the first detection axis direction into variables of the ellipsoidal equation among the six sets of acceleration information. One of the linear equations is created based on a polynomial obtained by subtracting the other from one of the quadratic equations, and the value in the second detection axis direction is maximum and minimum among the six sets of acceleration information Obtained by substituting the two pieces of acceleration information into the variables of the ellipsoid equation, respectively. Another one of the linear equations is created based on a polynomial obtained by subtracting the other from one of the two quadratic equations, and the value in the third detection axis direction is included in the six sets of acceleration information. Based on a polynomial obtained by subtracting the other from one of two quadratic equations obtained by substituting the maximum and minimum two pieces of acceleration information into the variables of the ellipsoidal equation, One of these may be created.

このようにすれば、連立1次方程式の係数行列において、少なくとも3つの1次方程式に対応する3行に含まれる3つの対角要素の絶対値が比較的大きくなるとともに、当該3行に含まれる他の要素をほぼ0にすることができる。従って、連立1次方程式の計算過程で、少なくとも、この3つの1次方程式についての計算では計算誤差をより小さくすることができるので、連立1次方程式を安定して精度良く解くことが容易になる。   In this way, in the coefficient matrix of the simultaneous linear equations, the absolute values of the three diagonal elements included in the three rows corresponding to at least three linear equations become relatively large and are included in the three rows. Other elements can be made almost zero. Therefore, in the calculation process of the simultaneous linear equations, at least the calculation for these three linear equations can reduce the calculation error, so that it becomes easy to solve the simultaneous linear equations stably and accurately. .

(4)また、本発明に係るプログラム及び情報記憶媒体では、前記連立方程式計算部は、前記連立2次方程式の任意の2つの2次方程式を演算して得られる多項式又は当該多項式を変形した多項式の各項に含まれる、前記6つの未知数から構成される式又は当該式を実数倍した式を前記5つの新たな未知数と対応させて前記連立1次方程式を作成するようにしてもよい。   (4) Further, in the program and the information storage medium according to the present invention, the simultaneous equation calculation unit is a polynomial obtained by calculating any two quadratic equations of the simultaneous quadratic equation or a polynomial obtained by modifying the polynomial. The simultaneous linear equations may be created by associating an expression composed of the six unknowns included in each term or an expression obtained by multiplying the expression by a real number with the five new unknowns.

例えば、前記連立方程式計算部は、前記6つのパラメータのうち、前記加速度センサの3つの検出軸方向の感度のパラメータをそれぞれa,b,c、前記加速度センサの3つの検出軸方向のオフセットのパラメータをそれぞれp,q,rとした時、前記5つの新たな未知数α,β,γ,δ,εを、α=p,β=(a/b)q,γ=(a/c)r,δ=a/b,ε=a/cとして前記連立1次方程式を作成するようにしてもよい。 For example, the simultaneous equation calculation unit includes a, b, c as sensitivity parameters in the three detection axis directions of the acceleration sensor, and three offset parameters in the detection axis direction of the acceleration sensor, among the six parameters. P, q, and r, respectively, the five new unknowns α, β, γ, δ, ε are expressed as α = p, β = (a 2 / b 2 ) q, γ = (a 2 / c 2 ) The simultaneous linear equations may be created with r, δ = a 2 / b 2 and ε = a 2 / c 2 .

(5)また、本発明に係るプログラム及び情報記憶媒体では、前記連立方程式計算部は、前記加速度センサの3つの検出軸で作られる3次元空間において互いに直交する所定の3つの軸がそれぞれ重力方向(すなわち、重力が加わる方向)の逆方向又はその近傍を向く状態で得られる3組の前記検出情報に基づく3組の前記加速度情報と、前記前記所定の3つの軸がそれぞれ重力方向又はその近傍を向く状態で得られる3組の前記検出情報に基づく3組の前記加速度情報と、を用いて前記連立2次方程式を作成するようにしてもよい。   (5) In the program and the information storage medium according to the present invention, the simultaneous equation calculation unit is configured so that predetermined three axes orthogonal to each other in a three-dimensional space formed by the three detection axes of the acceleration sensor are in the direction of gravity. The three sets of acceleration information based on the three sets of detection information obtained in the opposite direction (ie, the direction in which gravity is applied) or the vicinity thereof, and the predetermined three axes are the gravity direction or the vicinity thereof, respectively. The simultaneous quadratic equations may be created using three sets of the acceleration information based on the three sets of detection information obtained in a state of facing.

このようにすれば、加速度センサの3つの検出軸で作られる3次元空間上で、6組の加速度情報に対応する6点が互いに十分離れた位置になるので、この6組の加速度情報を用いればより精度良く楕円体の方程式を特定することができる。すなわち、加速度センサのオフセット誤差情報及び感度誤差情報をより精度良く計算することができる。   In this way, the six points corresponding to the six sets of acceleration information are positioned sufficiently apart from each other in the three-dimensional space created by the three detection axes of the acceleration sensor, so that the six sets of acceleration information can be used. The ellipsoidal equation can be specified with higher accuracy. That is, the offset error information and sensitivity error information of the acceleration sensor can be calculated with higher accuracy.

(6)また、本発明に係るプログラム及び情報記憶媒体では、前記連立方程式作成部は、前記加速度センサの3つの検出軸をx軸、y軸、z軸とし、前記6つのパラメータのうち、前記加速度センサのx軸方向、y軸方向、z軸方向の感度のパラメータをそれぞれa,b,c、前記加速度センサのx軸方向、y軸方向、z軸方向のオフセットのパラメータをぞれぞれp,q,rとした時、前記楕円体の方程式として方程式{(x−p)/a}+{(y−q)/b}+{(z−r)/c}=1を用いるようにしてもよい。 (6) In the program and the information storage medium according to the present invention, the simultaneous equation creating unit sets the three detection axes of the acceleration sensor as an x-axis, a y-axis, and a z-axis, and among the six parameters, The sensitivity parameters of the acceleration sensor in the x-axis direction, y-axis direction, and z-axis direction are a, b, and c, respectively, and the x-axis direction, y-axis direction, and z-axis direction offset parameters of the acceleration sensor are respectively shown. When p, q, r, the equation {(x−p) / a} 2 + {(y−q) / b} 2 + {(z−r) / c} 2 = 1 as the ellipsoidal equation. May be used.

(7)また、本発明に係るプログラム及び情報記憶媒体では、前記加速度センサの前記検出情報を取得し、取得した前記検出情報に基づいて前記加速度情報を生成する加速度情報生成部を含むようにしてもよい。   (7) The program and the information storage medium according to the present invention may include an acceleration information generation unit that acquires the detection information of the acceleration sensor and generates the acceleration information based on the acquired detection information. .

(8)また、本発明に係るプログラム及び情報記憶媒体では、前記加速度情報生成部は、前記検出情報に基づいて、前記加速度センサの運動による加速度が無視できる状態であるか否かを判定し、前記加速度センサの運動による加速度が無視できる状態での前記検出情報に基づいて、前記加速度情報を生成するようにしてもよい。   (8) In the program and the information storage medium according to the present invention, the acceleration information generation unit determines whether or not the acceleration due to the motion of the acceleration sensor is negligible based on the detection information, The acceleration information may be generated based on the detection information in a state where the acceleration due to the motion of the acceleration sensor can be ignored.

「運動による加速度が無視できる状態」とは、運動による加速度が0又は0に近い状態であり、加速度センサが静止している状態や等速運動している状態を含む。   The “state where the acceleration due to movement can be ignored” is a state where the acceleration due to movement is 0 or close to 0, and includes a state where the acceleration sensor is stationary or moving at a constant speed.

このようにすれば、加速度情報の各々は3つの検出軸方向の重力加速度成分がより正確に反映されるので、より精度良く楕円体の方程式を特定することができる。すなわち、加速度センサのオフセット誤差情報及び感度誤差情報をより精度良く計算することができる。   In this way, each piece of acceleration information more accurately reflects the gravitational acceleration components in the three detection axis directions, so that the ellipsoidal equation can be specified more accurately. That is, the offset error information and sensitivity error information of the acceleration sensor can be calculated with higher accuracy.

(9)また、本発明に係るプログラム及び情報記憶媒体では、前記加速度情報生成部は、前記検出情報の変動幅が所定の条件を満たす状態が所定時間持続すれば前記加速度センサの運動による加速度が無視できる状態であると判定するようにしてもよい。   (9) Further, in the program and the information storage medium according to the present invention, the acceleration information generation unit causes the acceleration due to the movement of the acceleration sensor if the fluctuation range of the detection information satisfies a predetermined condition for a predetermined time. You may make it determine with it being in a state which can be disregarded.

「前記検出情報の変動幅が所定の条件を満たす状態」とは、例えば、前記検出情報の変動幅が所定値以下又は所定値未満である状態であってもよい。   The “state in which the fluctuation range of the detection information satisfies a predetermined condition” may be, for example, a state in which the fluctuation range of the detection information is a predetermined value or less or less than a predetermined value.

(10)また、本発明に係るプログラム及び情報記憶媒体では、前記加速度情報生成部は、前記所定時間に取得した複数の前記検出情報に基づいて前記加速度情報を生成するようにしてもよい。   (10) In the program and the information storage medium according to the present invention, the acceleration information generation unit may generate the acceleration information based on a plurality of the detection information acquired at the predetermined time.

例えば、前記加速度情報生成部は、前記所定時間に取得した複数の前記検出情報の全部又は一部の平均値を前記加速度情報とするようにしてもよい。   For example, the acceleration information generation unit may use, as the acceleration information, an average value of all or part of the plurality of detection information acquired at the predetermined time.

このようにすれば、加速度センサの検出情報に含まれるランダムなノイズや丸め誤差の影響を減らすことができるので、加速度センサのオフセット誤差情報及び感度誤差情報をさらに精度良く計算することができる。   In this way, the influence of random noise and rounding error included in the detection information of the acceleration sensor can be reduced, so that the offset error information and sensitivity error information of the acceleration sensor can be calculated with higher accuracy.

(11)また、本発明は、加速度センサのオフセット誤差情報及び感度誤差情報を計算する加速度センサの誤差測定方法であって、前記加速度センサの互いに直交する3つの検出軸で作られる3次元空間において互いに直交する所定の3つの軸のうちの第1の軸が重力方向の逆方向又はその近傍を向く状態で前記加速度センサの検出情報を取得し、当該検出情報に基づいて第1の加速度情報を生成する第1の加速度情報生成ステップと、前記第1の軸が重力方向又はその近傍を向く状態で前記加速度センサの検出情報を取得し、当該検出情報に基づいて第2の加速度情報を生成する第2の加速度情報生成ステップと、前記所定の3つの軸のうちの第2の軸が重力方向の逆方向又はその近傍を向く状態で前記加速度センサの検出情報を取得し、当該検出情報に基づいて第3の加速度情報を生成する第3の加速度情報生成ステップと、前記第2の軸が重力方向又はその近傍を向く状態で前記加速度センサの検出情報を取得し、当該検出情報に基づいて第4の加速度情報を生成する第4の加速度情報生成ステップと、前記所定の3つの軸のうちの第3の軸が重力方向の逆方向又はその近傍を向く状態で前記加速度センサの検出情報を取得し、当該検出情報に基づいて第5の加速度情報を生成する第5の加速度情報生成ステップと、前記第3の軸が重力方向又はその近傍を向く状態で前記加速度センサの検出情報を取得し、当該検出情報に基づいて第6の加速度情報を生成する第6の加速度情報生成ステップと、前記加速度センサの3つの検出軸方向の各感度及び各オフセットに対応した6つのパラメータを含む楕円体の方程式の変数に、前記第1の加速度情報、前記第2の加速度情報、前記第3の加速度情報、前記第4の加速度情報、前記第5の加速度情報及び前記第6の加速度情報をそれぞれ代入し、前記6つのパラメータを未知数とする6つの2次方程式からなる連立2次方程式を作成する連立方程式作成ステップと、前記連立2次方程式を、前記6つの未知数の少なくとも1つを含む式でそれぞれ表される5つの新たな未知数を含むとともに前記6つの未知数のいずれも含まない5つの1次方程式からなる連立1次方程式に帰着させて当該連立1次方程式を解く連立方程式計算ステップと、前記5つの新たな未知数の値から前記6つの未知数の値を計算し、計算結果に基づいて前記加速度センサの前記3つの検出軸方向のオフセット誤差情報及び感度誤差情報を計算する誤差計算ステップと、を含む、加速度センサの誤差測定方法に関するものである。   (11) Further, the present invention is an acceleration sensor error measuring method for calculating offset error information and sensitivity error information of an acceleration sensor, in a three-dimensional space formed by three detection axes orthogonal to each other of the acceleration sensor. The detection information of the acceleration sensor is acquired in a state where the first axis among predetermined three axes orthogonal to each other faces in the reverse direction of the gravity direction or the vicinity thereof, and the first acceleration information is obtained based on the detection information. A first acceleration information generation step to be generated, and detection information of the acceleration sensor is acquired in a state where the first axis faces the gravity direction or the vicinity thereof, and second acceleration information is generated based on the detection information. The second acceleration information generation step, and the detection information of the acceleration sensor is acquired in a state where the second axis of the predetermined three axes faces the direction opposite to or near the gravity direction; A third acceleration information generating step for generating third acceleration information based on the detection information; and acquiring the detection information of the acceleration sensor in a state where the second axis faces the gravity direction or its vicinity. A fourth acceleration information generating step for generating fourth acceleration information based on the information, and the acceleration sensor in a state in which the third axis of the predetermined three axes faces the direction opposite to or near the gravity direction. And a fifth acceleration information generation step for generating fifth acceleration information based on the detection information, and detection of the acceleration sensor in a state where the third axis faces the gravity direction or its vicinity. A sixth acceleration information generation step of acquiring information and generating sixth acceleration information based on the detection information; and 6 corresponding to each sensitivity and each offset in the three detection axis directions of the acceleration sensor The first acceleration information, the second acceleration information, the third acceleration information, the fourth acceleration information, the fifth acceleration information, and the sixth , The simultaneous equation creating step of creating simultaneous quadratic equations composed of six quadratic equations with the six parameters as unknowns, and the simultaneous quadratic equations at least one of the six unknowns. Simultaneous equations that solve the simultaneous linear equations by reducing them to five linear equations that include five new unknowns, each of which includes five new unknowns that are each represented by an equation that includes one of the six unknowns. Calculating the six unknown values from the calculation step and the five new unknown values; And an error calculating step for calculating offset error information and sensitivity error information.

本発明によれば、加速度センサの向きに関係なく得られた検出情報に基づきオフセット誤差情報及び感度誤差情報を計算することができるとともに、連立2次方程式を連立1次方程式に帰着させて代数的に解くので計算時間を短縮することができる。   According to the present invention, offset error information and sensitivity error information can be calculated based on detection information obtained regardless of the orientation of the acceleration sensor, and the simultaneous quadratic equation can be reduced to the simultaneous linear equation to be algebraic. The calculation time can be shortened.

また、本発明によれば、加速度センサの3つの検出軸で作られる3次元空間上で、6組の加速度情報に対応する6点が互いに十分離れた位置になるので、この6組の加速度情報を用いればより精度良く楕円体の方程式を特定することができる。すなわち、加速度センサのオフセット誤差情報及び感度誤差情報をより精度良く計算することができる。   Further, according to the present invention, the six points corresponding to the six sets of acceleration information are positioned sufficiently apart from each other on the three-dimensional space formed by the three detection axes of the acceleration sensor. Can be used to specify the ellipsoidal equation more accurately. That is, the offset error information and sensitivity error information of the acceleration sensor can be calculated with higher accuracy.

(12)また、本発明は、加速度センサのオフセット誤差情報及び感度誤差情報を測定する加速度センサの誤差測定装置であって、前記加速度センサの検出情報を取得し、取得した前記検出情報に基づいて6組の加速度情報を生成する加速度情報生成部と、前記加速度センサの互いに直交する3つの検出軸方向の各感度及び各オフセットに対応した6つのパラメータを含む楕円体の方程式の変数に、前記6組の加速度情報を代入し、前記6つのパラメータを未知数とする6つの2次方程式からなる連立2次方程式を作成する連立方程式作成部と、前記連立2次方程式を、前記6つの未知数の少なくとも1つを含む式でそれぞれ表される5つの新たな未知数を含むとともに前記6つの未知数のいずれも含まない5つの1次方程式からなる連立1次方程式に帰着させて当該連立1次方程式を解く連立方程式計算部と、前記5つの新たな未知数の値から前記6つの未知数の値を計算し、計算結果に基づいて前記加速度センサの前記3つの検出軸方向のオフセット誤差情報及び感度誤差情報を計算する加速度誤差計算部と、を含む加速度センサの誤差測定装置に関するものである。   (12) Further, the present invention is an error measuring apparatus for an acceleration sensor that measures offset error information and sensitivity error information of the acceleration sensor, acquires detection information of the acceleration sensor, and based on the acquired detection information The variable of the ellipsoidal equation including six parameters corresponding to the acceleration information generation unit that generates six sets of acceleration information and the sensitivity and each offset in the three detection axis directions orthogonal to each other of the acceleration sensor. A set of simultaneous equations and a simultaneous equation creating unit that creates simultaneous quadratic equations composed of six quadratic equations with the six parameters as unknowns; and the simultaneous quadratic equations are set as at least one of the six unknowns. A set of five linear equations that contain five new unknowns, each of which is represented by an equation containing one, and that do not contain any of the six unknowns. A simultaneous equation calculator that solves the simultaneous linear equations by reducing the equations, and calculates the six unknown values from the five new unknown values, and the three detections of the acceleration sensor based on the calculation results The present invention relates to an error measurement apparatus for an acceleration sensor, including an acceleration error calculation unit that calculates offset error information and sensitivity error information in the axial direction.

本発明によれば、加速度センサの向きに関係なく取得した検出情報に基づきオフセット誤差情報及び感度誤差情報を計算することができるとともに、連立2次方程式を連立1次方程式に帰着させて代数的に解くので計算時間を短縮することができる。   According to the present invention, offset error information and sensitivity error information can be calculated based on detection information acquired regardless of the orientation of the acceleration sensor, and the simultaneous quadratic equations can be reduced to simultaneous linear equations algebraically. Since it solves, the calculation time can be shortened.

(13)また、本発明は、プレイヤの入力動作に応じて変化する加速度を検出する加速度センサを備えた入力装置から前記加速度センサの検出情報を取得してゲーム演算を行うゲームシステムであって、前記加速度センサの前記検出情報に基づいて、前記加速度センサのオフセット誤差情報及び感度誤差情報を計算して記憶部に記憶させる加速度誤差測定部と、前記記憶部に記憶された前記オフセット誤差情報及び前記感度誤差情報に基づいて、前記加速度センサの検出情報を補正してゲーム演算を行うゲーム演算部と、を含み、前記加速度誤差測定部は、前記入力装置から前記加速度センサの前記検出情報を取得し、取得した前記検出情報に基づいて6組の加速度情報を生成する加速度情報生成部と、前記加速度センサの互いに直交する3つの検出軸方向の各感度及び各オフセットに対応した6つのパラメータを含む楕円体の方程式の変数に、前記6組の加速度情報を代入し、前記6つのパラメータを未知数とする6つの2次方程式からなる連立2次方程式を作成する連立方程式作成部と、前記連立2次方程式を、前記6つの未知数の少なくとも1つを含む式でそれぞれ表される5つの新たな未知数を含むとともに前記6つの未知数のいずれも含まない5つの1次方程式からなる連立1次方程式に帰着させて当該連立1次方程式を解く連立方程式計算部と、前記5つの新たな未知数の値から前記6つの未知数の値を計算し、計算結果に基づいて前記加速度センサの前記3つの検出軸方向のオフセット誤差情報及び感度誤差情報を計算する加速度誤差計算部と、前記オフセット誤差情報及び前記感度誤差情報を前記記憶部に記憶させる加速度誤差設定部と、を含む、ゲームシステムに関するものである。   (13) Further, the present invention is a game system for performing game calculation by acquiring detection information of the acceleration sensor from an input device including an acceleration sensor that detects an acceleration that changes according to an input operation of the player, Based on the detection information of the acceleration sensor, the offset error information and sensitivity error information of the acceleration sensor are calculated and stored in a storage unit; the offset error information stored in the storage unit; and A game calculation unit that corrects detection information of the acceleration sensor based on sensitivity error information and performs a game calculation, and the acceleration error measurement unit acquires the detection information of the acceleration sensor from the input device. An acceleration information generation unit that generates six sets of acceleration information based on the acquired detection information, and the acceleration sensor 3 orthogonal to each other. From the six quadratic equations in which the six sets of acceleration information are substituted into the variables of the ellipsoidal equation including the six parameters corresponding to the sensitivity and the offset in the detection axis direction, and the six parameters are unknown. A simultaneous equation creating unit for creating the simultaneous quadratic equation, and the simultaneous quadratic equation including five new unknowns each represented by an expression including at least one of the six unknowns and the six unknowns A simultaneous equation calculation unit that solves the simultaneous linear equations by reducing the simultaneous linear equations to five simultaneous equations that do not include any of the above, and calculates the values of the six unknowns from the five new unknown values. An acceleration error calculation unit for calculating offset error information and sensitivity error information in the three detection axis directions of the acceleration sensor based on the calculation result; and the offset error Including an acceleration error setting unit to store the broadcast and the sensitivity error information in the storage unit, and relates to a game system.

本発明によれば、ゲーム演算を開始する前に、加速度センサの向きに関係なく得られた検出情報に基づきオフセット誤差情報及び感度誤差情報を計算することができる。従って、加速度センサのオフセット誤差情報及び感度誤差情報を測定するために、プレイヤが加速度センサの各検出軸が正確に上向き及び下向きになるように入力装置を保持する煩わしさがなくなる。そして、記憶部に記憶されたオフセット誤差情報及び感度誤差情報に基づいて、加速度センサの検出情報を補正するので、プレイヤの入力操作をより正確に反映したゲーム演算を行うことができる。   According to the present invention, it is possible to calculate offset error information and sensitivity error information based on detection information obtained regardless of the orientation of the acceleration sensor before starting the game calculation. Therefore, in order to measure the offset error information and the sensitivity error information of the acceleration sensor, there is no trouble for the player to hold the input device so that each detection axis of the acceleration sensor is accurately upward and downward. And since the detection information of an acceleration sensor is correct | amended based on the offset error information and sensitivity error information which were memorize | stored in the memory | storage part, the game calculation which reflected player's input operation more correctly can be performed.

(14)また、本発明に係るゲームシステムでは、前記加速度誤差測定部は、ゲームプログラムの起動時又は加速度誤差測定イベントが発生した場合に、前記検出情報を取得して前記オフセット誤差情報及び前記感度誤差情報の計算を行い、計算した前記オフセット誤差情報及び前記感度誤差情報を前記記憶部に記憶させるようにしてもよい。   (14) In the game system according to the present invention, the acceleration error measurement unit acquires the detection information to obtain the offset error information and the sensitivity when the game program is started or when an acceleration error measurement event occurs. Error information may be calculated, and the calculated offset error information and sensitivity error information may be stored in the storage unit.

例えば、プレイヤが所定の操作入力を行うことにより、加速度誤差測定イベントを自発的に発生させてもよいし、ゲームシステムが所定の条件が成立するか否かを判定して加速度誤差測定イベントを発生させるか否かを決定するようにしてもよい。   For example, an acceleration error measurement event may be generated spontaneously by a player performing a predetermined operation input, or an acceleration error measurement event is generated by determining whether or not a predetermined condition is satisfied by the game system. You may make it determine whether to make it carry out.

加速度センサの誤差測定装置の機能ブロック図。The functional block diagram of the error measuring device of an acceleration sensor. 図2(A)〜図2(D)は、測定対象装置の概略外観図。2A to 2D are schematic external views of the measurement target device. 式(8)で表される球を模式的に表した図。The figure which represented the sphere represented by Formula (8) typically. 式(9)で表される楕円体を模式的に表した図。The figure which represented typically the ellipsoid represented by Formula (9). 6個の測定値(6組の加速度情報)と式(9)で表される楕円体の関係について説明するための図。The figure for demonstrating the relationship of the ellipsoid represented by six measured values (six sets of acceleration information) and Formula (9). 独立な連立方程式の構成について説明するための図。The figure for demonstrating the structure of an independent simultaneous equation. 独立な連立方程式の構成について説明するための図。The figure for demonstrating the structure of an independent simultaneous equation. 独立な連立方程式の構成について説明するための図。The figure for demonstrating the structure of an independent simultaneous equation. 独立な連立方程式の構成について説明するための図。The figure for demonstrating the structure of an independent simultaneous equation. 独立な連立方程式の構成について説明するための図。The figure for demonstrating the structure of an independent simultaneous equation. 独立な連立方程式の構成について説明するための図。The figure for demonstrating the structure of an independent simultaneous equation. 独立な連立方程式の構成について説明するための図。The figure for demonstrating the structure of an independent simultaneous equation. 表1に示す測定により得られた6個の測定値の配置を示す図。The figure which shows arrangement | positioning of the six measured values obtained by the measurement shown in Table 1. FIG. x、y、zいずれかの1軸方向の測定値の時系列の一例を示す図。The figure which shows an example of the time series of the measured value of the uniaxial direction in any one of x, y, and z. 本実施形態の加速度センサの誤差測定装置の処理例を示すフローチャート。The flowchart which shows the process example of the error measuring apparatus of the acceleration sensor of this embodiment. 加速度情報を生成する処理例を示すフローチャート。The flowchart which shows the process example which produces | generates acceleration information. 加速度センサの誤差測定精度をさらに良くするための処理例を示すフローチャート。The flowchart which shows the process example for improving the error measurement precision of an acceleration sensor further. 本実施形態のゲームシステムの機能ブロック図。The functional block diagram of the game system of this embodiment. 本実施形態のゲームシステムの処理例を示すフローチャート。The flowchart which shows the process example of the game system of this embodiment.

以下、本発明の好適な実施形態について図面を用いて詳細に説明する。なお、以下に説明する実施の形態は、特許請求の範囲に記載された本発明の内容を不当に限定するものではない。また以下で説明される構成の全てが本発明の必須構成要件であるとは限らない。   DESCRIPTION OF EMBODIMENTS Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings. The embodiments described below do not unduly limit the contents of the present invention described in the claims. Also, not all of the configurations described below are essential constituent requirements of the present invention.

1.加速度センサの誤差測定装置
1−1.構成
図1は、加速度センサの誤差測定装置の機能ブロック図の一例である。なお本実施形態の加速度センサの誤差測定装置では、図1の各部を全て含む必要はなく、その一部を省略した構成としてもよい。以下では、「加速度センサの誤差測定装置」を、「加速度誤差測定装置」と表記する。
1. 1. Accelerometer error measurement device 1-1. Configuration FIG. 1 is an example of a functional block diagram of an error measurement device for an acceleration sensor. Note that the error measurement device for an acceleration sensor according to the present embodiment does not have to include all of the components shown in FIG. Hereinafter, the “acceleration sensor error measurement device” is referred to as an “acceleration error measurement device”.

本実施形態の加速度誤差測定装置1は、測定対象装置2に含まれる加速度センサ20のオフセット誤差情報及び感度誤差情報を測定する処理を行う。   The acceleration error measurement device 1 according to the present embodiment performs processing for measuring offset error information and sensitivity error information of the acceleration sensor 20 included in the measurement target device 2.

本実施形態では、測定対象装置2は、加速度センサ20、マイコン22、通信部24を含んで構成されている。例えば、測定対象装置2として、図2(A)〜図2(C)に示すようなゲームコントローラや図2(D)に示すような携帯電話機などが考えられる。   In the present embodiment, the measurement target device 2 includes an acceleration sensor 20, a microcomputer 22, and a communication unit 24. For example, the measurement target device 2 may be a game controller as shown in FIGS. 2A to 2C or a mobile phone as shown in FIG.

加速度センサ20は、互いに直交する3軸方向(x軸方向、y軸方向、z軸方向)の加速度を検出する。測定対象装置2の向きが変わると加速度センサ20の向きも変わる。また、測定対象装置によって、加速度センサの向きはそれぞれ異なる。例えば、図2(A)〜図2(D)に示す測定対象装置2では、それぞれの加速度センサ20の3つの検出軸方向が図2(A)〜図2(D)に示す方向になっている。   The acceleration sensor 20 detects acceleration in three axial directions (x-axis direction, y-axis direction, and z-axis direction) orthogonal to each other. When the orientation of the measurement target device 2 changes, the orientation of the acceleration sensor 20 also changes. In addition, the direction of the acceleration sensor varies depending on the measurement target device. For example, in the measurement target device 2 shown in FIGS. 2 (A) to 2 (D), the three detection axis directions of each acceleration sensor 20 are the directions shown in FIGS. 2 (A) to 2 (D). Yes.

そして、加速度センサ20は、一定時間(例えば、5msec)毎に3軸分の加速度を検出し、加速度センサ20によって検出された加速度値(検出情報)は、通信部24によって加速度誤差測定装置1に送信される。   The acceleration sensor 20 detects acceleration for three axes at regular time intervals (for example, 5 msec), and the acceleration value (detection information) detected by the acceleration sensor 20 is transmitted to the acceleration error measurement device 1 by the communication unit 24. Sent.

マイコン(マイクロコンピュータ)22は、加速度センサ20が検出した加速度値(検出情報)を通信部24を介して加速度誤差測定装置1に送信させる処理を行う。   The microcomputer (microcomputer) 22 performs processing for transmitting the acceleration value (detection information) detected by the acceleration sensor 20 to the acceleration error measurement device 1 via the communication unit 24.

通信部24は、アンテナ、無線モジュールを含み、例えばBluetooth(ブルートゥース;登録商標)などの通信方式により、加速度誤差測定装置1にデータを無線で送信する。通信部24は、加速度センサ20によって検出された加速度値(検出情報)を、所定時間間隔で順次加速度誤差測定装置1に送信している。なお、通信部24は、加速度誤差測定装置1と通信ケーブルで接続し、当該通信ケーブルを介して検出情報の送信を行うようにしてもよい。   The communication unit 24 includes an antenna and a wireless module, and wirelessly transmits data to the acceleration error measurement device 1 by a communication method such as Bluetooth (registered trademark). The communication unit 24 sequentially transmits acceleration values (detection information) detected by the acceleration sensor 20 to the acceleration error measurement device 1 at predetermined time intervals. Note that the communication unit 24 may be connected to the acceleration error measurement device 1 with a communication cable and transmit the detection information via the communication cable.

本実施形態の加速度誤差測定装置1は、処理部10、記憶部30、操作部32、表示部34、情報記憶媒体36、通信部38、音出力部40を含んで構成される。   The acceleration error measuring apparatus 1 according to the present embodiment includes a processing unit 10, a storage unit 30, an operation unit 32, a display unit 34, an information storage medium 36, a communication unit 38, and a sound output unit 40.

記憶部30は、処理部10や通信部38などのワーク領域となるもので、その機能はRAM(VRAM)などのハードウェアにより実現できる。   The storage unit 30 is a work area such as the processing unit 10 or the communication unit 38, and its function can be realized by hardware such as RAM (VRAM).

操作部32は、ユーザが加速度センサの誤差測定の開始や終了などを指示する操作データを入力するためのものであり、その機能は、操作ボタン、タッチパネル型ディスプレイ、キーボード、マウスなどにより実現できる。   The operation unit 32 is used by the user to input operation data for instructing the start or end of error measurement of the acceleration sensor, and the function can be realized by an operation button, a touch panel display, a keyboard, a mouse, and the like.

表示部34は、処理部10により指示された情報を出力するものであり、その機能は、CRTディスプレイ、LCD(液晶ディスプレイ)、OELD有機ELディスプレイ、PDP(プラズマディスプレイパネル)、タッチパネル型ディスプレイ、或いはHMD(ヘッドマウントディスプレイ)などのハードウェアにより実現できる。   The display unit 34 outputs information instructed by the processing unit 10 and functions as a CRT display, LCD (liquid crystal display), OELD organic EL display, PDP (plasma display panel), touch panel type display, or It can be realized by hardware such as an HMD (head mounted display).

音出力部40は、処理部10により指示された音を出力するものであり、その機能は、スピーカ、或いはヘッドフォンなどのハードウェアにより実現できる。   The sound output unit 40 outputs a sound instructed by the processing unit 10, and its function can be realized by hardware such as a speaker or headphones.

通信部38は、アンテナ、無線モジュールを含み、例えばBluetooth(ブルートゥース;登録商標)などの通信方式により、測定対象装置2の通信部24を介して、測定対象装置2からデータを受信する。例えば、通信部38は、測定対象装置2において加速度センサ20よる検出情報を、所定時間間隔で順次受信する。   The communication unit 38 includes an antenna and a wireless module, and receives data from the measurement target device 2 via the communication unit 24 of the measurement target device 2 by a communication method such as Bluetooth (registered trademark). For example, the communication unit 38 sequentially receives detection information from the acceleration sensor 20 in the measurement target device 2 at predetermined time intervals.

また、通信部38は、ネットワーク(インターネット)を介してサーバと通信することができるようにしてもよい。その機能は、各種プロセッサ又は通信用ASIC、ネットワーク・インタフェース・カードなどのハードウェアや、プログラムなどにより実現できる。また、通信部38は、有線、無線いずれの通信も行うことができる。   The communication unit 38 may communicate with the server via a network (Internet). The function can be realized by various processors, hardware such as a communication ASIC, a network interface card, or a program. The communication unit 38 can perform both wired and wireless communications.

処理部10(プロセッサ)は、測定対象装置2から受信した加速度センサ20の検出情報や情報記憶媒体36から記憶部30に展開されたプログラム等に基づいて処理を行う。   The processing unit 10 (processor) performs processing based on detection information of the acceleration sensor 20 received from the measurement target device 2, a program developed from the information storage medium 36 to the storage unit 30, and the like.

本実施形態の処理部10は、加速度情報生成部11、連立方程式作成部12、連立方程式計算部13、加速度誤差計算部14を含む。また、処理部10は、表示制御部15や音出力制御部16を含んでもよい。   The processing unit 10 according to the present embodiment includes an acceleration information generation unit 11, simultaneous equation creation unit 12, simultaneous equation calculation unit 13, and acceleration error calculation unit 14. Further, the processing unit 10 may include a display control unit 15 and a sound output control unit 16.

加速度情報生成部11は、測定対象装置2から加速度センサ20の検出情報を取得し、取得した検出情報に基づいて加速度情報を生成する処理を行う。   The acceleration information generation unit 11 acquires the detection information of the acceleration sensor 20 from the measurement target device 2 and performs a process of generating acceleration information based on the acquired detection information.

例えば、加速度情報生成部11は、加速度センサ20の検出情報に基づいて、加速度センサ20の運動による加速度が無視できる状態であるか否かを判定し、加速度センサ20の運動による加速度が無視できる状態での検出情報に基づいて、加速度情報を生成するようにしてもよい。   For example, the acceleration information generation unit 11 determines whether or not the acceleration due to the motion of the acceleration sensor 20 can be ignored based on the detection information of the acceleration sensor 20, and the acceleration due to the motion of the acceleration sensor 20 can be ignored. The acceleration information may be generated based on the detection information at.

また、例えば、加速度情報生成部11は、加速度センサ20の検出情報の変動幅が所定の条件を満たす状態(例えば、所定値以下である状態)が所定時間持続すれば加速度センサ20の運動による加速度が無視できる状態であると判定するようにしてもよい。   In addition, for example, the acceleration information generation unit 11 determines the acceleration due to the motion of the acceleration sensor 20 if a state in which the fluctuation range of the detection information of the acceleration sensor 20 satisfies a predetermined condition (for example, a state where the variation is less than a predetermined value) continues for a predetermined time. May be determined to be in a state that can be ignored.

また、例えば、加速度情報生成部11は、前記所定時間に取得した複数の検出情報に基づいて前記加速度情報を生成する(例えば、前記所定時間に取得した複数の検出情報の全部又は一部の平均値を加速度情報とする)ようにしてもよい。   Further, for example, the acceleration information generation unit 11 generates the acceleration information based on a plurality of detection information acquired at the predetermined time (for example, an average of all or part of the plurality of detection information acquired at the predetermined time). The value may be acceleration information).

連立方程式作成部12は、加速度センサ20の互いに直交する3つの検出軸方向の各感度及び各オフセットに対応した6つのパラメータを含む楕円体の方程式の変数に、加速度センサ20の検出情報に基づく6組の加速度情報を代入し、前記6つのパラメータを未知数とする6つの2次方程式からなる連立2次方程式を作成する処理を行う。   The simultaneous equation creating unit 12 is based on the detection information of the acceleration sensor 20 based on the detection information of the acceleration sensor 20 as variables of an ellipsoidal equation including six parameters corresponding to the respective sensitivity and offset in the three detection axis directions orthogonal to each other. A set of acceleration information is substituted, and a process of creating simultaneous quadratic equations composed of six quadratic equations with the six parameters as unknowns is performed.

例えば、連立方程式作成部12は、加速度センサ20の3つの検出軸をx軸、y軸、z軸とし、前記6つのパラメータのうち、加速度センサ20のx軸方向、y軸方向、z軸方向の感度のパラメータをそれぞれa,b,c、加速度センサ20のx軸方向、y軸方向、z軸方向のオフセットのパラメータをぞれぞれp,q,rとした時、楕円体の方程式として方程式{(x−p)/a}+{(y−q)/b}+{(z−r)/c}=1を用いるようにしてもよい。 For example, the simultaneous equation creating unit 12 sets the three detection axes of the acceleration sensor 20 as the x-axis, y-axis, and z-axis, and among the six parameters, the x-axis direction, the y-axis direction, and the z-axis direction of the acceleration sensor 20 When the sensitivity parameters are a, b, and c, and the offset parameters of the acceleration sensor 20 in the x-axis direction, y-axis direction, and z-axis direction are p, q, and r, respectively, The equation {(x−p) / a} 2 + {(y−q) / b} 2 + {(z−r) / c} 2 = 1 may be used.

連立方程式計算部13は、連立方程式作成部12が作成した連立2次方程式を、前記6つの未知数の少なくとも1つを含む式でそれぞれ表される5つの新たな未知数を含むとともに前記6つの未知数のいずれも含まない5つの1次方程式からなる連立1次方程式に帰着させて当該連立1次方程式を解く処理を行う。   The simultaneous equation calculation unit 13 includes the five new unknowns represented by the equations including at least one of the six unknowns as the simultaneous quadratic equation created by the simultaneous equation creation unit 12 and the six unknowns. A process of solving the simultaneous linear equations by reducing the simultaneous linear equations to five linear equations that do not include any of them is performed.

また、例えば、連立方程式計算部13は、連立1次方程式の係数行列がその対角要素の絶対値が対角要素でない他のすべての要素の絶対値よりも大きくなるように連立1次方程式を作成するようにしてもよい。   Further, for example, the simultaneous equation calculation unit 13 converts the simultaneous linear equations so that the coefficient matrix of the simultaneous linear equations has an absolute value of the diagonal elements larger than the absolute values of all other elements that are not diagonal elements. You may make it create.

また、例えば、連立方程式計算部13は、加速度センサ20の検出情報に基づく6組の加速度情報の中で第1の検出軸方向の値が最大及び最小の2つの加速度情報を楕円体の方程式の変数にそれぞれ代入して得られた2つの2次方程式の一方から他方を減算して得られる多項式に基づいて1次方程式の1つを作成し、前記6組の加速度情報の中で第2の検出軸方向の値が最大及び最小の2つの加速度情報を楕円体の方程式の変数にそれぞれ代入して得られた2つの2次方程式の一方から他方を減算して得られる多項式に基づいて1次方程式の他の1つを作成し、前記6組の加速度情報の中で第3の検出軸方向の値が最大及び最小の2つの加速度情報を楕円体の方程式の変数にそれぞれ代入して得られた2つの2次方程式の一方から他方を減算して得られる多項式に基づいて1次方程式の他の1つを作成するようにしてもよい。   Further, for example, the simultaneous equation calculation unit 13 calculates two pieces of acceleration information having the maximum and minimum values in the first detection axis direction among the six sets of acceleration information based on the detection information of the acceleration sensor 20 as an ellipsoidal equation. One of the linear equations is created based on a polynomial obtained by subtracting the other from one of the two quadratic equations obtained by substituting each of the variables. Based on a polynomial obtained by subtracting the other from one of two quadratic equations obtained by substituting the two acceleration information with the maximum and minimum values in the detection axis direction into variables of the ellipsoidal equation, respectively. It is obtained by creating another one of the equations and substituting two acceleration information having the maximum and minimum values in the third detection axis direction into the variables of the ellipsoidal equation among the six sets of acceleration information. Subtract the other from one of the two quadratic equations It may be created other one of linear equations based on the obtained polynomial Te.

また、例えば、連立方程式計算部13は、連立2次方程式の任意の2つの2次方程式を演算して得られる多項式又は当該多項式を変形した多項式の各項に含まれる、前記6つの未知数から構成される式又は当該式を実数倍した式を前記5つの新たな未知数と対応させて連立1次方程式を作成するようにしてもよい。   Further, for example, the simultaneous equation calculation unit 13 includes the six unknowns included in each term of a polynomial obtained by calculating any two quadratic equations of the simultaneous quadratic equation or a polynomial obtained by modifying the polynomial. A simultaneous linear equation may be created by associating a formula obtained by multiplying the formula or a formula obtained by multiplying the formula with the five new unknowns.

また、例えば、連立方程式計算部13は、加速度センサ20の3つの検出軸で作られる3次元空間において互いに直交する所定の3つの軸がそれぞれ重力方向の逆方向又はその近傍を向く状態で得られる3組の検出情報に基づく3組の加速度情報と、前記所定の3つの軸がそれぞれ重力方向又はその近傍を向く状態で得られる3組の検出情報に基づく3組の加速度情報と、を用いて連立2次方程式を作成するようにしてもよい。   Further, for example, the simultaneous equation calculation unit 13 is obtained in a state in which predetermined three axes orthogonal to each other in the three-dimensional space formed by the three detection axes of the acceleration sensor 20 face the opposite direction of the gravity direction or the vicinity thereof. Using three sets of acceleration information based on the three sets of detection information and three sets of acceleration information based on the three sets of detection information obtained in a state in which the predetermined three axes face the gravity direction or the vicinity thereof, respectively. A simultaneous quadratic equation may be created.

加速度誤差計算部14は、連立方程式計算部13により得られた前記5つの新たな未知数の値から前記6つの未知数の値を計算し、計算結果に基づいて加速度センサ20の3つの検出軸方向のオフセット誤差情報及び感度誤差情報を計算する処理を行う。   The acceleration error calculation unit 14 calculates the six unknown values from the five new unknown values obtained by the simultaneous equation calculation unit 13, and based on the calculation results, the acceleration error calculation unit 14 calculates the three detection axis directions. Processing for calculating offset error information and sensitivity error information is performed.

表示制御部15は、表示部34に所定の情報を表示させる処理を行う。例えば、表示制御部15は、測定開始や測定終了を示す情報、測定結果のオフセット誤差情報及び感度誤差情報などを表示部34に表示させるようにしてもよい。また、表示制御部15は、測定開始後に加速度センサ20の検出情報の所定の条件を満たす状態(例えば、所定値以下である状態)が所定時間持続した場合に測定終了を示す情報を表示部34に表示させるようにしてもよい。   The display control unit 15 performs processing for displaying predetermined information on the display unit 34. For example, the display control unit 15 may cause the display unit 34 to display information indicating measurement start and measurement end, offset error information and sensitivity error information of the measurement result, and the like. Further, the display control unit 15 displays information indicating the end of measurement when a state that satisfies a predetermined condition of the detection information of the acceleration sensor 20 after the start of measurement (for example, a state that is equal to or less than a predetermined value) continues for a predetermined time. You may make it display on.

音出力制御部16は、音出力部40から所定の音を出力させる処理を行う。例えば、音制御部16は、測定開始や測定終了を示す音を表示部34を音出力部40から出力させるようにしてもよい。また、音制御部16は、測定開始後に加速度センサ20の検出情報の変動幅が所定の条件を満たす状態(例えば、所定値以下である状態)が所定時間持続した場合に測定終了を示す音を音出力部40から出力させるようにしてもよい。   The sound output control unit 16 performs a process of outputting a predetermined sound from the sound output unit 40. For example, the sound control unit 16 may cause the display unit 34 to output a sound indicating the start or end of measurement from the sound output unit 40. In addition, the sound control unit 16 generates a sound indicating the end of measurement when a state in which the fluctuation range of the detection information of the acceleration sensor 20 satisfies a predetermined condition (for example, a state where the variation is not more than a predetermined value) continues for a predetermined time after the measurement starts. You may make it output from the sound output part 40. FIG.

情報記憶媒体36(コンピュータにより読み取り可能な媒体)は、プログラムやデータなどを格納するものであり、その機能は、光ディスク(CD、DVD)、光磁気ディスク(MO)、磁気ディスク、ハードディスク、磁気テープ、或いはメモリ(ROM)などにより実現できる。処理部10は、情報記憶媒体36に格納されるプログラム(データ)に基づいて本実施形態の種々の処理を行う。即ち情報記憶媒体36には、本実施形態の各部としてコンピュータを機能させるためのプログラム(各部の処理をコンピュータに実行させるためのプログラム)が記憶される。   The information storage medium 36 (a computer-readable medium) stores programs, data, and the like, and functions as an optical disk (CD, DVD), magneto-optical disk (MO), magnetic disk, hard disk, magnetic tape. Alternatively, it can be realized by a memory (ROM). The processing unit 10 performs various processes of the present embodiment based on a program (data) stored in the information storage medium 36. That is, the information storage medium 36 stores a program for causing the computer to function as each unit of the present embodiment (a program for causing the computer to execute the processing of each unit).

なお、本実施形態の各部としてコンピュータを機能させるためのプログラム(データ)は、サーバが有する、記憶部、情報記憶媒体からネットワークを介して情報記憶媒体36(または、記憶部30)に配信するようにしてもよい。このようなサーバの情報記憶媒体の使用も本発明の範囲に含まれる。   Note that a program (data) for causing a computer to function as each unit of the present embodiment is distributed from the storage unit or the information storage medium of the server to the information storage medium 36 (or the storage unit 30) via the network. It may be. Use of such server information storage media is also within the scope of the present invention.

1−2.加速度センサの誤差測定方法
1−2−1.誤差の意味
加速度センサに作用している真の加速度をTとする。Tは運動による加速度だけでなく、重力をも含んでいるとする。例えば、センサが静止している状態では、T=1Gである。「G」は加速度の単位で1G=9.80665m/sである。なお、重力(重力加速度)の大きさは、厳密には緯度や標高等によって異なるが、その違いは僅かなので、ここでは一定の値であるとする。真の加速度Tに対して、センサで測定して得られた値がMであるとする。このとき、次式(1)のようにMとTの差を誤差Eとする。
1-2. Error measurement method of acceleration sensor 1-2-1. Meaning of error T is the true acceleration acting on the acceleration sensor. It is assumed that T includes not only acceleration due to motion but also gravity. For example, when the sensor is stationary, T = 1G. “G” is a unit of acceleration, and 1G = 9.80665 m / s 2 . Strictly speaking, the magnitude of gravity (gravity acceleration) varies depending on latitude, altitude, etc., but since the difference is slight, it is assumed here to be a constant value. It is assumed that the value obtained by measuring with the sensor is M for the true acceleration T. At this time, the difference E between M and T is defined as error E as shown in the following equation (1).

Figure 2011053060
Figure 2011053060

誤差Eの大きさはTの値によって変わるので、EはTの関数として表される。Tの2次以上の成分は僅かなので、次式(2)のようにEをTの1次式で近似する。   Since the magnitude of the error E varies depending on the value of T, E is expressed as a function of T. Since the second and higher order components of T are small, E is approximated by a first order equation of T as shown in the following equation (2).

Figure 2011053060
Figure 2011053060

T=0における測定値Mのずれがeとなるので、eはオフセット誤差と呼ばれる(0G誤差とも呼ばれる)。一方eは、センサの感度のずれに相当するので、感度誤差と呼ばれる。もし誤差が全くなければe=0,e=0である。MとTの関係は次式(3)で表される。 Since the deviation of the measured value M at T = 0 is e 0 , e 0 is called an offset error (also called 0G error). On the other hand, e 1 is called a sensitivity error because it corresponds to a sensitivity shift of the sensor. If there is no error, e 0 = 0 and e 1 = 0. The relationship between M and T is expressed by the following equation (3).

Figure 2011053060
Figure 2011053060

1−2−2.加速度センサの誤差測定(1軸)
加速度センサの1つの検出軸(x,y,zのうちの1つ)のみを対象として、オフセット誤差と感度誤差を測定する方法について考える。加速度センサの検出軸方向を真上または真下に向け、静止状態でのセンサ出力を測定すれば、以下のようにして誤差を求めることができる。
1-2-2. Accelerometer error measurement (1 axis)
Consider a method of measuring an offset error and a sensitivity error for only one detection axis (one of x, y, z) of an acceleration sensor. When the sensor output in a stationary state is measured with the detection axis direction of the acceleration sensor directed directly above or directly below, the error can be obtained as follows.

検出軸を真上に向けた静止状態での測定値(前記の検出情報に相当する)をmとする。この状態での真の加速度値は1Gなので、式(3)より次式(4)が得られる。 A measured value (corresponding to the above-described detection information) in a stationary state with the detection axis directed right above is assumed to be m 1 . Since the true acceleration value in this state is 1G, the following equation (4) is obtained from equation (3).

Figure 2011053060
Figure 2011053060

同様に、検出軸を真下に向けた静止状態での測定値をmとする。この状態での真の加速度値は−1Gなので、式(3)より次式(5)が得られる。 Similarly, the measured value in a stationary state with the detection axis directed directly below is m 2 . Since the true acceleration value in this state is −1G, the following equation (5) is obtained from equation (3).

Figure 2011053060
Figure 2011053060

式(4)、(5)よりe,eを求めると、次式(6)、(7)のようになる。 When e 0 and e 1 are obtained from the equations (4) and (5), the following equations (6) and (7) are obtained.

Figure 2011053060
Figure 2011053060

Figure 2011053060
Figure 2011053060

の単位はGで、eは単位なし(無次元)である。このように、加速度センサの検出軸の向きを垂直方向に合わせることができれば、誤差は容易に求められる。 The unit of e 0 is G, and e 1 is unitless (dimensionless). Thus, if the direction of the detection axis of the acceleration sensor can be matched with the vertical direction, the error can be easily obtained.

加速度センサがゲームコントローラに内蔵されているものとする。コントローラの形状が箱型で、面の向き(表面の法線の方向)が加速度センサの検出軸方向と一致している場合は、誤差測定は容易に行なえる。水平面と見なせる面(例えば机の上)にコントローラを置けば、加速度センサの検出軸を垂直方向に合わせることができる。   It is assumed that the acceleration sensor is built in the game controller. When the shape of the controller is box-shaped and the direction of the surface (the direction of the normal of the surface) matches the detection axis direction of the acceleration sensor, error measurement can be easily performed. If the controller is placed on a surface that can be regarded as a horizontal plane (for example, on a desk), the detection axis of the acceleration sensor can be aligned in the vertical direction.

しかし、コントローラの形状が曲面でできている場合や、コントローラの外形が加速度センサの検出軸方向と合っていない場合には、センサの検出軸を垂直方向に合わせる操作に手間が掛かる。例えば、コントローラを支えた状態で向きを調整して、測定値が最大(あるいは最小)になるような方向を探す等の操作が必要となる。   However, when the shape of the controller is a curved surface, or when the outer shape of the controller does not match the direction of the detection axis of the acceleration sensor, it takes time and effort to align the detection axis of the sensor in the vertical direction. For example, it is necessary to adjust the direction while supporting the controller and search for a direction that maximizes (or minimizes) the measured value.

1−2−3.加速度センサの誤差測定(任意方向)
1−2−3−1.楕円体の方程式
加速度センサの向きを気にせずに誤差測定できる方法について考える。加速度センサが搭載されたコントローラを、様々な向きで静止させ、センサ出力値を調べるものとする。毎回向きを変えてN回の測定を行ない、その結果のx,y,z各軸の値を、それぞれx,y,z(i=1,2,・・・,N)とする。ただし、加速度の単位はGとする。
1-2-3. Accelerometer error measurement (in any direction)
1-2-3-1. Ellipsoidal equations Let's consider a method that can measure errors without worrying about the orientation of the acceleration sensor. Assume that the controller on which the acceleration sensor is mounted is stationary in various directions and the sensor output value is examined. The measurement is performed N times while changing the direction each time, and the values of the respective x, y, and z axes are x i , y i , and z i (i = 1, 2,..., N), respectively. . However, the unit of acceleration is G.

コントローラには1Gの重力のみが作用しているので、もし加速度センサに誤差がなければ、ベクトル(x,y,z)の大きさは1となる。したがって、次式(8)が成立し、N個の測定値は全て、原点を中心とする半径1の球面上に乗る。図3は、式(8)で表される球を模式的に表した図である。 Since only 1G gravity is acting on the controller, the vector (x i , y i , z i ) has a magnitude of 1 if there is no error in the acceleration sensor. Therefore, the following equation (8) is established, and all the N measurement values are on a spherical surface having a radius of 1 centered on the origin. FIG. 3 is a diagram schematically showing the sphere represented by the formula (8).

Figure 2011053060
Figure 2011053060

これに対して、加速度センサの誤差を考慮すると、感度誤差によるスケール(拡大・縮小)と、オフセット誤差による平行移動が、x,y,z各軸方向に加わる。そのため、式(8)の球ではなく、次式(9)のように主軸がx,y,z軸に平行な楕円体(axis aligned ellipsoid) となる。ただしa>0,b>0,c>0とする。図4は、式(9)で表される楕円体を模式的に表した図である。   On the other hand, considering the error of the acceleration sensor, the scale (enlargement / reduction) due to the sensitivity error and the parallel movement due to the offset error are added in the x, y and z axis directions. Therefore, instead of the sphere of equation (8), the main axis is an ellipsoid (axis aligned ellipsoid) parallel to the x, y, and z axes as in the following equation (9). However, a> 0, b> 0, and c> 0. FIG. 4 is a diagram schematically showing the ellipsoid represented by Expression (9).

Figure 2011053060
Figure 2011053060

中心座標p,q,rがそれぞれx,y,z方向のオフセット誤差に相当し、a−1,b−1,c−1がそれぞれx,y,z方向の感度誤差に相当する。この楕円体の式が決まれば、加速度センサの誤差が得られたことになる。   The center coordinates p, q, and r correspond to offset errors in the x, y, and z directions, respectively, and a-1, b-1, and c-1 correspond to sensitivity errors in the x, y, and z directions, respectively. If the ellipsoidal equation is determined, the error of the acceleration sensor is obtained.

1−2−3−2.方程式の解法
式(9)の未知数はp,q,r,a,b,cの6個なので、解が求まるためには6個の方程式が必要である。そこで、6個の測定値(x,y,z),(x,y,z),・・・,(x,y,z)を使って、次のように連立方程式を作る。図5に示すように、この6個の測定値(前記の6組の加速度情報に相当する)は、式(9)で表される楕円体の面上に乗る。
1-2-3-2. Solving Equations Since there are six unknowns in equation (9), p, q, r, a, b, and c, six equations are required to find a solution. Therefore, using the six measurement values (x 1 , y 1 , z 1 ), (x 2 , y 2 , z 2 ),..., (X 6 , y 6 , z 6 ), Make simultaneous equations. As shown in FIG. 5, the six measurement values (corresponding to the six sets of acceleration information) are placed on the surface of the ellipsoid represented by Expression (9).

Figure 2011053060
Figure 2011053060

この連立方程式は、未知数p,q,r,a,b,cの2次方程式なので、解くのが困難である。そこで、以下のようにして連立1次方程式に帰着させる。   Since these simultaneous equations are quadratic equations of unknowns p, q, r, a, b, and c, it is difficult to solve them. Therefore, it is reduced to simultaneous linear equations as follows.

まず、式(10b)から式(10a)を引いて変形すると、次式(11)が得られる。   First, when the equation (10a) is subtracted from the equation (10b) and transformed, the following equation (11) is obtained.

Figure 2011053060
Figure 2011053060

ここで、未知数を次のように置き換える。   Here, the unknown is replaced as follows.

Figure 2011053060
Figure 2011053060

すると、式(11)は次式(13)のようにα,β,γ,δ,εの1次式となる。   Then, Expression (11) becomes a linear expression of α, β, γ, δ, ε as in the following Expression (13).

Figure 2011053060
Figure 2011053060

同様にして、式(10a)〜(10f)の中から2つの式を選び、その差をとって1次式を作る。6個の式から2個の式を選ぶので、=15とおりの式ができるが、そのうち独立なものは5個である。この5元連立1次方程式を解くことによりα,β,γ,δ,εが求まる。 Similarly, two formulas are selected from the formulas (10a) to (10f), and a difference between them is taken to create a linear formula. Since two formulas are selected from the six formulas, 6 C 2 = 15 formulas can be formed, of which five are independent. Α, β, γ, δ, ε can be obtained by solving the quinary simultaneous linear equations.

p,q,rは次式(14)により得られる。   p, q, and r are obtained by the following equation (14).

Figure 2011053060
Figure 2011053060

式(10a)を変形すると次式(15)が得られ、この式からaが求められる。   When the equation (10a) is transformed, the following equation (15) is obtained, and a is obtained from this equation.

Figure 2011053060
Figure 2011053060

b,cは次式(16)により得られる。   b and c are obtained by the following equation (16).

Figure 2011053060
Figure 2011053060

以上の計算で求めたp,q,rが、それぞれx,y,z方向のオフセット誤差である。また、a−1,b−1,c−1がそれぞれx,y,z方向の感度誤差である。   P, q, and r obtained by the above calculation are offset errors in the x, y, and z directions, respectively. Further, a-1, b-1, and c-1 are sensitivity errors in the x, y, and z directions, respectively.

1−2−3−3.独立な連立方程式の構成
連立方程式(10a)〜(10f)を解く際に、この6つの2次式の中から式を2つ選び、その差をとって1次式を作った。式の選び方は=15とおりあるので、15個の1次式を作ることができる。しかし、そのうち独立なものは5個しかない。グラフ理論を使ってこのことを説明する。なお、式番号を見やすくするために、(10a),(10b),・・・,(10f)の替わりに、それぞれ(a),(b),・・・,(f)と書くことにする。
1-2-3-3. Configuration of independent simultaneous equations When solving the simultaneous equations (10a) to (10f), two equations were selected from these six quadratic equations, and a linear equation was created by taking the difference between them. Since there are 6 C 2 = 15 ways to select the equation, 15 linear equations can be created. However, only 5 of them are independent. I explain this using graph theory. In order to make the formula numbers easier to see, (a), (b),..., (F) are written instead of (10a), (10b),. .

図6のように6個のノード(点)A,B,・・・,Fを配置し、それぞれが2次式(a),(b),・・・,(f)を意味するものとする。また、式(a),(b),・・・,(f)を、それぞれノードA,B,・・・,Fのノード式と呼ぶことにする。2つのノード式の差から作った1次式を、そのノードを結ぶエッジ(線分)で表すものとする。例えば図7のエッジABは、1次式(a)−(b)を意味する。エッジに対応する1次式を、エッジ式と呼ぶことにする。連立1次方程式は、例えば図8のように、グラフとして表される。図8は5個の1次式を表している。   As shown in FIG. 6, six nodes (points) A, B,..., F are arranged, and each means a quadratic expression (a), (b),. To do. Expressions (a), (b),..., (F) are referred to as node expressions of nodes A, B,. A linear expression created from the difference between two node expressions is represented by an edge (line segment) connecting the nodes. For example, the edge AB in FIG. 7 means a linear expression (a)-(b). A linear expression corresponding to an edge will be referred to as an edge expression. The simultaneous linear equations are represented as a graph as shown in FIG. 8, for example. FIG. 8 shows five linear expressions.

前述のように連立1次方程式とグラフを対応させると、次のことが言える。   As described above, when the simultaneous linear equations are associated with the graph, the following can be said.

「連立1次方程式が独立であるための必要十分条件は、グラフがサイクルを含まないことである。」   “A necessary and sufficient condition for the simultaneous linear equations to be independent is that the graph does not contain cycles.”

サイクルとは閉じた経路のことで、閉道ともいう。図8は独立な連立1次方程式を表すグラフの一例である。これに対して、図9はサイクルB−C−E−Bを含むので独立ではない(従属な式を含む)。   A cycle is a closed path, also called a closed path. FIG. 8 is an example of a graph representing an independent simultaneous linear equation. In contrast, FIG. 9 is not independent because it includes cycles B-C-E-B (including dependent equations).

連立1次方程式の独立性とグラフのサイクルとの関係は、以下のようにして導かれる。   The relationship between the independence of simultaneous linear equations and the cycle of the graph is derived as follows.

[必要条件]
図10のグラフには、2つのエッジ式(a)−(b)と(b)−(c)が存在する。この2つの式から、((a)−(b))+((b)−(c))の計算により1次式(a)−(c)を作ることができる。したがって、図10にエッジACを追加した図11の状態は、従属な式を含んでいることになる。この考え方を一般化すると、「グラフがサイクルを含むならば、エッジ式は従属な式を含む」ことが導かれる。
[Requirements]
In the graph of FIG. 10, there are two edge expressions (a)-(b) and (b)-(c). From these two formulas, the primary formula (a)-(c) can be made by calculating ((a)-(b)) + ((b)-(c)). Therefore, the state of FIG. 11 in which the edge AC is added to FIG. 10 includes a dependent expression. Generalizing this idea leads to "If the graph contains cycles, the edge expression contains a dependent expression".

[十分条件]
一方、「グラフがサイクルを含まなければ、エッジ式は独立である」ことは、以下のように説明できる。サイクルを含まないグラフから1本のエッジを取り除くと、グラフは2つの部分(部分グラフ)GとGに分かれる。例えば、図8のグラフからエッジCEを取り除くと、図12のようにG={{A,B,C,D},{AB,BC,CD}}とG={{E,F},{EF}}に分かれる。この図12の4つのエッジ式から、新たにエッジ式(c)−(e)が作れるかどうかを考える。(c)を含むエッジ式を作ると、例えば(c)−(a)のように、必ずGの他のノードのノード式を含んだものになる。同様に、(e)を含むエッジ式は必ずGの他のノードのノード式を含んでいる。G,Gに共通するノードは存在しないので、(c)と(e)の両方を含む1次式を作れば、例えば(c)−(e)−(a)+(f)のように、必ず(c),(e)以外の項が消えずに残ってしまう。したがって、図12の状態からエッジ式(c)−(e)を作ることはできない。よって、図8のグラフにおいてエッジ式(c)−(e)は独立である。同様の理由により、図8において、エッジ式(b)−(c)も独立である。
[Sufficient conditions]
On the other hand, “the edge expression is independent if the graph does not include a cycle” can be explained as follows. The removal of one edge from the graph that does not contain cycles, graphs two parts (subgraph) divided into G 1 and G 2. For example, when the edge CE is removed from the graph of FIG. 8, G 1 = {{A, B, C, D}, {AB, BC, CD}} and G 2 = {{E, F} as shown in FIG. , {EF}}. Consider whether or not a new edge expression (c)-(e) can be created from the four edge expressions in FIG. When making edge expression containing (c), for example, (c) - as in (a), will always those containing the node type of the other nodes in G 1. Similarly, it includes node type other nodes of the edge type always G 2 including (e). Since there is no node common to G 1 and G 2 , if a linear expression including both (c) and (e) is created, for example, (c) − (e) − (a) + (f) However, the terms other than (c) and (e) always remain without disappearing. Therefore, the edge formulas (c)-(e) cannot be made from the state of FIG. Therefore, the edge formulas (c)-(e) are independent in the graph of FIG. For the same reason, the edge formulas (b) to (c) in FIG. 8 are also independent.

また、図8のエッジ式(a)−(b)が独立であることは、次のように説明される。このグラフからエッジABを取り除くと、残る部分グラフG,Gのうち一方は、ノードAのみ(エッジを持たない)となる。式(a)を含むエッジ式が存在しないので、既存のエッジ式からエッジ式(a)−(b)を作ることはできない。したがって、図8のグラフにおいて、エッジ式(a)−(b)は独立である。同様の理由により、図8においてエッジ式(c)−(d),(e)−(f)も独立である。 Further, the fact that the edge formulas (a) to (b) in FIG. 8 are independent is explained as follows. When the edge AB is removed from this graph, one of the remaining subgraphs G 1 and G 2 becomes only the node A (has no edge). Since there is no edge expression including the expression (a), the edge expressions (a)-(b) cannot be created from the existing edge expressions. Therefore, in the graph of FIG. 8, the edge formulas (a)-(b) are independent. For the same reason, the edge expressions (c)-(d) and (e)-(f) in FIG. 8 are also independent.

以上の考え方を一般化すると、「グラフがサイクルを含まなければ、エッジ式は独立である」ことが導かれる。   Generalizing the above idea leads to “If the graph does not contain cycles, the edge expression is independent”.

サイクルを含まないグラフは、(1本以上の)木(tree)構造になる。また、2本の木を1本のエッジで繋ぐと1本の木になる。したがって、与えられたノードを使って、サイクルを含まない、エッジ数が最大のグラフを作ると、1本の木になる。   A graph that does not include a cycle has a (one or more) tree structure. Moreover, when two trees are connected by one edge, it becomes one tree. Therefore, using a given node to create a graph that does not include cycles and has the maximum number of edges results in a single tree.

木においては、エッジの数はノードの数より1少ないことが知られている。以上のことから、ノード式が6個の場合、独立な1次式は5個まで作れることになる。   In trees, it is known that the number of edges is one less than the number of nodes. From the above, when there are six node expressions, up to five independent primary expressions can be created.

1−2−3−4.計算精度の向上
6個の測定値から誤差を求める計算は、3次元空間上の6点を通る楕円体を求めることに相当する。そのため、計算結果の精度を良くするには、6つの測定値x,y,z(i=1,2,・・・,6)はxyz空間上で互いになるべく離れているほうが良いと、直観的に推測される。このことは、測定値が近接していると、式(13)の係数の相対精度が低くなることからも理解できる。
1-2-3-4. Improvement of calculation accuracy Calculation for obtaining an error from six measured values corresponds to obtaining an ellipsoid passing through six points in a three-dimensional space. Therefore, in order to improve the accuracy of the calculation result, the six measured values x i , y i , and z i (i = 1, 2,..., 6) should be separated as much as possible in the xyz space. Intuitively guessed. This can also be understood from the fact that the relative accuracy of the coefficient of equation (13) decreases when the measured values are close to each other.

また、連立1次方程式を解くアルゴリズムは種々存在するが、その多く(Gaussの消去法、Gauss-Jordan法、Gauss-Seidel法等)は、係数行列の対角要素の値(絶対値)が小さい場合に、解の精度の低下や、解が求まらないという不具合を生じる。そのため、連立1次方程式を作る際には、係数行列の対角要素の絶対値が大きくなるように構成することが重要である。   There are various algorithms for solving simultaneous linear equations, but many of them (Gauss elimination, Gauss-Jordan method, Gauss-Seidel method, etc.) have small values (absolute values) of the diagonal elements of the coefficient matrix. In some cases, the accuracy of the solution is degraded, and a problem that the solution cannot be obtained occurs. For this reason, when creating simultaneous linear equations, it is important that the absolute values of the diagonal elements of the coefficient matrix are increased.

そこで、x,y,zを測定する際には、加速度センサのx軸がほぼ上方向を向くようにする。同様に、表1のように6回の測定を、それぞれ向きを変えて行なう。向きは正確である必要はない。このように設定することで、6個の測定値はxyz空間上で互いに十分離れた位置になる。 Therefore, when measuring x 1 , y 1 , and z 1 , the x axis of the acceleration sensor is directed substantially upward. Similarly, as shown in Table 1, six measurements are performed by changing the direction. The orientation need not be accurate. By setting in this way, the six measurement values are positioned sufficiently apart from each other in the xyz space.

Figure 2011053060
Figure 2011053060

図13は、表1に示す6回の測定により得られた測定値m〜mの、式(9)で表される楕円体の面上の配置を示している。例えば、加速度センサのx軸方向が正確に上方向すなわち真上方向(重力方向の逆方向)を向いて静止した状態であれば測定値mは(a+p,q,r)になり、加速度センサのx軸方向が正確に下方向すなわち真下方向(重力方向)を向いて静止した状態であれば測定値mは(−a+p,q,r)になる。同様に、加速度センサのy軸方向が真上方向を向いて静止した状態であれば測定値mは(p,b+q,r)になり、加速度センサのy軸方向が真下方向を向いて静止した状態であれば測定値mは(p,−b+q,r)になる。同様に、加速度センサのz軸方向が真上方向を向いて静止した状態であれば測定値mは(p,q,c+r)になり、加速度センサのz軸方向が真下方向を向いて静止した状態であれば測定値mは(p,q,−c+r)になる。 FIG. 13 shows the arrangement of the measurement values m 1 to m 6 obtained by the six measurements shown in Table 1 on the surface of the ellipsoid represented by Expression (9). For example, if the x-axis direction of the acceleration sensor is in a state where the x-axis direction is exactly upward, that is, directly above (the direction opposite to the direction of gravity) and is stationary, the measured value m 1 is (a + p, q, r), and the acceleration sensor x-axis direction accurately measure m 2 if a stationary state facing downward i.e. beneath direction (gravity direction) of becomes (-a + p, q, r ). Similarly, if the state where the y-axis direction of the acceleration sensor is stationary facing up direction measurements m 3 (p, b + q , r) becomes, the y-axis direction of the acceleration sensor is oriented directly below direction still measurements m 4 if a state of being becomes (p, -b + q, r ). Similarly, if the state where the z-axis direction of the acceleration sensor is stationary facing up direction measurements m 5 is (p, q, c + r ) becomes, z-axis direction of the acceleration sensor is oriented directly below direction still In this state, the measured value m 6 is (p, q, −c + r).

ただし、加速度センサのx軸、y軸、z軸を合わせる向きは正確である必要はなく、真上方向又は真下方向の近傍を向くようにすればよい。このようにしても、測定値m〜mは、加速度センサのx軸、y軸、z軸を真上方向又は真下方向に合わせた時の測定値を中心点とする所定範囲(図13において斜線で示す範囲)に存在するので、xyz空間上で互いに十分離れた位置になる。 However, the direction in which the x-axis, y-axis, and z-axis of the acceleration sensor are aligned does not have to be accurate, and may be directed to the vicinity of the directly above direction or the directly below direction. Even in this case, the measurement values m 1 to m 6 are within a predetermined range centered on the measurement value when the x-axis, y-axis, and z-axis of the acceleration sensor are aligned directly above or below (see FIG. 13). In the xyz space, the positions are sufficiently separated from each other.

また、加速度センサが通常の精度であれば、a≒1,b≒1,c≒1,p≒0,q≒0,r≒0なので、各測定値は概ね次のような値になる。   Further, if the acceleration sensor has normal accuracy, a≈1, b≈1, c≈1, p≈0, q≈0, r≈0, so each measured value is approximately as follows.

Figure 2011053060
Figure 2011053060

そこで、連立1次方程式を次にように構成する。   Therefore, the simultaneous linear equations are constructed as follows.

すなわち、まず、式(10a)−式(10b),式(10c)−式(10d),式(10e)−式(10f),式(10a)−式(10c)+式(10b)−式(10d),式(10a)−式(10e)+式(10b)−式(10f)により次式(18a)〜(18e)を得る。   That is, first, formula (10a) -formula (10b), formula (10c) -formula (10d), formula (10e) -formula (10f), formula (10a) -formula (10c) + formula (10b) -formula The following formulas (18a) to (18e) are obtained from (10d), formula (10a) -formula (10e) + formula (10b) -formula (10f).

Figure 2011053060
Figure 2011053060

次に、式(18a)〜(18e)に式(12)を代入すると、次式(19a)〜(19e)からなる連立1次方程式が得られる。   Next, when the equation (12) is substituted into the equations (18a) to (18e), a simultaneous linear equation including the following equations (19a) to (19e) is obtained.

Figure 2011053060
Figure 2011053060

従って、式(19a)〜(19e)からなる連立1次方程式において、α,β,γ,δ,εの係数を要素とする係数行列をMとすると、式(19a)〜(19e)からなる連立1次方程式は次のように表すことができる。   Accordingly, in the simultaneous linear equations consisting of the equations (19a) to (19e), if the coefficient matrix having the coefficients of α, β, γ, δ, and ε as M, the equation (19a) to (19e) The simultaneous linear equations can be expressed as follows.

Figure 2011053060
Figure 2011053060

また、係数行列Mは次式(21)のようになる。   The coefficient matrix M is as shown in the following equation (21).

Figure 2011053060
Figure 2011053060

すると、式(17)より、係数行列Mは概ね次のような値になり、対角要素の絶対値が他の要素の絶対値よりも大きい値になる。   Then, from the equation (17), the coefficient matrix M has approximately the following values, and the absolute values of the diagonal elements are larger than the absolute values of the other elements.

Figure 2011053060
Figure 2011053060

この係数行列を使うことにより、連立1次方程式を安定して精度良く解くことができる。   By using this coefficient matrix, simultaneous linear equations can be solved stably and accurately.

一般に、所定の規則に従って加速度センサの向きを変えて測定を行い、得られた6個の測定値を用いて連立2次方程式(10a)〜(10f)から所定の規則に従って連立1次方程式を作成すれば、対角要素の絶対値が他の要素の絶対値よりも大きい係数行列を得ることができる。   In general, measurement is performed by changing the direction of the acceleration sensor according to a predetermined rule, and simultaneous linear equations are created from the simultaneous quadratic equations (10a) to (10f) using the obtained six measured values according to the predetermined rule. By doing so, it is possible to obtain a coefficient matrix in which the absolute values of diagonal elements are larger than the absolute values of other elements.

1−2−4.静止状態の検出
以上の方法を使って加速度センサの誤差を測定する場合、測定時に加速度センサを静止させる必要がある。本来は、加速運動をしていなければよいので、等速直線運動は許容されるが、現実的には静止させるほうが容易である。
1-2-4. Detection of the stationary state When measuring the error of the acceleration sensor using the above method, the acceleration sensor needs to be stationary at the time of measurement. Originally, it is not necessary to perform an accelerating motion, so a constant velocity linear motion is allowed, but in reality it is easier to stop.

測定値が殆んど変動しない状態が一定時間持続した場合に、静止していると判定する。厳密には、この判定基準は正しくない。本来は、加速運動していない状態(静止状態を含む)のみOK判定を出すべきところを、等加速度運動していてもOKになってしまうからである。しかし実際には、もし等加速度運動がある程度持続すればその方向に移動するはずなので、移動していないと確認できる状態(机の上に置いた状態等)であれば、この判定方法で問題はない。   When the measurement value hardly fluctuates for a certain period of time, it is determined to be stationary. Strictly speaking, this criterion is not correct. This is because a place where an OK determination should be given only in a state where the acceleration motion is not performed (including a stationary state) is OK even if the motion is performed at a constant acceleration. However, in reality, if the constant acceleration motion continues to some extent, it should move in that direction, so if it can be confirmed that it is not moving (when placed on a desk, etc.) Absent.

実際の例としては、測定値の変動幅が0.03G以下の状態が1秒間持続した場合に、静止していると判断する。そして、この1秒間の測定値を平均した値を1個の測定値(x,y,z)として扱う。また、このように平均をとることによって、ランダムなノイズやセンサの丸め誤差の影響を減らし、測定値の信頼度を上げることができる。 As an actual example, if the state where the fluctuation range of the measured value is 0.03 G or less continues for 1 second, it is determined that the object is stationary. A value obtained by averaging the measurement values for one second is treated as one measurement value (x i , y i , z i ). Further, by taking the average in this way, the influence of random noise and sensor rounding errors can be reduced, and the reliability of the measured value can be increased.

図14を用いて、本実施形態の加速度誤差測定装置1が測定対象装置2(加速度センサ20)が静止しているか否かを判定する処理の具体的な例を説明する。図14は、x軸方向、y軸方向、z軸方向のいずれかの1軸方向(例えば、x軸方向)の測定値の時系列の一例を示す図であり、測定間隔は5msecである。加速度誤差測定装置1は、時刻tにおいて加速度センサの測定値の取得を開始し、測定値の変動幅が0.03G以下の状態が1秒間持続するか否かを判定する。具体的には、まず、時刻tから1秒経過後の時刻tにおいて、時刻t〜tの1秒間に取得した測定値の変動幅が0.03G以下であるか否かを判定する。例えば、時刻t〜tの1秒間に取得した測定値の最大値と最小値の差が0.03G以下であるか否かを判定すればよい。 A specific example of the process in which the acceleration error measurement device 1 according to the present embodiment determines whether or not the measurement target device 2 (acceleration sensor 20) is stationary will be described with reference to FIG. FIG. 14 is a diagram illustrating an example of a time series of measurement values in one of the x-axis direction, the y-axis direction, and the z-axis direction (for example, the x-axis direction), and the measurement interval is 5 msec. Acceleration error measuring apparatus 1 starts the acquisition of the measured values of the acceleration sensor at time t 1, the variation width of the measured values of the following conditions 0.03G determines whether lasting 1 second. Specifically, first, at time t 6 after the elapse of the time t 1 1 sec, the fluctuation range of the measurements taken in one second of time t 1 ~t 6 is determined to or less than 0.03G To do. For example, it may be determined whether or not the difference between the maximum value and the minimum value of the measurement values acquired in one second from time t 1 to t 6 is 0.03 G or less.

ここで、時刻t〜tの1秒間に取得した測定値の変動幅が0.03Gよりも大きい(時刻tでの測定値(最小値)と時刻tでの測定値(最大値)の差が0.03Gより大きい)ため、加速度誤差測定装置1は、次に、時刻tから5msec経過後の時刻tにおいて、加速度センサの測定値を新たに取得し、時刻t〜tの1秒間に取得した測定値の変動幅が0.03G以下であるか否かを判定する。このように、加速度誤差測定装置1は、5msec経過する毎に過去1秒間(直近の1秒間)に取得した測定値の変動幅が0.03G以下になるまで加速度センサの測定値を新たに取得する処理を繰り返す。そして、加速度誤差測定装置1は、時刻tから時刻tまでの1秒間の測定値の変動幅(最大値と最小値の差)が0.03G以下となるので、測定対象装置2(加速度センサ20)が静止していると判定し、時刻tにおいて測定値の取得を終了する。 Here, the fluctuation range of the measurement value acquired in one second from time t 1 to t 6 is larger than 0.03 G (measurement value (minimum value) at time t 3 and measurement value (maximum value) at time t 4. ) difference 0.03G larger) for the acceleration error measuring apparatus 1, then, at time t 7 after a lapse of 5msec from time t 6, newly obtains the measured value of the acceleration sensor, the time t 2 ~ fluctuation width of the measurement values obtained in one second of t 7 is equal to or less 0.03 g. As described above, the acceleration error measuring apparatus 1 newly acquires the measured value of the acceleration sensor until the fluctuation range of the measured value acquired in the past 1 second (the latest 1 second) becomes 0.03G or less every 5 msec. Repeat the process. The acceleration error measuring apparatus 1, since the fluctuation range of the measured value of one second from time t 5 to time t 9 (difference between the maximum value and the minimum value) is equal to or less than 0.03 g, measured device 2 (acceleration sensor 20) is determined to be stationary, and ends the acquisition of the measured values at the time t 9.

ただし、加速度誤差測定装置1は、時刻tから時刻tまでの1秒間に、他の2軸方向(例えば、y軸方向とz軸方向)のいずれかの測定値の変動幅が0.03Gを超えれば、測定対象装置2(加速度センサ20)が静止していないと判定し、3軸方向の測定値の変動幅のすべてが0.03G以下の状態が1秒間持続するまで3軸方向の測定値の取得を継続する。 However, the acceleration error measuring device 1, in one second from time t 5 to time t 6, one of the fluctuation range of the measured values of the other two axially (e.g., y-axis and z-axis direction) 0. If it exceeds 03G, it is determined that the measurement target device 2 (acceleration sensor 20) is not stationary, and the three-axis direction is maintained until all the fluctuation ranges of the measurement values in the three-axis direction are 0.03G or less for 1 second. Continue to acquire the measured value.

そして、加速度誤差測定装置1は、時刻tから時刻tまでの1秒間の3軸方向の各測定値を平均した値を1個の測定値(x,y,z)として扱う。すなわち、同様の処理を全部で6回行えば、ランダムなノイズやセンサの丸め誤差の影響を減らした平均値としての6個の測定値(x,y,z)〜(x,y,z)を得ることができる。 The acceleration error measuring apparatus 1 handles, a value obtained by averaging the measured values in the three axis directions of one second from time t 5 to time t 9 1 single measurements (x i, y i, z i) as . That is, if the same process is performed six times in total, six measured values (x 1 , y 1 , z 1 ) to (x 6 , y) as average values with reduced influence of random noise and sensor rounding error are obtained. 6 , z 6 ).

なお、図14の例では、時刻tでの判定において、時刻tでの測定値(時刻t〜tでの最小値)と時刻tでの測定値(時刻t〜tでの最大値)の差が0.03Gより大きいことがわかる。そこで、時刻tから1秒経過後の時刻をtとすると、時刻t〜tのいずれにおいても過去1秒間に取得した測定値の変動幅が0.03Gよりも大きいことが明らかであるので、時刻t〜tでは判定処理を行わないようにしてもよい。 In the example of FIG. 14, in the determination at time t 6 , the measurement value at time t 3 (minimum value at time t 1 to t 6 ) and the measurement value at time t 4 (time t 1 to t 6). It can be seen that the difference in the maximum value at (1) is greater than 0.03G. Therefore, when a time elapses after the time point t 3 1 sec to t 8, at any time t 7 ~t 8 also is clear that the fluctuation range of the measurements taken in the past one second is greater than 0.03G Therefore, the determination process may not be performed at times t 7 to t 8 .

1−3.加速度センサの誤差測定装置の処理
次に、本実施形態の加速度センサの誤差測定装置の処理例について図15のフローチャートを用いて説明する。
1-3. Processing of Acceleration Sensor Error Measuring Device Next, a processing example of the acceleration sensor error measuring device of the present embodiment will be described with reference to the flowchart of FIG.

まず、加速度誤差測定装置1は、式(9)に示した楕円体の方程式の変数(x,y,z)に、6組の加速度情報(x,y,z)〜(x,y,z)をそれぞれ代入し、式(10a)〜式(10f)に示したa,b,c,p,q,rを未知数とする6つの2次方程式からなる連立2次方程式を作成するステップS10、連立方程式作成ステップ。 First, the acceleration error measuring apparatus 1 includes six sets of acceleration information (x 1 , y 1 , z 1 ) to (x 6 ) in the variable (x, y, z) of the ellipsoidal equation shown in Expression (9). , Y 6 , z 6 ) are substituted respectively, and simultaneous quadratic equations composed of six quadratic equations with a, b, c, p, q, and r shown in equations (10a) to (10f) as unknowns. Step S10 for creating the simultaneous equations.

次に、ステップS20で作成したa,b,c,p,q,rを未知数とする連立2次方程式を、α,β,γ,δ,εを未知数とする5つの1次方程式からなる連立1次方程式に帰着させて当該連立1次方程式を解くステップS20、連立方程式計算ステップ。   Next, the simultaneous quadratic equations having unknown numbers a, b, c, p, q, and r created in step S20 are composed of five linear equations having α, β, γ, δ, and ε as unknown numbers. A step S20 for solving the simultaneous linear equation by reducing to the linear equation, a simultaneous equation calculating step.

ここで、α,β,γ,δ,εとa,b,c,p,q,rの対応関係はあらかじめ定義されており、例えば、式(12)に示したように、式(10a)−式(10b)により得られる多項式(11)の各項に含まれる、未知数a,b,c,p,q,rから構成される式p,(a/b)q,(a/c)r,a/b,a/cを未知数α,β,γ,δ,εと対応させてもよい。また、例えば、式p,(a/b)q,(a/c)r,a/b,a/cを、多項式(11)の各項に含まれる各定数で実数倍した式2p,2(a/b)q,2(a/c)r,a/b,a/cを未知数α,β,γ,δ,εと対応させてもよい。さらに、例えば、多項式(11)を変形した多項式の各項に含まれる、未知数a,b,c,p,q,rから構成される式又は当該式を実数倍した式を未知数α,β,γ,δ,εと対応させてもよい。 Here, the correspondence relationship between α, β, γ, δ, ε and a, b, c, p, q, r is defined in advance. For example, as shown in Equation (12), Equation (10a) - formula contained in each term of the polynomial obtained by (10b) (11), unknowns a, b, c, p, q, composed of r formula p, (a 2 / b 2 ) q, (a 2 / C 2 ) r, a 2 / b 2 , a 2 / c 2 may be associated with the unknowns α, β, γ, δ, ε. Further, for example, the expressions p, (a 2 / b 2 ) q, (a 2 / c 2 ) r, a 2 / b 2 , and a 2 / c 2 are converted into constants included in each term of the polynomial (11). Equations 2p, 2 (a 2 / b 2 ) q, 2 (a 2 / c 2 ) r, a 2 / b 2 , and a 2 / c 2 multiplied by real numbers in FIG. You may make it correspond. Further, for example, an expression composed of unknown numbers a, b, c, p, q, r included in each polynomial term obtained by transforming the polynomial (11) or an expression obtained by multiplying the expression by a real number is an unknown number α, β, You may make it respond | correspond with (gamma), (delta), and (epsilon).

また、加速度誤差測定装置1は、ステップS20において、式(10a)〜式(10f)に示した6つの2次方程式に対して、あらかじめ決められた演算を施して連立1次方程式を作成する。例えば、前述したように、式(10a)−式(10b),式(10c)−式(10d),式(10e)−式(10f),式(10a)−式(10c)+式(10b)−式(10d),式(10a)−式(10e)+式(10b)−式(10f)により1次方程式(19a)〜(19e)を作成するようにしてもよい。   In step S20, the acceleration error measuring apparatus 1 performs a predetermined calculation on the six quadratic equations shown in the equations (10a) to (10f) to create simultaneous linear equations. For example, as described above, formula (10a) -formula (10b), formula (10c) -formula (10d), formula (10e) -formula (10f), formula (10a) -formula (10c) + formula (10b ) -Formula (10d), Formula (10a) -Formula (10e) + Formula (10b) -Formula (10f) may be used to create the linear equations (19a) to (19e).

最後に、加速度誤差測定装置1は、ステップS20で求まった未知数α,β,γ,δ,εの値から未知数a,b,c,p,q,rの値を計算し、計算結果に基づいて加速度センサの3つの検出軸方向のオフセット誤差情報(例えばp,q,r)及び感度誤差情報(例えばa−1,b−1,c−1)を計算するステップS30、加速度誤差計算ステップ。   Finally, the acceleration error measuring apparatus 1 calculates the values of the unknowns a, b, c, p, q, r from the values of the unknowns α, β, γ, δ, ε obtained in step S20, and based on the calculation results. Step S30 for calculating offset error information (eg, p, q, r) and sensitivity error information (eg, a-1, b-1, c-1) in the three detection axis directions of the acceleration sensor, and an acceleration error calculating step.

次に、本実施形態の加速度センサの誤差測定装置が加速度情報を生成する処理例について図16のフローチャートを用いて説明する。   Next, a processing example in which the acceleration sensor error measurement device of the present embodiment generates acceleration information will be described with reference to the flowchart of FIG.

まず、加速度誤差測定装置1は、所定時間Tが経過するまで測定対象装置2から加速度センサ20の検出情報を取得する(ステップS50、S60)。   First, the acceleration error measurement device 1 acquires detection information of the acceleration sensor 20 from the measurement target device 2 until a predetermined time T elapses (steps S50 and S60).

所定時間Tが経過すると(ステップS60でYesの場合)、次に、加速度誤差測定装置1は、過去T時間に取得した検出情報の変動幅が所定値(図4に示した例では0.03G)以下か否かを判定する(ステップS70)。   When the predetermined time T has elapsed (in the case of Yes in step S60), the acceleration error measuring apparatus 1 next determines that the fluctuation range of the detection information acquired in the past T time is a predetermined value (in the example shown in FIG. 4, 0.03G ) It is determined whether or not (step S70).

ステップS70において、検出情報の変動幅が所定値よりも大きい場合(ステップS70でNoの場合)、加速度誤差測定装置1は、加速度センサ20の次の検出情報を取得し(ステップS80)、再度、ステップS70の判定処理を行う。   In step S70, when the fluctuation range of the detection information is larger than the predetermined value (No in step S70), the acceleration error measurement device 1 acquires the next detection information of the acceleration sensor 20 (step S80), and again. The determination process of step S70 is performed.

ステップS70において、検出情報の変動幅が所定値以下である場合(ステップS70でYesの場合)、加速度誤差測定装置1は、過去T時間に取得した検出情報の平均値を計算して加速度情報(x,y,z)とする(ステップS90)。 In step S70, when the fluctuation range of the detection information is equal to or smaller than a predetermined value (Yes in step S70), the acceleration error measurement device 1 calculates an average value of the detection information acquired in the past T time to obtain acceleration information ( x i , y i , z i ) (step S90).

加速度誤差測定装置1は、ステップS50〜S90の処理を6回繰り返すことにより、6組の加速度情報(x,y,z)〜(x,y,z)を作成する。 The acceleration error measuring apparatus 1 creates six sets of acceleration information (x 1 , y 1 , z 1 ) to (x 6 , y 6 , z 6 ) by repeating the processing of steps S50 to S90 six times.

加速度センサの誤差測定精度をさらに良くするための処理例について図17のフローチャートを用いて説明する。   A processing example for further improving the error measurement accuracy of the acceleration sensor will be described with reference to the flowchart of FIG.

まず、加速度センサ20の3つの検出軸(x軸、y軸、z軸)で作られる3次元空間において互いに直交する3つの軸(ξ軸、邇イ、謗イとする)のうちのξ軸が真上方向(重力方向の逆方向)又はその近傍を向くように測定対象装置2をセットする(ステップS100)。ここで、ξ軸、邇イ、謗イは、あらかじめ決められた互いに直交する3つの軸であり、例えば、測定対象装置2の形状を考慮して決めてもよい。なお、ξ軸、邇イ、謗イは、加速度センサ20の3つの検出軸(x軸、y軸、z軸)とそれぞれ一致してもよく、その場合、図17のフローチャートによる処理は表1に対応した処理となる。   First, the ξ axis of three axes (ξ axis, 邇 I, 謗 I) orthogonal to each other in the three-dimensional space created by the three detection axes (x axis, y axis, z axis) of the acceleration sensor 20 The measurement target device 2 is set so that is directed right above (opposite to the direction of gravity) or the vicinity thereof (step S100). Here, the ξ axis, 邇 i, and 謗 で are predetermined three axes orthogonal to each other, and may be determined in consideration of, for example, the shape of the measurement target device 2. Note that the ξ axis, 邇, and 謗 may coincide with the three detection axes (x-axis, y-axis, and z-axis) of the acceleration sensor 20, respectively. In this case, the processing according to the flowchart of FIG. It becomes processing corresponding to.

次に、例えば、図16に示したフローチャートに従い、加速度情報(x,y,z)の生成処理を行う(ステップS110)。 Next, for example, according to the flowchart shown in FIG. 16, a process of generating acceleration information (x 1 , y 1 , z 1 ) is performed (step S110).

なお、ステップS100及びS110は、第1の加速度情報生成ステップに相当する。   Steps S100 and S110 correspond to a first acceleration information generation step.

次に、ξ軸が真下方向(重力方向)又はその近傍を向くように測定対象装置2をセットする(ステップS120)。   Next, the measurement target device 2 is set so that the ξ axis faces directly below (gravity direction) or the vicinity thereof (step S120).

次に、例えば、図16に示したフローチャートに従い、加速度情報(x,y,z)の生成処理を行う(ステップS130)。 Next, the acceleration information (x 2 , y 2 , z 2 ) is generated according to the flowchart shown in FIG. 16, for example (step S130).

なお、ステップS120及びS130は、第2の加速度情報生成ステップに相当する。   Steps S120 and S130 correspond to a second acceleration information generation step.

次に、邇イが真上方向又はその近傍を向くように測定対象装置2をセットし(ステップS140)、例えば、図16に示したフローチャートに従い、加速度情報(x,y,z)の生成処理を行う(ステップS150)。 Next, the measurement target device 2 is set so that the heel is directed right above or in the vicinity thereof (step S140), and, for example, according to the flowchart shown in FIG. 16, acceleration information (x 3 , y 3 , z 3 ) Is generated (step S150).

なお、ステップS140及びS150は、第3の加速度情報生成ステップに相当する。   Steps S140 and S150 correspond to a third acceleration information generation step.

次に、邇イが真下方向又はその近傍を向くように測定対象装置2をセットし(ステップS160)、例えば、図16に示したフローチャートに従い、加速度情報(x,y,z)の生成処理を行う(ステップS170)。 Next, the measurement target device 2 is set so that the heel is directed directly downward or in the vicinity thereof (step S160). For example, according to the flowchart shown in FIG. 16, the acceleration information (x 4 , y 4 , z 4 ) Generation processing is performed (step S170).

なお、ステップS160及びS170は、第4の加速度情報生成ステップに相当する。   Steps S160 and S170 correspond to a fourth acceleration information generation step.

次に、謗イが真上方向又はその近傍を向くように測定対象装置2をセットし(ステップS180)、例えば、図16に示したフローチャートに従い、加速度情報(x,y,z)の生成処理を行う(ステップS190)。 Next, the measurement target device 2 is set so that the heel is directed upward or in the vicinity thereof (step S180), and, for example, according to the flowchart shown in FIG. 16, acceleration information (x 5 , y 5 , z 5 ) Is generated (step S190).

なお、ステップS180及びS190は、第5の加速度情報生成ステップに相当する。   Steps S180 and S190 correspond to a fifth acceleration information generation step.

次に、謗イが真下方向又はその近傍を向くように測定対象装置2をセットし(ステップS200)、例えば、図16に示したフローチャートに従い、加速度情報(x,y,z)の生成処理を行う(ステップS210)。 Next, the measurement target device 2 is set so that the heel is directed downward or in the vicinity thereof (step S200). For example, according to the flowchart shown in FIG. 16, the acceleration information (x 6 , y 6 , z 6 ) Generation processing is performed (step S210).

なお、ステップS200及びS210は、第6の加速度情報生成ステップに相当する。   Steps S200 and S210 correspond to a sixth acceleration information generation step.

最後に、例えば、図15に示したフローチャートに従い、加速度センサ20のオフセット誤差情報及び感度誤差情報の計算処理を行う(ステップS220)。   Finally, for example, according to the flowchart shown in FIG. 15, calculation processing of offset error information and sensitivity error information of the acceleration sensor 20 is performed (step S220).

1−4.本実施形態の効果
本実施形態によれば、加速度センサ20の検出情報に基づく任意の6組の加速度情報(x,y,z)〜(x,y,z)が得られれば代数的に加速度センサ20のオフセット誤差p,q,r及び感度誤差a−1,b−1,c−1を計算することができる。従って、従来手法のように加速度センサ20の各検出軸方向を正確に上向き及び下向きに合わせた状態での検出情報が得られなくとも、加速度センサ20の向きに関係なく得られた検出情報に基づきオフセット誤差p,q,r及び感度誤差a−1,b−1,c−1を計算することができる。
1-4. Effects of this Embodiment According to this embodiment, arbitrary six sets of acceleration information (x 1 , y 1 , z 1 ) to (x 6 , y 6 , z 6 ) based on the detection information of the acceleration sensor 20 are obtained. If so, the offset errors p, q, r and sensitivity errors a-1, b-1, c-1 of the acceleration sensor 20 can be calculated algebraically. Therefore, even if detection information in a state in which each detection axis direction of the acceleration sensor 20 is accurately aligned upward and downward as in the conventional method cannot be obtained, it is based on the detection information obtained regardless of the direction of the acceleration sensor 20. Offset errors p, q, r and sensitivity errors a-1, b-1, c-1 can be calculated.

また、ニュートン法(ニュートン・ラプソン法)により、コンピュータで連立2次方程式の解を反復計算により得る方法では計算が収束するまでに時間がかかるが、本実施形態によれば、連立2次方程式(10a)〜(10f)を連立1次方程式に帰着させて代数的に解くので計算時間を短縮することができる。   In addition, in the method of obtaining the solution of the simultaneous quadratic equation by iterative calculation with a computer by Newton method (Newton-Raphson method), it takes time until the calculation converges. However, according to the present embodiment, the simultaneous quadratic equation ( Since 10a) to (10f) are reduced to simultaneous linear equations and solved algebraically, the calculation time can be shortened.

また、本実施形態において、係数行列Mが式(22)のようになるようにすれば係数行列Mの対角要素の絶対値が他の要素の絶対値よりも大きい値になるので、連立1次方程式(19a)〜(19e)の計算過程でピボット選択を行わなくても解が得られるとともに計算誤差もより小さくなる。従って、計算負荷を増やさずに連立1次方程式(19a)〜(19e)を安定して精度良く解くことができる。   Further, in the present embodiment, if the coefficient matrix M is set as shown in Expression (22), the absolute values of the diagonal elements of the coefficient matrix M become larger than the absolute values of the other elements. A solution can be obtained without performing pivot selection in the calculation process of the following equations (19a) to (19e), and the calculation error becomes smaller. Therefore, the simultaneous linear equations (19a) to (19e) can be stably and accurately solved without increasing the calculation load.

また、本実施形態において、図17に示したように、互いに直交するξ軸、邇イ、謗イがそれぞれ真上方向近傍及び真下方向近傍を向くようにして得られた6組の加速度情報(x,y,z)〜(x,y,z)を用いれば、加速度センサ20のx軸、y軸、z軸で作られるxyz空間上で、6組の加速度情報に対応する6点が互いに十分離れた位置になる。従って、この6組の加速度情報を用いればより精度良く楕円体の方程式(9)を特定することができるので、加速度センサ20のオフセット誤差p,q,r及び感度誤差a−1,b−1,c−1をより精度良く計算することができる。 Further, in the present embodiment, as shown in FIG. 17, six sets of acceleration information obtained by making the ξ axis, 邇 i, and 謗 i orthogonal to each other point in the vicinity of the directly upward direction and the vicinity of the directly downward direction ( If x 1 , y 1 , z 1 ) to (x 6 , y 6 , z 6 ) are used, six sets of acceleration information are obtained on the xyz space created by the x-axis, y-axis, and z-axis of the acceleration sensor 20. Corresponding 6 points are located sufficiently away from each other. Therefore, since the ellipsoidal equation (9) can be specified with higher accuracy by using these six sets of acceleration information, the offset errors p, q, r and sensitivity errors a-1, b-1 of the acceleration sensor 20 are identified. , C−1 can be calculated with higher accuracy.

また、本実施形態において、図16に示したように、加速度センサ20の検出情報の変動幅が所定値以下である状態が所定時間持続した場合に当該所定時間に取得した検出情報の平均値を加速度情報(x,y,z)〜(x,y,z)とすれば、加速度情報(x,y,z)〜(x,y,z)はx,y,z軸方向の重力加速度成分がより正確に反映されるので、より精度良く楕円体の方程式(9)を特定することができる。また、加速度センサ20の検出情報に含まれるランダムなノイズや丸め誤差の影響を減らすことができるので、加速度センサ20のオフセット誤差p,q,r及び感度誤差a−1,b−1,c−1をさらに精度良く計算することができる。 In the present embodiment, as shown in FIG. 16, when the fluctuation range of the detection information of the acceleration sensor 20 is equal to or less than a predetermined value, the average value of the detection information acquired at the predetermined time is obtained for a predetermined time. If acceleration information (x 1 , y 1 , z 1 ) to (x 6 , y 6 , z 6 ) is taken, acceleration information (x 1 , y 1 , z 1 ) to (x 6 , y 6 , z 6 ) Since the gravitational acceleration components in the x, y, and z axis directions are more accurately reflected, the ellipsoidal equation (9) can be specified with higher accuracy. In addition, since the influence of random noise and rounding error included in the detection information of the acceleration sensor 20 can be reduced, the offset errors p, q, r and sensitivity errors a-1, b-1, c-1 of the acceleration sensor 20 are reduced. Can be calculated with higher accuracy.

そして、本実施形態において、測定対象装置2としてゲームコントローラを想定すると、ゲームコントローラに含まれる加速度センサのオフセット誤差及び感度誤差が分かるので、加速度センサの検出情報を補正して誤差なしの状態や誤差最大の状態でアプリケーションの動作確認テストができる。   In the present embodiment, assuming a game controller as the measurement target device 2, the offset error and sensitivity error of the acceleration sensor included in the game controller are known. You can test the operation of the application in the maximum state.

2.ゲームシステム
2−1.構成
図18は、本実施形態のゲームシステムの機能ブロック図の一例である。なお本実施形態のゲームシステムでは、図18の各部を全て含む必要はなく、その一部を省略した構成としてもよい。
2. Game system 2-1. Configuration FIG. 18 is an example of a functional block diagram of the game system of the present embodiment. In the game system of the present embodiment, it is not necessary to include all the units shown in FIG. 18, and a part of the game system may be omitted.

本実施形態のゲームシステムは、本体装置100、入力装置200、情報記憶媒体180、表示部(表示装置)190、スピーカ192、光源198を含んで構成されている。   The game system according to this embodiment includes a main body device 100, an input device 200, an information storage medium 180, a display unit (display device) 190, a speaker 192, and a light source 198.

入力装置200は、加速度センサ210、撮像部220、スピーカ230、振動部240、マイコン250、通信部260によって構成されている。   The input device 200 includes an acceleration sensor 210, an imaging unit 220, a speaker 230, a vibration unit 240, a microcomputer 250, and a communication unit 260.

加速度センサ210は、3軸(x軸、y軸、z軸)の加速度を検出する。すなわち、加速度センサ210は、上下方向、左右方向、及び、前後方向の加速度を検出することができる。なお、加速度センサ210は、一定時間(例えば、5msec)毎に加速度を検出している。加速度センサ210によって検出された加速度値(検出情報)は、通信部260によって本体装置100に送信される。   The acceleration sensor 210 detects acceleration in three axes (x axis, y axis, and z axis). That is, the acceleration sensor 210 can detect accelerations in the vertical direction, the horizontal direction, and the front-rear direction. Note that the acceleration sensor 210 detects acceleration every certain time (for example, 5 msec). The acceleration value (detection information) detected by the acceleration sensor 210 is transmitted to the main body device 100 by the communication unit 260.

撮像部220は、赤外線フィルタ222、レンズ224、撮像素子(イメージセンサ)226、画像処理回路228を含む。赤外線フィルタ222は、入力装置200の前方に配置され、表示部190に関連付けられて配置されている光源198から入射する光から赤外線のみを通過させる。レンズ224は、赤外線フィルタ222を透過した赤外線を集光して撮像素子226へ出射する。撮像素子226は、例えば、CMOSセンサやCCDのような固体撮像素子であり、レンズ224が集光した赤外線を撮像して撮像画像を生成する。撮像素子226で生成された撮像画像は、画像処理回路228で処理される。例えば、撮像素子226から得られた撮像画像を処理して高輝度部分を検知し、撮像画像における光源の位置情報(特定位置)を検出する。なお、光源が複数存在する場合には、撮像画像上の位置情報を検出する。また、検出した位置情報は、通信部260によって、本体装置100に送信される。   The imaging unit 220 includes an infrared filter 222, a lens 224, an imaging element (image sensor) 226, and an image processing circuit 228. The infrared filter 222 is disposed in front of the input device 200 and allows only infrared light from light incident from the light source 198 disposed in association with the display unit 190 to pass therethrough. The lens 224 collects the infrared light that has passed through the infrared filter 222 and emits it to the image sensor 226. The image pickup device 226 is a solid-state image pickup device such as a CMOS sensor or a CCD, for example, and picks up infrared rays collected by the lens 224 to generate a picked-up image. The captured image generated by the image sensor 226 is processed by the image processing circuit 228. For example, a captured image obtained from the image sensor 226 is processed to detect a high-luminance portion, and position information (specific position) of the light source in the captured image is detected. If there are a plurality of light sources, position information on the captured image is detected. Further, the detected position information is transmitted to the main device 100 by the communication unit 260.

スピーカ230は、本体装置100から通信部260を介して取得した音を出力する。   The speaker 230 outputs the sound acquired from the main body device 100 via the communication unit 260.

振動部(バイブレータ)240は、本体装置100から送信された振動信号を受信して、振動信号に基づいて作動する。   The vibration unit (vibrator) 240 receives the vibration signal transmitted from the main body device 100 and operates based on the vibration signal.

マイコン(マイクロコンピュータ)250は、受信した本体装置100からのデータに応じて、音を出力する制御や、バイブレータを作動させる制御を行う。また、加速度センサ210が検出した加速度値(検出情報)を通信部260を介して本体装置100に送信させる処理を行ったり、撮像部220によって検出された位置情報を、通信部260を介して本体装置100に送信させる処理を行う。   The microcomputer (microcomputer) 250 performs control for outputting sound and control for operating the vibrator in accordance with the received data from the main body device 100. In addition, a process for transmitting the acceleration value (detection information) detected by the acceleration sensor 210 to the main body device 100 via the communication unit 260 or the position information detected by the imaging unit 220 via the communication unit 260 is performed. Processing to be transmitted to the apparatus 100 is performed.

通信部260は、アンテナ、無線モジュールを含み、例えばBluetooth(ブルートゥース;登録商標)などの通信方式により、本体装置100とデータを無線で送受信する。通信部260は、加速度センサ210によって検出された加速度値(検出情報)や撮像部220において検出した位置情報等を、所定の時間間隔で順次本体装置100に送信している。なお、通信部260は、本体装置100と通信ケーブルで接続し、当該通信ケーブルを介して情報の送受信を行うようにしてもよい。   The communication unit 260 includes an antenna and a wireless module, and wirelessly transmits and receives data to and from the main body device 100 using a communication method such as Bluetooth (registered trademark). The communication unit 260 sequentially transmits the acceleration value (detection information) detected by the acceleration sensor 210, the position information detected by the imaging unit 220, and the like to the main body device 100 sequentially at predetermined time intervals. Note that the communication unit 260 may be connected to the main apparatus 100 via a communication cable, and may transmit and receive information via the communication cable.

なお、入力装置200は、例えば、図2(A)〜図2(C)に示したようなコントローラであってもよく、操作部270として、ボタン、レバー(アナログパッド)、マウス、十字キー、タッチパネル型ディスプレイなどの操作子を更に設けてもよい。また、入力装置200はプレイヤの入力動作によって変化する角速度を検出するジャイロセンサを備えていてもよい。   The input device 200 may be, for example, a controller as shown in FIGS. 2A to 2C. As the operation unit 270, a button, a lever (analog pad), a mouse, a cross key, An operator such as a touch panel display may be further provided. In addition, the input device 200 may include a gyro sensor that detects an angular velocity that changes according to the input operation of the player.

また入力装置200は、プレイヤが把持して動かすものであってもよいし、プレイヤが身につけて動かすものであってもよい。また、入力装置200には、プレイヤが把持する刀型コントローラや銃型コントローラ、あるいはプレイヤが身につける(プレイヤが手に装着する)グローブ型コントローラなど実際の道具を模して作られたコントローラも含まれる。また入力装置200には、入力装置200と一体化されている本体装置100(ゲーム装置、携帯型ゲーム装置)、携帯電話機なども含まれる。   Further, the input device 200 may be one that the player holds and moves, or one that the player wears and moves. Further, the input device 200 includes a controller imitating an actual tool such as a sword-type controller or gun-type controller held by the player, or a glove-type controller worn by the player (attached to the hand of the player). included. The input device 200 also includes a main device 100 (game device, portable game device) integrated with the input device 200, a mobile phone, and the like.

次に、本実施形態の本体装置100について説明する。本実施形態の本体装置100は、記憶部170、処理部110、通信部196によって構成される。   Next, the main body apparatus 100 of this embodiment will be described. The main device 100 according to the present embodiment includes a storage unit 170, a processing unit 110, and a communication unit 196.

記憶部170は、処理部110や通信部194などのワーク領域となるもので、その機能はRAM(VRAM)などのハードウェアにより実現できる。   The storage unit 170 is a work area such as the processing unit 110 and the communication unit 194, and the function thereof can be realized by hardware such as a RAM (VRAM).

特に、本実施形態の記憶部170は、主記憶部172、描画バッファ174、音データ記憶部176を含む。主記憶部172は、処理部110や通信部194などのワーク領域となるもので、その機能はRAM(VRAM)などのハードウェアにより実現できる。また、描画バッファ174は、描画部140において生成された画像を記憶する。   In particular, the storage unit 170 of the present embodiment includes a main storage unit 172, a drawing buffer 174, and a sound data storage unit 176. The main storage unit 172 serves as a work area such as the processing unit 110 and the communication unit 194, and the function thereof can be realized by hardware such as a RAM (VRAM). The drawing buffer 174 stores the image generated by the drawing unit 140.

また、音データ記憶部176は、プレイヤの入力動作に対する入力装置200の反応を示す確認音や、ゲーム演算処理に伴い出力される効果音を記憶する。なお、確認音は、検出情報に応じて複数種類記憶する。また、効果音は、モーションや、所与のイベントに応じて複数種類記憶する。また、加速度センサ210によって検出される加速度の方向(上方向、下方向、左方向、右方向、前方向、後方向)に応じて複数種類の確認音を記憶してもよい。   In addition, the sound data storage unit 176 stores a confirmation sound indicating a response of the input device 200 to the input operation of the player and a sound effect output in accordance with the game calculation process. A plurality of types of confirmation sounds are stored according to the detection information. In addition, a plurality of types of sound effects are stored according to motion and a given event. A plurality of types of confirmation sounds may be stored in accordance with the direction of acceleration detected by the acceleration sensor 210 (upward, downward, leftward, rightward, forward, and backward).

情報記憶媒体180(コンピュータにより読み取り可能な媒体)は、プログラムやデータなどを格納するものであり、その機能は、光ディスク(CD、DVD)、光磁気ディスク(MO)、磁気ディスク、ハードディスク、磁気テープ、或いはメモリ(ROM)などにより実現できる。処理部110は、情報記憶媒体180に格納されるプログラム(データ)に基づいて本実施形態の種々の処理を行う。即ち情報記憶媒体180には、本実施形態の各部としてコンピュータを機能させるためのプログラム(各部の処理をコンピュータに実行させるためのプログラム)が記憶される。なお情報記憶媒体180は、メモリカードに、プレイヤの個人データやゲームのセーブデータなどを記憶するものも含む。   The information storage medium 180 (computer-readable medium) stores programs, data, and the like, and functions as an optical disk (CD, DVD), magneto-optical disk (MO), magnetic disk, hard disk, and magnetic tape. Alternatively, it can be realized by a memory (ROM). The processing unit 110 performs various processes of the present embodiment based on a program (data) stored in the information storage medium 180. That is, the information storage medium 180 stores a program for causing a computer to function as each unit of the present embodiment (a program for causing a computer to execute processing of each unit). The information storage medium 180 includes a memory card that stores player personal data, game save data, and the like.

表示部190は、処理部110により生成された画像等を出力するものであり、その機能は、CRTディスプレイ、LCD(液晶ディスプレイ)、OELD有機ELディスプレイ、PDP(プラズマディスプレイパネル)、タッチパネル型ディスプレイ、或いはHMD(ヘッドマウントディスプレイ)などのハードウェアにより実現できる。   The display unit 190 outputs an image generated by the processing unit 110, and functions thereof are a CRT display, an LCD (liquid crystal display), an OELD organic EL display, a PDP (plasma display panel), a touch panel display, Alternatively, it can be realized by hardware such as an HMD (head mounted display).

スピーカ192は、音制御部150により再生する音を出力するものであり、その機能は、スピーカ、或いはヘッドフォンなどのハードウェアにより実現できる。なお、スピーカ192は、表示部に備えられたスピーカとしてもよい。例えば、テレビ(家庭用テレビジョン受像機)を表示部190としている場合には、テレビのスピーカとすることができる。   The speaker 192 outputs sound reproduced by the sound control unit 150, and the function can be realized by hardware such as a speaker or headphones. Note that the speaker 192 may be a speaker provided in the display unit. For example, when a television (a home television receiver) is used as the display unit 190, a television speaker can be used.

光源198は、例えばLEDであり、表示部190に関連付けられて配置される。   The light source 198 is, for example, an LED, and is disposed in association with the display unit 190.

通信部196は、ネットワーク(インターネット)を介して他の本体装置(ゲーム装置)と通信することができる。その機能は、各種プロセッサ又は通信用ASIC、ネットワーク・インタフェース・カードなどのハードウェアや、プログラムなどにより実現できる。また、通信部196は、有線、無線いずれの通信も行うことができる。   The communication unit 196 can communicate with another main body device (game device) via a network (Internet). The function can be realized by various processors, hardware such as a communication ASIC, a network interface card, or a program. The communication unit 196 can perform both wired and wireless communication.

また、通信部196は、アンテナ、無線モジュールを含み、例えばBluetooth(ブルートゥース;登録商標)などの通信方式により、入力装置200の通信部260を介して、入力装置200とデータを送受信する。例えば、通信部196は、確認音、効果音等の音データ、及び、振動信号を、入力装置200に送信し、入力装置200において、加速度センサ210や撮像素子226によって検出された情報を所定の間隔で受信する。   The communication unit 196 includes an antenna and a wireless module, and transmits and receives data to and from the input device 200 via the communication unit 260 of the input device 200 by a communication method such as Bluetooth (registered trademark). For example, the communication unit 196 transmits sound data such as a confirmation sound and a sound effect, and a vibration signal to the input device 200, and information detected by the acceleration sensor 210 and the image sensor 226 in the input device 200 is predetermined. Receive at intervals.

なお、本実施形態の各部としてコンピュータを機能させるためのプログラム(データ)は、サーバが有する、記憶部、情報記憶媒体からネットワークを介して情報記憶媒体180(または、記憶部170)に配信するようにしてもよい。このようなサーバの情報記憶媒体の使用も本発明の範囲に含まれる。   Note that a program (data) for causing a computer to function as each unit of the present embodiment is distributed from the storage unit and the information storage medium of the server to the information storage medium 180 (or the storage unit 170) via the network. It may be. Use of such server information storage media is also within the scope of the present invention.

処理部110(プロセッサ)は、入力装置200から受信した検出情報や情報記憶媒体180から記憶部170に展開されたプログラム等に基づいて、ゲーム演算処理、画像生成処理、或いは音制御の処理などを行う。   The processing unit 110 (processor) performs game calculation processing, image generation processing, sound control processing, or the like based on the detection information received from the input device 200 or a program developed from the information storage medium 180 to the storage unit 170. Do.

特に本実施形態の処理部110は、加速度誤差測定部120、ゲーム演算部130、描画部140、音制御部150、振動制御部160を含む。   In particular, the processing unit 110 of this embodiment includes an acceleration error measurement unit 120, a game calculation unit 130, a drawing unit 140, a sound control unit 150, and a vibration control unit 160.

加速度誤差測定部120は、加速度情報生成部121、連立方程式作成部122、連立方程式計算部123、加速度誤差計算部124、加速度誤差設定部125を含む。   The acceleration error measurement unit 120 includes an acceleration information generation unit 121, simultaneous equation creation unit 122, simultaneous equation calculation unit 123, acceleration error calculation unit 124, and acceleration error setting unit 125.

加速度情報生成部121は、入力装置200から加速度センサ210の検出情報を取得し、取得した検出情報に基づいて加速度情報を生成する処理を行う。   The acceleration information generation part 121 acquires the detection information of the acceleration sensor 210 from the input device 200, and performs the process which produces | generates acceleration information based on the acquired detection information.

例えば、加速度情報生成部121は、加速度センサ210の検出情報に基づいて、加速度センサ210の運動による加速度が無視できる状態であるか否かを判定し、加速度センサ210の運動による加速度が無視できる状態での検出情報に基づいて、加速度情報を生成するようにしてもよい。   For example, the acceleration information generation unit 121 determines whether or not the acceleration due to the motion of the acceleration sensor 210 can be ignored based on the detection information of the acceleration sensor 210, and the acceleration due to the motion of the acceleration sensor 210 can be ignored. The acceleration information may be generated based on the detection information at.

また、例えば、加速度情報生成部121は、加速度センサ210の検出情報の変動幅が所定の条件を満たす状態(例えば、所定値以下である状態)が所定時間持続すれば加速度センサ210の運動による加速度が無視できる状態であると判定するようにしてもよい。   In addition, for example, the acceleration information generation unit 121 determines that the acceleration due to the motion of the acceleration sensor 210 if a state in which the fluctuation range of the detection information of the acceleration sensor 210 satisfies a predetermined condition (for example, a state that is not more than a predetermined value) continues for a predetermined time. May be determined to be in a state that can be ignored.

また、例えば、加速度情報生成部121は、前記所定時間に取得した複数の検出情報に基づいて前記加速度情報を生成する(例えば、前記所定時間に取得した複数の検出情報の全部又は一部の平均値を加速度情報とする)ようにしてもよい。   Further, for example, the acceleration information generation unit 121 generates the acceleration information based on the plurality of detection information acquired at the predetermined time (for example, an average of all or part of the plurality of detection information acquired at the predetermined time). The value may be acceleration information).

連立方程式作成部122は、加速度センサ210の互いに直交する3つの検出軸方向(x軸方向、y軸方向、z軸方向)の各感度及び各オフセットに対応した6つのパラメータa,b,c,p,q,rを含む楕円体の方程式の変数に、加速度センサ210の検出情報に基づく6組の加速度情報を代入し、6つのパラメータa,b,c,p,q,rを未知数とする6つの2次方程式からなる連立2次方程式を作成する処理を行う。   The simultaneous equation creating unit 122 includes six parameters a, b, c, and a corresponding to each sensitivity and each offset in three detection axis directions (x-axis direction, y-axis direction, and z-axis direction) orthogonal to each other of the acceleration sensor 210. Six sets of acceleration information based on detection information of the acceleration sensor 210 are substituted into variables of an ellipsoidal equation including p, q, and r, and six parameters a, b, c, p, q, and r are set as unknowns. A process of creating simultaneous quadratic equations composed of six quadratic equations is performed.

例えば、連立方程式作成部122は、楕円体の方程式として方程式{(x−p)/a}+{(y−q)/b}+{(z−r)/c}=1を用いるようにしてもよい。 For example, the simultaneous equation creating unit 122 sets the equation {(x−p) / a} 2 + {(y−q) / b} 2 + {(z−r) / c} 2 = 1 as an ellipsoidal equation. You may make it use.

連立方程式計算部123は、連立方程式作成部122が作成した連立2次方程式を、6つの未知数a,b,c,p,q,rの少なくとも1つを含む式でそれぞれ表される5つの新たな未知数α,β,γ,δ,εを含むとともに6つの未知数a,b,c,p,q,rのいずれも含まない5つの1次方程式からなる連立1次方程式に帰着させて当該連立1次方程式を解く処理を行う。   The simultaneous equation calculation unit 123 converts the simultaneous quadratic equation created by the simultaneous equation creation unit 122 into five new expressions each represented by an expression including at least one of six unknowns a, b, c, p, q, and r. The unknowns α, β, γ, δ, and ε, and the simultaneous equations that consist of five linear equations that do not include any of the six unknowns a, b, c, p, q, and r. A process for solving the linear equation is performed.

また、例えば、連立方程式計算部123は、連立1次方程式の係数行列がその対角要素の絶対値が対角要素でない他のすべての要素の絶対値よりも大きくなるように連立1次方程式を作成するようにしてもよい。   In addition, for example, the simultaneous equation calculation unit 123 converts the simultaneous linear equations so that the coefficient matrix of the simultaneous linear equations is larger than the absolute values of all other elements whose diagonal elements are not diagonal elements. You may make it create.

また、例えば、連立方程式計算部123は、加速度センサ210の検出情報に基づく6組の加速度情報の中で第1の検出軸方向(例えばx軸方向)の値が最大及び最小の2つの加速度情報を楕円体の方程式の変数にそれぞれ代入して得られた2つの2次方程式の一方から他方を減算して得られる多項式に基づいて1次方程式の1つを作成し、前記6組の加速度情報の中で第2の検出軸方向(例えばy軸方向)の値が最大及び最小の2つの加速度情報を楕円体の方程式の変数にそれぞれ代入して得られた2つの2次方程式の一方から他方を減算して得られる多項式に基づいて1次方程式の他の1つを作成し、前記6組の加速度情報の中で第3の検出軸方向(例えばz軸方向)の値が最大及び最小の2つの加速度情報を楕円体の方程式の変数にそれぞれ代入して得られた2つの2次方程式の一方から他方を減算して得られる多項式に基づいて1次方程式の他の1つを作成するようにしてもよい。   In addition, for example, the simultaneous equation calculation unit 123 includes two pieces of acceleration information having a maximum value and a minimum value in the first detection axis direction (for example, the x-axis direction) among the six sets of acceleration information based on the detection information of the acceleration sensor 210. One of the linear equations is created based on a polynomial obtained by subtracting the other from one of the two quadratic equations obtained by substituting each into the variable of the ellipsoidal equation, and the six sets of acceleration information Among the two quadratic equations obtained by substituting the two acceleration information having the maximum and minimum values in the second detection axis direction (for example, the y-axis direction) into the variables of the ellipsoidal equation, respectively. The other one of the linear equations is created based on the polynomial obtained by subtracting, and among the six sets of acceleration information, the values in the third detection axis direction (for example, the z-axis direction) are the maximum and minimum values. Two pieces of acceleration information are converted into variables of the ellipsoid equation. It may be created other one of linear equations based on the polynomial obtained from one of the two quadratic equation obtained by substituting, respectively by subtracting the other.

また、例えば、連立方程式計算部123は、連立2次方程式の任意の2つの2次方程式を演算して得られる多項式又は当該多項式を変形した多項式の各項に含まれる、6つの未知数a,b,c,p,q,rから構成される式又は当該式を実数倍した式を5つの新たな未知数α,β,γ,δ,εと対応させて連立1次方程式を作成するようにしてもよい。   For example, the simultaneous equation calculation unit 123 includes six unknowns a and b included in each term of a polynomial obtained by calculating any two quadratic equations of the simultaneous quadratic equation or a polynomial obtained by modifying the polynomial. , C, p, q, r, or an expression obtained by multiplying the expression by a real number is made to correspond to five new unknowns α, β, γ, δ, ε to create simultaneous linear equations Also good.

また、例えば、連立方程式計算部123は、加速度センサ210の3つの検出軸(x軸、y軸、z軸)で作られる3次元空間において互いに直交する所定の3つの軸(ξ軸、邇イ、謗イ)がそれぞれ重力方向の逆方向(真上方向)又はその近傍を向く状態で得られる3組の検出情報に基づく3組の加速度情報と、前記所定の3つの軸(ξ軸、邇イ、謗イ)がそれぞれ重力方向(真下方向)又はその近傍を向く状態で得られる3組の検出情報に基づく3組の加速度情報と、を用いて連立2次方程式を作成するようにしてもよい。   In addition, for example, the simultaneous equation calculation unit 123 includes three predetermined axes (ξ axis, 邇 i) orthogonal to each other in a three-dimensional space created by the three detection axes (x axis, y axis, z axis) of the acceleration sensor 210. , 謗 b) each of three sets of acceleration information based on the three sets of detection information obtained in the state where each of them is directed in the direction opposite to the gravity direction (directly upward direction) or the vicinity thereof, and the predetermined three axes (ξ axis, 邇It is also possible to create simultaneous quadratic equations using three sets of acceleration information based on three sets of detection information obtained in a state in which a, b) are directed in the direction of gravity (directly below) or in the vicinity thereof. Good.

加速度誤差計算部124は、連立方程式計算部123により得られた5つの新たな未知数α,β,γ,δ,εの値から6つの未知数a,b,c,p,q,rの値を計算し、計算結果に基づいて加速度センサ210の3つの検出軸方向(x軸方向、y軸方向、z軸方向)のオフセット誤差情報及び感度誤差情報を計算する処理を行う。   The acceleration error calculation unit 124 calculates the values of six unknowns a, b, c, p, q, r from the values of the five new unknowns α, β, γ, δ, ε obtained by the simultaneous equation calculation unit 123. Calculation is performed, and offset error information and sensitivity error information in the three detection axis directions (x-axis direction, y-axis direction, and z-axis direction) of the acceleration sensor 210 are calculated based on the calculation result.

加速度誤差設定部125は、加速度誤差計算部124が計算したオフセット誤差情報及び感度誤差情報を記憶部170に記憶させる処理を行う。   The acceleration error setting unit 125 performs processing for storing the offset error information and sensitivity error information calculated by the acceleration error calculation unit 124 in the storage unit 170.

なお、加速度誤差測定部120は、ゲームプログラムの起動時又は加速度誤差測定イベントが発生した場合に、加速度センサ210の検出情報を取得してオフセット誤差情報及び感度誤差情報の計算を行い、計算したオフセット誤差情報及び感度誤差情報を記憶部170に記憶させる一連の処理を行うようにしてもよい。この場合、例えば、加速度センサ210の誤差情報を測定して記憶部170に記憶させるためのモード(加速度誤差情報設定モード)が設定された場合に、加速度誤差測定イベントが発生するようにしてもよい。そして、プレイヤが所定の操作入力を行うことにより、自発的に加速度誤差情報設定モードに設定してもよいし、処理部110が所定の条件が成立するか否かを判定して加速度誤差情報設定モードに設定するか否かを決定するようにしてもよい。   The acceleration error measurement unit 120 acquires detection information of the acceleration sensor 210 and calculates offset error information and sensitivity error information when the game program is started or when an acceleration error measurement event occurs, and the calculated offset is calculated. A series of processes for storing the error information and the sensitivity error information in the storage unit 170 may be performed. In this case, for example, when a mode (acceleration error information setting mode) for measuring error information of the acceleration sensor 210 and storing it in the storage unit 170 is set, an acceleration error measurement event may be generated. . Then, the player may voluntarily set the acceleration error information setting mode by performing a predetermined operation input, or the processing unit 110 determines whether a predetermined condition is satisfied and sets the acceleration error information. Whether or not to set the mode may be determined.

ゲーム演算部130は、キャラクタ(プレイヤキャラクタ、敵キャラクタ)、移動体(車、飛行機など)、建物、樹木、柱、壁、マップ(地形)などの表示物を表す各種オブジェクト(ポリゴン、自由曲面又はサブディビジョンサーフェスなどのプリミティブで構成されるオブジェクト)をオブジェクト空間に配置設定する処理を行う。即ちワールド座標系でのオブジェクトの位置や回転角度(向き、方向と同義)を決定し、その位置(X、Y、Z)にその回転角度(X、Y、Z軸回りでの回転角度)でオブジェクトを配置する。   The game calculation unit 130 displays various objects (polygon, free-form surface, or surface) such as characters (player characters, enemy characters), moving objects (cars, airplanes, etc.), buildings, trees, pillars, walls, maps (terrain), etc. The object is arranged and set in the object space. In other words, the position and rotation angle of the object in the world coordinate system (synonymous with direction and direction) are determined, and the rotation angle (rotation angle around the X, Y, and Z axes) is determined at that position (X, Y, Z). Arrange objects.

また、ゲーム演算部130は、オブジェクト空間内の所与(任意)の視点から見える画像を生成するための仮想カメラ(視点)の制御処理を行う。具体的には、仮想カメラの位置(X、Y、Z)又は回転角度(X、Y、Z軸回りでの回転角度)を制御する処理(視点位置、視線方向あるいは画角を制御する処理)を行う。   In addition, the game calculation unit 130 performs a virtual camera (viewpoint) control process for generating an image that can be seen from a given (arbitrary) viewpoint in the object space. Specifically, processing for controlling the position (X, Y, Z) or rotation angle (rotation angle about the X, Y, Z axis) of the virtual camera (processing for controlling the viewpoint position, the line-of-sight direction or the angle of view) I do.

例えば、仮想カメラによりオブジェクト(例えば、キャラクタ等)を後方から撮影する場合には、オブジェクトの位置又は回転の変化に仮想カメラが追従するように、仮想カメラの位置又は回転角度(仮想カメラの向き)を制御する。この場合には、オブジェクトの位置、回転角度又は速度などの情報に基づいて、仮想カメラを制御できる。或いは、仮想カメラを、予め決められた回転角度で回転させたり、予め決められた移動経路で移動させる制御を行ってもよい。この場合には、仮想カメラの位置(移動経路)又は回転角度を特定するための仮想カメラデータに基づいて仮想カメラを制御する。なお、仮想カメラ(視点)が複数存在する場合には、それぞれの仮想カメラについて上記の制御処理が行われる。   For example, when an object (for example, a character) is photographed from behind using a virtual camera, the position or rotation angle of the virtual camera (the direction of the virtual camera) so that the virtual camera follows changes in the position or rotation of the object. To control. In this case, the virtual camera can be controlled based on information such as the position, rotation angle, or speed of the object. Alternatively, the virtual camera may be controlled to rotate at a predetermined rotation angle or to move along a predetermined movement path. In this case, the virtual camera is controlled based on the virtual camera data for specifying the position (movement path) or rotation angle of the virtual camera. When there are a plurality of virtual cameras (viewpoints), the above control process is performed for each virtual camera.

また、ゲーム演算部130は、モデル(キャラクタ、車、飛行機等)の移動・動作演算(移動・動作シミュレーション)を行う。すなわち、プログラム(移動・動作アルゴリズム)や、モーションデータなどに基づいて、モデルをオブジェクト空間内で移動させたり、オブジェクトを動作(モーション、アニメーション)させたりする処理を行う。具体的には、オブジェクトの移動情報(位置、回転角度、速度、或いは加速度)や動作情報(オブジェクトを構成する各パーツの位置、或いは回転角度)を、1フレーム(1/60秒)毎に順次求めるシミュレーション処理を行う。なおフレームは、オブジェクトの移動・動作処理(シミュレーション処理)や画像生成処理を行う時間の単位である。   In addition, the game calculation unit 130 performs a movement / motion calculation (movement / motion simulation) of a model (character, car, airplane, etc.). That is, based on a program (movement / motion algorithm), motion data, or the like, a process of moving the model in the object space or moving the object (motion, animation) is performed. Specifically, object movement information (position, rotation angle, speed, or acceleration) and motion information (position or rotation angle of each part that constitutes the object) are sequentially transmitted every frame (1/60 seconds). Perform the required simulation process. A frame is a unit of time for performing object movement / motion processing (simulation processing) and image generation processing.

描画部140は、処理部110で行われる種々の処理(ゲーム演算処理)の結果に基づいて描画処理を行い、これにより画像を生成し、表示部190に出力する。いわゆる3次元ゲーム画像を生成する場合には、まず表示物(オブジェクト、モデル)を定義する各頂点の頂点データ(頂点の位置座標、テクスチャ座標、色データ、法線ベクトル或いはα値等)を含む表示物データ(オブジェクトデータ、モデルデータ)が入力され、入力された表示物データに含まれる頂点データに基づいて、頂点処理が行われる。なお頂点処理を行うに際して、必要に応じてポリゴンを再分割するための頂点生成処理(テッセレーション、曲面分割、ポリゴン分割)を行うようにしてもよい。頂点処理では、頂点の移動処理や、座標変換(ワールド座標変換、カメラ座標変換)、クリッピング処理、透視変換、あるいは光源処理等のジオメトリ処理が行われ、その処理結果に基づいて、表示物を構成する頂点群について与えられた頂点データを変更(更新、調整)する。そして、頂点処理後の頂点データに基づいてラスタライズ(走査変換)が行われ、ポリゴン(プリミティブ)の面とピクセルとが対応づけられる。そしてラスタライズに続いて、画像を構成するピクセル(表示画面を構成するフラグメント)を描画するピクセル処理(フラグメント処理)が行われる。ピクセル処理では、テクスチャの読出し(テクスチャマッピング)、色データの設定/変更、半透明合成、アンチエイリアス等の各種処理を行って、画像を構成するピクセルの最終的な描画色を決定し、透視変換されたオブジェクトの描画色を描画バッファ176(ピクセル単位で画像情報を記憶できるバッファ。VRAM、レンダリングターゲット)に出力(描画)する。すなわち、ピクセル処理では、画像情報(色、法線、輝度、α値等)をピクセル単位で設定あるいは変更するパーピクセル処理を行う。これにより、オブジェクト空間内に設定された仮想カメラ(所与の視点)から見える画像が生成される。なお、仮想カメラ(視点)が複数存在する場合には、それぞれの仮想カメラから見える画像を分割画像として1画面に表示できるように画像を生成することができる。   The drawing unit 140 performs drawing processing based on the results of various processing (game calculation processing) performed by the processing unit 110, thereby generating an image and outputting the image to the display unit 190. When a so-called three-dimensional game image is generated, first, vertex data (vertex position coordinates, texture coordinates, color data, normal vector, α value, etc.) of each vertex defining a display object (object, model) is included. Display object data (object data, model data) is input, and vertex processing is performed based on vertex data included in the input display object data. When performing the vertex processing, vertex generation processing (tessellation, curved surface division, polygon division) for re-dividing the polygon may be performed as necessary. In vertex processing, geometry processing such as vertex movement processing, coordinate transformation (world coordinate transformation, camera coordinate transformation), clipping processing, perspective transformation, or light source processing is performed, and the display object is configured based on the processing result. The given vertex data is changed (updated, adjusted) for the vertex group. Then, rasterization (scan conversion) is performed based on the vertex data after the vertex processing, and the surface of the polygon (primitive) is associated with the pixel. Subsequent to rasterization, pixel processing (fragment processing) for drawing pixels constituting an image (fragments constituting a display screen) is performed. In pixel processing, various processes such as texture reading (texture mapping), color data setting / changing, translucent composition, anti-aliasing, etc. are performed to determine the final drawing color of the pixels that make up the image, and perspective transformation is performed. The drawing color of the object is output (drawn) to the drawing buffer 176 (buffer that can store image information in units of pixels; VRAM, rendering target). That is, in pixel processing, per-pixel processing for setting or changing image information (color, normal, luminance, α value, etc.) in units of pixels is performed. Thereby, an image that can be seen from the virtual camera (given viewpoint) set in the object space is generated. Note that when there are a plurality of virtual cameras (viewpoints), an image can be generated so that an image seen from each virtual camera can be displayed as a divided image on one screen.

なお描画部140が行う頂点処理やピクセル処理は、シェーディング言語によって記述されたシェーダプログラムによって、ポリゴン(プリミティブ)の描画処理をプログラム可能にするハードウェア、いわゆるプログラマブルシェーダ(頂点シェーダやピクセルシェーダ)により実現されてもよい。プログラマブルシェーダでは、頂点単位の処理やピクセル単位の処理がプログラム可能になることで描画処理内容の自由度が高く、ハードウェアによる固定的な描画処理に比べて表現力を大幅に向上させることができる。   The vertex processing and pixel processing performed by the drawing unit 140 are realized by hardware that enables polygon (primitive) drawing processing to be programmed by a shader program written in a shading language, so-called programmable shaders (vertex shaders and pixel shaders). May be. Programmable shaders can be programmed with vertex-level processing and pixel-level processing, so that the degree of freedom of rendering processing is high, and the expressive power can be greatly improved compared to fixed rendering processing by hardware. .

そして描画部140は、表示物を描画する際に、ジオメトリ処理、テクスチャマッピング、隠面消去処理、αブレンディング等を行う。   The drawing unit 140 performs geometry processing, texture mapping, hidden surface removal processing, α blending, and the like when drawing the display object.

ジオメトリ処理では、表示物に関して、座標変換、クリッピング処理、透視投影変換、或いは光源計算等の処理が行われる。そして、ジオメトリ処理後(透視投影変換後)の表示物データ(表示物の頂点の位置座標、テクスチャ座標、色データ(輝度データ)、法線ベクトル、或いはα値等)は、主記憶部172に保存される。   In the geometry processing, processing such as coordinate conversion, clipping processing, perspective projection conversion, or light source calculation is performed on the display object. Then, display object data after geometric processing (after perspective projection conversion) (position coordinates of vertex of the display object, texture coordinates, color data (luminance data), normal vector, α value, etc.) is stored in the main storage unit 172. Saved.

テクスチャマッピングは、記憶部170に記憶されるテクスチャ(テクセル値)を表示物にマッピングするための処理である。具体的には、表示物の頂点に設定(付与)されるテクスチャ座標等を用いて記憶部170からテクスチャ(色(RGB)、α値などの表面プロパティ)を読み出す。そして、2次元の画像であるテクスチャを表示物にマッピングする。この場合に、ピクセルとテクセルとを対応づける処理や、テクセルの補間としてバイリニア補間などを行う。   Texture mapping is a process for mapping a texture (texel value) stored in the storage unit 170 to a display object. Specifically, the texture (surface properties such as color (RGB) and α value) is read from the storage unit 170 using texture coordinates or the like set (given) at the vertex of the display object. Then, a texture that is a two-dimensional image is mapped to a display object. In this case, processing for associating pixels with texels, bilinear interpolation or the like is performed as texel interpolation.

隠面消去処理としては、描画ピクセルのZ値(奥行き情報)が格納されるZバッファ(奥行きバッファ)を用いたZバッファ法(奥行き比較法、Zテスト)による隠面消去処理を行うことができる。すなわちオブジェクトのプリミティブに対応する描画ピクセルを描画する際に、Zバッファに格納されるZ値を参照する。そして参照されたZバッファのZ値と、プリミティブの描画ピクセルでのZ値とを比較し、描画ピクセルでのZ値が、仮想カメラから見て手前側となるZ値(例えば小さなZ値)である場合には、その描画ピクセルの描画処理を行うとともにZバッファのZ値を新たなZ値に更新する。   As the hidden surface removal processing, hidden surface removal processing can be performed by a Z buffer method (depth comparison method, Z test) using a Z buffer (depth buffer) in which Z values (depth information) of drawing pixels are stored. . That is, when drawing pixels corresponding to the primitive of the object are drawn, the Z value stored in the Z buffer is referred to. Then, the Z value of the referenced Z buffer is compared with the Z value at the drawing pixel of the primitive, and the Z value at the drawing pixel is a Z value (for example, a small Z value) on the near side when viewed from the virtual camera. In some cases, the drawing process of the drawing pixel is performed and the Z value of the Z buffer is updated to a new Z value.

αブレンディング(α合成)は、α値(A値)に基づく半透明合成処理(通常αブレンディング、加算αブレンディング又は減算αブレンディング等)のことである。例えば、通常αブレンディングでは、α値を合成の強さとして線形補間を行うことにより2つの色を合成した色を求める処理を行う。   α blending (α synthesis) is a translucent synthesis process (usually α blending, addition α blending, subtraction α blending, or the like) based on an α value (A value). For example, in normal α blending, a process for obtaining a color obtained by combining two colors by performing linear interpolation with the α value as the strength of synthesis is performed.

なお、α値は、各ピクセル(テクセル、ドット)に関連づけて記憶できる情報であり、例えばRGBの各色成分の輝度を表す色情報以外のプラスアルファの情報である。α値は、マスク情報、半透明度(透明度、不透明度と等価)、バンプ情報などとして使用できる。   The α value is information that can be stored in association with each pixel (texel, dot), and is, for example, plus alpha information other than color information indicating the luminance of each RGB color component. The α value can be used as mask information, translucency (equivalent to transparency and opacity), bump information, and the like.

音制御部150は、処理部110で行われる種々の処理(ゲーム演算処理等)の結果に基づいて音データ記憶部176に記憶されている音(確認音、効果音を含む)を、入力装置のスピーカ230及びスピーカ192の少なくとも一方から出力させる処理を行う。   The sound control unit 150 receives sounds (including confirmation sounds and sound effects) stored in the sound data storage unit 176 based on the results of various processes (game calculation process, etc.) performed by the processing unit 110 as input devices. A process of outputting from at least one of the speaker 230 and the speaker 192 is performed.

振動制御部160は、入力装置に設けられた振動部240に振動させる処理を行う。   The vibration control unit 160 performs a process of causing the vibration unit 240 provided in the input device to vibrate.

なお、本実施形態のゲームシステムは、1人のプレイヤのみがプレイできるシングルプレイヤモード専用のシステムにしてもよいし、複数のプレイヤがプレイできるマルチプレイヤモードも備えるシステムにしてもよい。また複数のプレイヤがプレイする場合に、これらの複数のプレイヤに提供するゲーム画像やゲーム音を、1つの本体装置、表示部を用いて生成してもよい。また、ネットワーク(伝送ライン、通信回線)などで接続された複数のゲーム装置を用いて分散処理により生成してもよい。また、本実施形態は、複数のプレイヤでゲームを行う場合には、複数のプレイヤの入力装置毎に、検出情報に基づいて所定条件を満たすか否かの判定や、判定結果に基づく音制御や、振動制御を行う。   Note that the game system of the present embodiment may be a system dedicated to the single player mode in which only one player can play, or may be a system having a multiplayer mode in which a plurality of players can play. Further, when a plurality of players play, a game image or a game sound provided to the plurality of players may be generated using one main device and a display unit. Alternatively, it may be generated by distributed processing using a plurality of game devices connected via a network (transmission line, communication line) or the like. In addition, in the present embodiment, when a game is played by a plurality of players, it is determined whether or not a predetermined condition is satisfied based on detection information for each input device of the plurality of players, sound control based on the determination result, Perform vibration control.

2−2.本実施形態の具体的な処理
次に、本実施形態のゲームシステムの処理例について図19のフローチャートを用いて説明する。
2-2. Specific Processing of the Present Embodiment Next, a processing example of the game system of the present embodiment will be described using the flowchart of FIG.

ゲームプログラムが起動すると、本体装置100は、まず、加速度誤差情報設定モードか否かを判定する(ステップS300)。   When the game program is activated, main device 100 first determines whether or not the mode is the acceleration error information setting mode (step S300).

加速度誤差情報設定モードである場合(ステップS300でNoの場合)、本体装置100は、表示部190を介して、プレイヤに対して入力装置200を第1の姿勢で固定するように指示する表示を行う(ステップS310)。第1の姿勢はあらかじめ決められた所定の姿勢であり、例えば、ξ軸(x軸と一致してもよい)が真上方向又はその近傍を向くような姿勢である。プレイヤが補助具などを使用して入力装置200を第1の姿勢に固定すると、本体装置100は加速度センサ210の検出情報を取得し、1組目の加速度情報(x,y,z)を生成する(ステップS320)。ステップS320の処理は、例えば、図16のフローチャートに示した処理と同様であってもよい。 When the acceleration error information setting mode is set (No in step S300), the main device 100 displays a display for instructing the player to fix the input device 200 in the first posture via the display unit 190. This is performed (step S310). The first posture is a predetermined posture determined in advance, for example, a posture in which the ξ axis (which may coincide with the x-axis) faces directly above or in the vicinity thereof. When the player uses the assisting tool or the like to fix the input device 200 to the first posture, the main body device 100 acquires the detection information of the acceleration sensor 210, and the first set of acceleration information (x 1 , y 1 , z 1). ) Is generated (step S320). The process of step S320 may be the same as the process shown in the flowchart of FIG.

次に、本体装置100は、表示部190を介して、プレイヤに対して入力装置200を第2の姿勢で固定するように指示する表示を行う(ステップS330)。第2の姿勢はあらかじめ決められた姿勢であり、例えば、ξ軸(x軸と一致してもよい)が真下方向又はその近傍を向くような姿勢である。プレイヤが入力装置200を第2の姿勢に固定すると、本体装置100は加速度センサ210の検出情報を取得し、2組目の加速度情報(x,y,z)を生成する(ステップS340)。ステップS340の処理は、例えば、図16のフローチャートに示した処理と同様であってもよい。 Next, the main device 100 performs a display for instructing the player to fix the input device 200 in the second posture via the display unit 190 (step S330). The second posture is a predetermined posture, for example, a posture in which the ξ axis (which may coincide with the x-axis) faces directly below or in the vicinity thereof. When the player fixes the input device 200 to the second posture, the main device 100 acquires the detection information of the acceleration sensor 210 and generates the second set of acceleration information (x 2 , y 2 , z 2 ) (step S340). ). The process of step S340 may be the same as the process shown in the flowchart of FIG.

次に、本体装置100は、表示部190を介して、プレイヤに対して入力装置200を第3の姿勢で固定するように指示する表示を行う(ステップS350)。第3の姿勢はあらかじめ決められた姿勢であり、例えば、邇イ(y軸と一致してもよい)が真上方向又はその近傍を向くような姿勢である。プレイヤが入力装置200を第3の姿勢に固定すると、本体装置100は加速度センサ210の検出情報を取得し、3組目の加速度情報(x,y,z)を生成する(ステップS360)。ステップS360の処理は、例えば、図16のフローチャートに示した処理と同様であってもよい。 Next, the main body device 100 performs a display for instructing the player to fix the input device 200 in the third posture via the display unit 190 (step S350). The third posture is a predetermined posture, for example, a posture in which the eyelid (which may coincide with the y-axis) faces directly above or in the vicinity thereof. When the player fixes the input device 200 in the third posture, the main device 100 acquires the detection information of the acceleration sensor 210 and generates the third set of acceleration information (x 3 , y 3 , z 3 ) (step S360). ). The process of step S360 may be the same as the process shown in the flowchart of FIG.

次に、本体装置100は、表示部190を介して、プレイヤに対して入力装置200を第4の姿勢で固定するように指示する表示を行う(ステップS370)。第4の姿勢はあらかじめ決められた姿勢であり、例えば、邇イ(y軸と一致してもよい)が真下方向又はその近傍を向くような姿勢である。プレイヤが入力装置200を第4の姿勢に固定すると、本体装置100は加速度センサ210の検出情報を取得し、4組目の加速度情報(x,y,z)を生成する(ステップS380)。ステップS380の処理は、例えば、図16のフローチャートに示した処理と同様であってもよい。 Next, the main device 100 performs a display for instructing the player to fix the input device 200 in the fourth posture via the display unit 190 (step S370). The fourth posture is a predetermined posture, for example, a posture in which the eyelid (which may coincide with the y-axis) faces directly below or in the vicinity thereof. When the player fixes the input device 200 to the fourth posture, the main device 100 acquires the detection information of the acceleration sensor 210 and generates the fourth set of acceleration information (x 4 , y 4 , z 4 ) (step S380). ). The process in step S380 may be the same as the process shown in the flowchart of FIG.

次に、本体装置100は、表示部190を介して、プレイヤに対して入力装置200を第5の姿勢で固定するように指示する表示を行う(ステップS390)。第5の姿勢はあらかじめ決められた姿勢であり、例えば、謗イ(z軸と一致してもよい)が真上方向又はその近傍を向くような姿勢である。プレイヤが入力装置200を第5の姿勢に固定すると、本体装置100は加速度センサ210の検出情報を取得し、5組目の加速度情報(x,y,z)を生成する(ステップS400)。ステップS400の処理は、例えば、図16のフローチャートに示した処理と同様であってもよい。 Next, the main body device 100 performs a display for instructing the player to fix the input device 200 in the fifth posture via the display unit 190 (step S390). The fifth posture is a predetermined posture, for example, a posture in which the eyelid (which may coincide with the z-axis) faces directly above or in the vicinity thereof. When the player fixes the input device 200 to the fifth posture, the main device 100 acquires the detection information of the acceleration sensor 210 and generates the fifth set of acceleration information (x 5 , y 5 , z 5 ) (step S400). ). The process of step S400 may be the same as the process shown in the flowchart of FIG.

次に、本体装置100は、表示部190を介して、プレイヤに対して入力装置200を第6の姿勢で固定するように指示する表示を行う(ステップS410)。第6の姿勢はあらかじめ決められた姿勢であり、例えば、謗イ(z軸と一致してもよい)が真下方向又はその近傍を向くような姿勢である。プレイヤが入力装置200を第6の姿勢に固定すると、本体装置100は加速度センサ210の検出情報を取得し、6組目の加速度情報(x,y,z)を生成する(ステップS420)。ステップS420の処理は、例えば、図16のフローチャートに示した処理と同様であってもよい。 Next, the main device 100 performs a display for instructing the player to fix the input device 200 in the sixth posture via the display unit 190 (step S410). The sixth posture is a predetermined posture, for example, a posture in which the eyelid (which may coincide with the z-axis) faces directly below or in the vicinity thereof. When the player fixes the input device 200 in the sixth posture, the main device 100 acquires the detection information of the acceleration sensor 210 and generates the sixth set of acceleration information (x 6 , y 6 , z 6 ) (step S420). ). The process of step S420 may be the same as the process shown in the flowchart of FIG.

次に、本体装置100は、ステップS310〜S320で生成した6組の加速度情報(x,y,z)〜(x,y,z)を用いて、加速度センサ210の3つの検出軸方向のオフセット誤差情報及び感度誤差情報を計算する(ステップS430)。ステップS430の処理は、例えば、図15のフローチャートに示した処理と同様であってもよい。 Next, the main body device 100 uses the six sets of acceleration information (x 1 , y 1 , z 1 ) to (x 6 , y 6 , z 6 ) generated in steps S 310 to S 320 to perform 3 of the acceleration sensor 210. The offset error information and sensitivity error information in the two detection axis directions are calculated (step S430). The process of step S430 may be the same as the process shown in the flowchart of FIG.

次に、本体装置100は、ステップS430で計算した、加速度センサ210の3つの検出軸方向のオフセット誤差情報及び感度誤差情報を記憶部170に記憶する(ステップS440)。ここで、本体装置100は、ゲームプログラムの次回の起動時においてもこのオフセット誤差情報及び感度誤差情報を使用するために、情報記憶媒体180に書き込むようにしてもよい。   Next, the main device 100 stores the offset error information and sensitivity error information in the three detection axis directions of the acceleration sensor 210 calculated in step S430 in the storage unit 170 (step S440). Here, the main unit 100 may write the information into the information storage medium 180 in order to use the offset error information and the sensitivity error information at the next activation of the game program.

そして、本体装置100は、ゲーム演算を開始し、記憶部170に記憶されたオフセット誤差情報及び感度誤差情報に基づいて、取得した加速度センサ210の検出情報を補正しながらゲーム演算を行う(ステップS450)。   Then, main device 100 starts a game calculation, and performs the game calculation while correcting the acquired detection information of acceleration sensor 210 based on the offset error information and the sensitivity error information stored in storage unit 170 (step S450). ).

一方、ステップS300において、加速度誤差情報設定モードでない場合(ステップS300でNoの場合)、本体装置100は、入力装置2に対応づけてあらかじめ定義された加速度センサ210のオフセット誤差情報及び感度誤差情報に基づいて、取得した加速度センサ210の検出情報を補正しながらゲーム演算を行う(ステップS450)。また、本体装置100は、過去にステップS310〜S440の処理を行い情報記憶媒体180にオフセット誤差情報及び感度誤差情報が記憶されている場合には、情報記憶媒体180からオフセット誤差情報及び感度誤差情報を読み出して記憶部170に書き込み、取得した加速度センサ210の検出情報の補正を行うようにしてもよい。   On the other hand, if it is not the acceleration error information setting mode in step S300 (No in step S300), the main body device 100 displays the offset error information and sensitivity error information of the acceleration sensor 210 defined in advance in association with the input device 2. Based on this, game calculation is performed while correcting the acquired detection information of the acceleration sensor 210 (step S450). Further, when the offset error information and the sensitivity error information are stored in the information storage medium 180 by performing the processes of steps S310 to S440 in the past, the main body device 100 stores the offset error information and the sensitivity error information from the information storage medium 180. May be read out and written into the storage unit 170, and the acquired detection information of the acceleration sensor 210 may be corrected.

なお、スタート直後(ステップS300の直前)に加速度誤差情報設定モードが設定されるようにすれば、ゲームプログラムが起動する度に、最新のオフセット誤差情報及び感度誤差情報を用いて加速度センサ210の検出情報を補正することができる。こうすれば、例えば、ゲームプログラム起動時の温度やノイズの影響も考慮した補正を行うことができる。また、オフセット誤差情報及び感度誤差情報が情報記憶媒体180に記憶されていない場合や情報記憶媒体180に記憶されてから所定時間以上経過している場合等に加速度誤差情報設定モードが設定されるようにすれば、ゲームプログラム起動時に、プレイヤが入力装置を所定の姿勢に固定する操作を毎回行う手間を省くことができる。   If the acceleration error information setting mode is set immediately after the start (immediately before step S300), each time the game program is started, the acceleration sensor 210 is detected using the latest offset error information and sensitivity error information. Information can be corrected. In this way, for example, it is possible to perform correction in consideration of the influence of temperature and noise when starting the game program. Further, the acceleration error information setting mode is set when the offset error information and the sensitivity error information are not stored in the information storage medium 180 or when a predetermined time or more has elapsed since being stored in the information storage medium 180. By doing so, it is possible to save the player from having to perform an operation of fixing the input device in a predetermined posture every time the game program is started.

このように、本実施形態のゲームシステムによれば、ゲーム演算を開始する前に、加速度センサ210の向きに関係なく得られた検出情報に基づきオフセット誤差及び感度誤差を計算することができる。従って、加速度センサ210のオフセット誤差及び感度誤差を測定するために、プレイヤが加速度センサ210の各検出軸が正確に上向き及び下向きになるように入力装置200を保持する煩わしさがなくなる。   As described above, according to the game system of the present embodiment, the offset error and the sensitivity error can be calculated based on the detection information obtained regardless of the direction of the acceleration sensor 210 before starting the game calculation. Therefore, in order to measure the offset error and the sensitivity error of the acceleration sensor 210, the player does not have to bother to hold the input device 200 so that each detection axis of the acceleration sensor 210 is accurately upward and downward.

そして、本実施形態において、アプリケーション(ゲームプログラム)に加速度センサ210の誤差測定プログラムを組み込んでおき、アプリケーションの起動時に加速度センサ210のオフセット誤差及び感度誤差を測定すれば、当該アプリケーションは加速度センサ210の検出情報を補正することによってオフセット誤差及び感度誤差の影響を受けずに、プレイヤの入力操作をより正確に反映したゲーム演算を行うことができる。   In the present embodiment, if an error measurement program for the acceleration sensor 210 is incorporated in the application (game program) and the offset error and sensitivity error of the acceleration sensor 210 are measured when the application is activated, the application is stored in the acceleration sensor 210. By correcting the detection information, it is possible to perform a game calculation that more accurately reflects the input operation of the player without being affected by the offset error and the sensitivity error.

なお、本発明は本実施形態に限定されず、本発明の要旨の範囲内で種々の変形実施が可能である。   In addition, this invention is not limited to this embodiment, A various deformation | transformation implementation is possible within the range of the summary of this invention.

本発明は、実施の形態で説明した構成と実質的に同一の構成(例えば、機能、方法及び結果が同一の構成、あるいは目的及び効果が同一の構成)を含む。また、本発明は、実施の形態で説明した構成の本質的でない部分を置き換えた構成を含む。また、本発明は、実施の形態で説明した構成と同一の作用効果を奏する構成又は同一の目的を達成することができる構成を含む。また、本発明は、実施の形態で説明した構成に公知技術を付加した構成を含む。   The present invention includes configurations that are substantially the same as the configurations described in the embodiments (for example, configurations that have the same functions, methods, and results, or configurations that have the same objects and effects). In addition, the invention includes a configuration in which a non-essential part of the configuration described in the embodiment is replaced. In addition, the present invention includes a configuration that exhibits the same operational effects as the configuration described in the embodiment or a configuration that can achieve the same object. Further, the invention includes a configuration in which a known technique is added to the configuration described in the embodiment.

1 加速度誤差測定装置、2 測定対象装置、10 処理部、11 加速度情報生成部、12 連立方程式作成部、13 連立方程式計算部、14 加速度誤差計算部、15 表示制御部、16 音出力制御部、20 加速度センサ、22 マイコン、24 通信部、30 記憶部、32 操作部、34 表示部、36 情報記憶媒体、38 通信部、40 音出力部、100 本体装置、110 処理部、120 加速度誤差測定部、121 加速度情報生成部、122 連立方程式作成部、123 連立方程式計算部、124 加速度誤差計算部、125 加速度誤差設定部、130 ゲーム演算部、140 描画部、150 音制御部、160 振動制御部、170 記憶部、172 主記憶部、174 描画バッファ、176 音データ記憶部、180 情報記憶媒体、190 表示部、192 スピーカ、196 通信部、198 光源、200 入力装置、210 加速度センサ、220 撮像部、222 赤外線フィルタ、224 レンズ、226 撮像素子、228 画像処理回路、230 スピーカ、240 振動部、250 マイコン、260 通信部、270 操作部 DESCRIPTION OF SYMBOLS 1 Acceleration error measuring apparatus, 2 measuring object apparatus, 10 process part, 11 acceleration information generation part, 12 simultaneous equation preparation part, 13 simultaneous equation calculation part, 14 acceleration error calculation part, 15 display control part, 16 sound output control part, 20 acceleration sensor, 22 microcomputer, 24 communication unit, 30 storage unit, 32 operation unit, 34 display unit, 36 information storage medium, 38 communication unit, 40 sound output unit, 100 main unit, 110 processing unit, 120 acceleration error measurement unit 121 acceleration information generation unit, 122 simultaneous equation creation unit, 123 simultaneous equation calculation unit, 124 acceleration error calculation unit, 125 acceleration error setting unit, 130 game calculation unit, 140 drawing unit, 150 sound control unit, 160 vibration control unit, 170 storage unit, 172 main storage unit, 174 drawing buffer, 176 sound data storage unit, 180 information Storage medium, 190 display unit, 192 speaker, 196 communication unit, 198 light source, 200 input device, 210 acceleration sensor, 220 imaging unit, 222 infrared filter, 224 lens, 226 image sensor, 228 image processing circuit, 230 speaker, 240 vibration Part, 250 microcomputer, 260 communication part, 270 operation part

Claims (15)

加速度センサのオフセット誤差情報及び感度誤差情報を計算するプログラムであって、
前記加速度センサの互いに直交する3つの検出軸方向の各感度及び各オフセットに対応した6つのパラメータを含む楕円体の方程式の変数に、前記加速度センサの検出情報に基づく6組の加速度情報を代入し、前記6つのパラメータを未知数とする6つの2次方程式からなる連立2次方程式を作成する連立方程式作成部と、
前記連立2次方程式を、前記6つの未知数の少なくとも1つを含む式でそれぞれ表される5つの新たな未知数を含むとともに前記6つの未知数のいずれも含まない5つの1次方程式からなる連立1次方程式に帰着させて当該連立1次方程式を解く連立方程式計算部と、
前記5つの新たな未知数の値から前記6つの未知数の値を計算し、計算結果に基づいて前記加速度センサの前記3つの検出軸方向のオフセット誤差情報及び感度誤差情報を計算する加速度誤差計算部として、コンピュータを機能させる、プログラム。
A program for calculating offset error information and sensitivity error information of an acceleration sensor,
Six sets of acceleration information based on detection information of the acceleration sensor are substituted into variables of an ellipsoidal equation including six parameters corresponding to each sensitivity and each offset in three detection axis directions orthogonal to each other of the acceleration sensor. A simultaneous equation creating unit that creates simultaneous quadratic equations composed of six quadratic equations with the six parameters as unknowns;
The simultaneous quadratic equation includes five linear equations each including five new unknowns each represented by an expression including at least one of the six unknowns and not including any of the six unknowns. A simultaneous equation calculator that solves the linear equations by reducing them to equations;
As an acceleration error calculator that calculates the six unknown values from the five new unknown values and calculates offset error information and sensitivity error information in the three detection axis directions of the acceleration sensor based on the calculation result , A program that makes a computer work.
請求項1において、
前記連立方程式計算部は、
前記連立1次方程式の係数行列がその対角要素の絶対値が対角要素でない他のすべての要素の絶対値よりも大きくなるように前記連立1次方程式を作成する、プログラム。
In claim 1,
The simultaneous equation calculation unit
A program that creates the simultaneous linear equations so that the coefficient matrix of the simultaneous linear equations has an absolute value of a diagonal element larger than absolute values of all other elements that are not diagonal elements.
請求項1又は2において、
前記連立方程式計算部は、
前記6組の加速度情報の中で第1の検出軸方向の値が最大及び最小の2つの前記加速度情報を前記楕円体の方程式の変数にそれぞれ代入して得られた2つの2次方程式の一方から他方を減算して得られる多項式に基づいて前記1次方程式の1つを作成し、前記6組の加速度情報の中で第2の検出軸方向の値が最大及び最小の2つの前記加速度情報を前記楕円体の方程式の変数にそれぞれ代入して得られた2つの2次方程式の一方から他方を減算して得られる多項式に基づいて前記1次方程式の他の1つを作成し、前記6組の加速度情報の中で第3の検出軸方向の値が最大及び最小の2つの前記加速度情報を前記楕円体の方程式の変数にそれぞれ代入して得られた2つの2次方程式の一方から他方を減算して得られる多項式に基づいて前記1次方程式の他の1つを作成する、プログラム。
In claim 1 or 2,
The simultaneous equation calculation unit
One of two quadratic equations obtained by substituting the two pieces of acceleration information having the maximum and minimum values in the first detection axis direction among the six sets of acceleration information into variables of the ellipsoidal equation, respectively. One of the linear equations is created based on a polynomial obtained by subtracting the other from the two pieces of acceleration information having the maximum and minimum values in the second detection axis direction among the six sets of acceleration information , Another one of the linear equations is created based on a polynomial obtained by subtracting the other from one of the two quadratic equations obtained by substituting for each of the ellipsoidal equation variables, Among the two sets of acceleration information, one of the two quadratic equations obtained by substituting the two pieces of acceleration information having the maximum and minimum values in the third detection axis direction into variables of the ellipsoidal equation, respectively, is obtained. Based on the polynomial obtained by subtracting To create one of the other equations, program.
請求項1乃至3のいずれかにおいて、
前記連立方程式計算部は、
前記連立2次方程式の任意の2つの2次方程式を演算して得られる多項式又は当該多項式を変形した多項式の各項に含まれる、前記6つの未知数から構成される式又は当該式を実数倍した式を前記5つの新たな未知数と対応させて前記連立1次方程式を作成する、プログラム。
In any one of Claims 1 thru | or 3,
The simultaneous equation calculation unit
An equation composed of the six unknowns included in each polynomial term obtained by calculating any two quadratic equations of the simultaneous quadratic equations or a polynomial obtained by transforming the polynomial, or the equation multiplied by a real number A program for creating the simultaneous linear equations by associating an equation with the five new unknowns.
請求項1乃至4のいずれかにおいて、
前記連立方程式計算部は、
前記加速度センサの3つの検出軸で作られる3次元空間において互いに直交する所定の3つの軸がそれぞれ重力方向の逆方向又はその近傍を向く状態で得られる3組の前記検出情報に基づく3組の前記加速度情報と、前記前記所定の3つの軸がそれぞれ重力方向又はその近傍を向く状態で得られる3組の前記検出情報に基づく3組の前記加速度情報と、を用いて前記連立2次方程式を作成する、プログラム。
In any one of Claims 1 thru | or 4,
The simultaneous equation calculation unit
Three sets of detection information based on three sets of detection information obtained in a state in which predetermined three axes orthogonal to each other in the three-dimensional space created by the three detection axes of the acceleration sensor face the reverse direction of the gravity direction or the vicinity thereof. Using the acceleration information and three sets of the acceleration information based on the three sets of the detection information obtained in a state where the predetermined three axes are respectively directed in the gravity direction or the vicinity thereof, the simultaneous quadratic equations are obtained. A program to create.
請求項1乃至5のいずれかにおいて、
前記連立方程式作成部は、
前記加速度センサの3つの検出軸をx軸、y軸、z軸とし、前記6つのパラメータのうち、前記加速度センサのx軸方向、y軸方向、z軸方向の感度のパラメータをそれぞれa,b,c、前記加速度センサのx軸方向、y軸方向、z軸方向のオフセットのパラメータをぞれぞれp,q,rとした時、前記楕円体の方程式として方程式{(x−p)/a}+{(y−q)/b}+{(z−r)/c}=1を用いる、プログラム。
In any one of Claims 1 thru | or 5,
The simultaneous equation creating unit
The three detection axes of the acceleration sensor are x-axis, y-axis, and z-axis, and among the six parameters, the sensitivity parameters of the acceleration sensor in the x-axis direction, y-axis direction, and z-axis direction are a and b, respectively. , C, where the offset parameters of the acceleration sensor in the x-axis direction, y-axis direction, and z-axis direction are p, q, and r, respectively, the equation {(x−p) / A program using a} 2 + {(y−q) / b} 2 + {(z−r) / c} 2 = 1.
請求項1乃至6のいずれかにおいて、
前記加速度センサの前記検出情報を取得し、取得した前記検出情報に基づいて前記加速度情報を生成する加速度情報生成部を含む、プログラム。
In any one of Claims 1 thru | or 6.
A program including an acceleration information generation unit that acquires the detection information of the acceleration sensor and generates the acceleration information based on the acquired detection information.
請求項7において、
前記加速度情報生成部は、
前記検出情報に基づいて、前記加速度センサの運動による加速度が無視できる状態であるか否かを判定し、前記加速度センサの運動による加速度が無視できる状態での前記検出情報に基づいて、前記加速度情報を生成する、プログラム。
In claim 7,
The acceleration information generation unit
Based on the detection information, it is determined whether or not the acceleration due to the motion of the acceleration sensor can be ignored, and the acceleration information based on the detection information in a state where the acceleration due to the motion of the acceleration sensor can be ignored. Generate a program.
請求項8において、
前記加速度情報生成部は、
前記検出情報の変動幅が所定の条件を満たす状態が所定時間持続すれば前記加速度センサの運動による加速度が無視できる状態であると判定する、プログラム。
In claim 8,
The acceleration information generation unit
The program which determines that the acceleration by the motion of the said acceleration sensor is a state which can be disregarded if the state where the fluctuation range of the said detection information satisfy | fills predetermined conditions continues for a predetermined time.
請求項9において、
前記加速度情報生成部は、
前記所定時間に取得した複数の前記検出情報に基づいて前記加速度情報を生成する、プログラム。
In claim 9,
The acceleration information generation unit
A program for generating the acceleration information based on a plurality of the detection information acquired at the predetermined time.
コンピュータに読み取り可能な情報記憶媒体であって、請求項1乃至9のいずれかに記載のプログラムを記憶している、情報記憶媒体。   An information storage medium readable by a computer, wherein the program according to any one of claims 1 to 9 is stored. 加速度センサのオフセット誤差情報及び感度誤差情報を計算する加速度センサの誤差測定方法であって、
前記加速度センサの互いに直交する3つの検出軸で作られる3次元空間において互いに直交する所定の3つの軸のうちの第1の軸が重力方向の逆方向又はその近傍を向く状態で前記加速度センサの検出情報を取得し、当該検出情報に基づいて第1の加速度情報を生成する第1の加速度情報生成ステップと、
前記第1の軸が重力方向又はその近傍を向く状態で前記加速度センサの検出情報を取得し、当該検出情報に基づいて第2の加速度情報を生成する第2の加速度情報生成ステップと、
前記所定の3つの軸のうちの第2の軸が重力方向の逆方向又はその近傍を向く状態で前記加速度センサの検出情報を取得し、当該検出情報に基づいて第3の加速度情報を生成する第3の加速度情報生成ステップと、
前記第2の軸が重力方向又はその近傍を向く状態で前記加速度センサの検出情報を取得し、当該検出情報に基づいて第4の加速度情報を生成する第4の加速度情報生成ステップと、
前記所定の3つの軸のうちの第3の軸が重力方向の逆方向又はその近傍を向く状態で前記加速度センサの検出情報を取得し、当該検出情報に基づいて第5の加速度情報を生成する第5の加速度情報生成ステップと、
前記第3の軸が重力方向又はその近傍を向く状態で前記加速度センサの検出情報を取得し、当該検出情報に基づいて第6の加速度情報を生成する第6の加速度情報生成ステップと、
前記加速度センサの3つの検出軸方向の各感度及び各オフセットに対応した6つのパラメータを含む楕円体の方程式の変数に、前記第1の加速度情報、前記第2の加速度情報、前記第3の加速度情報、前記第4の加速度情報、前記第5の加速度情報及び前記第6の加速度情報をそれぞれ代入し、前記6つのパラメータを未知数とする6つの2次方程式からなる連立2次方程式を作成する連立方程式作成ステップと、
前記連立2次方程式を、前記6つの未知数の少なくとも1つを含む式でそれぞれ表される5つの新たな未知数を含むとともに前記6つの未知数のいずれも含まない5つの1次方程式からなる連立1次方程式に帰着させて当該連立1次方程式を解く連立方程式計算ステップと、
前記5つの新たな未知数の値から前記6つの未知数の値を計算し、計算結果に基づいて前記加速度センサの前記3つの検出軸方向のオフセット誤差情報及び感度誤差情報を計算する誤差計算ステップと、を含む、加速度センサの誤差測定方法。
An acceleration sensor error measurement method for calculating acceleration sensor offset error information and sensitivity error information,
In the three-dimensional space formed by three detection axes orthogonal to each other of the acceleration sensor, the first axis of the predetermined three axes orthogonal to each other faces in the direction opposite to or near the gravity direction. A first acceleration information generation step of acquiring detection information and generating first acceleration information based on the detection information;
A second acceleration information generation step of acquiring detection information of the acceleration sensor in a state in which the first axis faces the gravity direction or the vicinity thereof, and generating second acceleration information based on the detection information;
The detection information of the acceleration sensor is acquired in a state where the second axis of the predetermined three axes is directed in the direction opposite to or near the gravity direction, and third acceleration information is generated based on the detection information. A third acceleration information generation step;
A fourth acceleration information generation step of acquiring detection information of the acceleration sensor in a state where the second axis faces the gravity direction or the vicinity thereof, and generating fourth acceleration information based on the detection information;
The detection information of the acceleration sensor is acquired in a state in which the third of the predetermined three axes is in the direction opposite to or near the gravity direction, and fifth acceleration information is generated based on the detection information. A fifth acceleration information generation step;
A sixth acceleration information generation step of acquiring detection information of the acceleration sensor in a state in which the third axis faces the gravity direction or the vicinity thereof, and generating sixth acceleration information based on the detection information;
The first acceleration information, the second acceleration information, and the third acceleration are included in variables of an ellipsoidal equation including six parameters corresponding to the sensitivity and offset in the three detection axis directions of the acceleration sensor. Information, the fourth acceleration information, the fifth acceleration information, and the sixth acceleration information are substituted, and a simultaneous quadratic equation including six quadratic equations having the six parameters as unknowns is created. Equation creation step;
The simultaneous quadratic equation includes five linear equations each including five new unknowns each represented by an expression including at least one of the six unknowns and not including any of the six unknowns. A simultaneous equation calculation step for solving the linear equations by reducing the equations,
An error calculation step of calculating the six unknown values from the five new unknown values and calculating offset error information and sensitivity error information in the three detection axis directions of the acceleration sensor based on the calculation results; A method for measuring an error of an acceleration sensor, including:
加速度センサのオフセット誤差情報及び感度誤差情報を測定する加速度センサの誤差測定装置であって、
前記加速度センサの検出情報を取得し、取得した前記検出情報に基づいて6組の加速度情報を生成する加速度情報生成部と、
前記加速度センサの互いに直交する3つの検出軸方向の各感度及び各オフセットに対応した6つのパラメータを含む楕円体の方程式の変数に、前記6組の加速度情報を代入し、前記6つのパラメータを未知数とする6つの2次方程式からなる連立2次方程式を作成する連立方程式作成部と、
前記連立2次方程式を、前記6つの未知数の少なくとも1つを含む式でそれぞれ表される5つの新たな未知数を含むとともに前記6つの未知数のいずれも含まない5つの1次方程式からなる連立1次方程式に帰着させて当該連立1次方程式を解く連立方程式計算部と、
前記5つの新たな未知数の値から前記6つの未知数の値を計算し、計算結果に基づいて前記加速度センサの前記3つの検出軸方向のオフセット誤差情報及び感度誤差情報を計算する加速度誤差計算部と、を含む加速度センサの誤差測定装置。
An acceleration sensor error measuring device that measures offset error information and sensitivity error information of an acceleration sensor,
An acceleration information generation unit that acquires detection information of the acceleration sensor and generates six sets of acceleration information based on the acquired detection information;
The six sets of acceleration information are substituted into variables of an ellipsoidal equation including six parameters corresponding to the sensitivity and offset in the three detection axis directions orthogonal to each other of the acceleration sensor, and the six parameters are unknown. A simultaneous equation creating unit for creating simultaneous quadratic equations consisting of six quadratic equations,
The simultaneous quadratic equation includes five linear equations each including five new unknowns each represented by an expression including at least one of the six unknowns and not including any of the six unknowns. A simultaneous equation calculator that solves the linear equations by reducing them to equations;
An acceleration error calculator that calculates the six unknown values from the five new unknown values and calculates offset error information and sensitivity error information in the three detection axis directions of the acceleration sensor based on the calculation results; , An error measuring device for an acceleration sensor.
プレイヤの入力動作に応じて変化する加速度を検出する加速度センサを備えた入力装置から前記加速度センサの検出情報を取得してゲーム演算を行うゲームシステムであって、
前記加速度センサの前記検出情報に基づいて、前記加速度センサのオフセット誤差情報及び感度誤差情報を計算して記憶部に記憶させる加速度誤差測定部と、
前記記憶部に記憶された前記オフセット誤差情報及び前記感度誤差情報に基づいて、前記加速度センサの検出情報を補正してゲーム演算を行うゲーム演算部と、を含み、
前記加速度誤差測定部は、
前記入力装置から前記加速度センサの前記検出情報を取得し、取得した前記検出情報に基づいて6組の加速度情報を生成する加速度情報生成部と、
前記加速度センサの互いに直交する3つの検出軸方向の各感度及び各オフセットに対応した6つのパラメータを含む楕円体の方程式の変数に、前記6組の加速度情報を代入し、前記6つのパラメータを未知数とする6つの2次方程式からなる連立2次方程式を作成する連立方程式作成部と、
前記連立2次方程式を、前記6つの未知数の少なくとも1つを含む式でそれぞれ表される5つの新たな未知数を含むとともに前記6つの未知数のいずれも含まない5つの1次方程式からなる連立1次方程式に帰着させて当該連立1次方程式を解く連立方程式計算部と、
前記5つの新たな未知数の値から前記6つの未知数の値を計算し、計算結果に基づいて前記加速度センサの前記3つの検出軸方向のオフセット誤差情報及び感度誤差情報を計算する加速度誤差計算部と、
前記オフセット誤差情報及び前記感度誤差情報を前記記憶部に記憶させる加速度誤差設定部と、を含む、ゲームシステム。
A game system that obtains detection information of the acceleration sensor from an input device including an acceleration sensor that detects an acceleration that changes according to an input operation of the player, and performs a game calculation.
An acceleration error measurement unit that calculates offset error information and sensitivity error information of the acceleration sensor based on the detection information of the acceleration sensor and stores the information in a storage unit;
A game calculation unit that corrects detection information of the acceleration sensor based on the offset error information and the sensitivity error information stored in the storage unit and performs a game calculation;
The acceleration error measurement unit includes:
An acceleration information generation unit that acquires the detection information of the acceleration sensor from the input device, and generates six sets of acceleration information based on the acquired detection information;
The six sets of acceleration information are substituted into variables of an ellipsoidal equation including six parameters corresponding to the sensitivity and offset in the three detection axis directions orthogonal to each other of the acceleration sensor, and the six parameters are unknown. A simultaneous equation creating unit for creating simultaneous quadratic equations consisting of six quadratic equations,
The simultaneous quadratic equation includes five linear equations each including five new unknowns each represented by an expression including at least one of the six unknowns and not including any of the six unknowns. A simultaneous equation calculator that solves the linear equations by reducing them to equations;
An acceleration error calculator that calculates the six unknown values from the five new unknown values and calculates offset error information and sensitivity error information in the three detection axis directions of the acceleration sensor based on the calculation results; ,
An acceleration error setting unit that stores the offset error information and the sensitivity error information in the storage unit.
請求項14において、
前記加速度誤差測定部は、
ゲームプログラムの起動時又は加速度誤差測定イベントが発生した場合に、前記検出情報を取得して前記オフセット誤差情報及び前記感度誤差情報の計算を行い、計算した前記オフセット誤差情報及び前記感度誤差情報を前記記憶部に記憶させる、ゲームシステム。
In claim 14,
The acceleration error measurement unit includes:
When the game program is started or when an acceleration error measurement event occurs, the detection information is acquired, the offset error information and the sensitivity error information are calculated, and the calculated offset error information and the sensitivity error information are A game system stored in a storage unit.
JP2009201686A 2009-09-01 2009-09-01 Program, information storage medium, error measurement method for acceleration sensor, error-measuring device for acceleration sensor and game system Withdrawn JP2011053060A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009201686A JP2011053060A (en) 2009-09-01 2009-09-01 Program, information storage medium, error measurement method for acceleration sensor, error-measuring device for acceleration sensor and game system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009201686A JP2011053060A (en) 2009-09-01 2009-09-01 Program, information storage medium, error measurement method for acceleration sensor, error-measuring device for acceleration sensor and game system

Publications (1)

Publication Number Publication Date
JP2011053060A true JP2011053060A (en) 2011-03-17

Family

ID=43942224

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009201686A Withdrawn JP2011053060A (en) 2009-09-01 2009-09-01 Program, information storage medium, error measurement method for acceleration sensor, error-measuring device for acceleration sensor and game system

Country Status (1)

Country Link
JP (1) JP2011053060A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5122036B1 (en) * 2012-05-25 2013-01-16 任天堂株式会社 Operating device, information processing system, and communication method
JP2013053852A (en) * 2011-08-31 2013-03-21 Jvc Kenwood Corp Zero point detector of acceleration sensor, zero point detecting method, and program
JP2014025791A (en) * 2012-07-26 2014-02-06 Olympus Corp Calibration device and program
US8749489B2 (en) 2012-05-25 2014-06-10 Nintendo Co., Ltd. Controller device, information processing system, and communication method
US9030410B2 (en) 2012-05-25 2015-05-12 Nintendo Co., Ltd. Controller device, information processing system, and information processing method
US9126114B2 (en) 2011-11-09 2015-09-08 Nintendo Co., Ltd. Storage medium, input terminal device, control system, and control method

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013053852A (en) * 2011-08-31 2013-03-21 Jvc Kenwood Corp Zero point detector of acceleration sensor, zero point detecting method, and program
US9126114B2 (en) 2011-11-09 2015-09-08 Nintendo Co., Ltd. Storage medium, input terminal device, control system, and control method
JP5122036B1 (en) * 2012-05-25 2013-01-16 任天堂株式会社 Operating device, information processing system, and communication method
WO2013175630A1 (en) * 2012-05-25 2013-11-28 任天堂株式会社 Operation device, information processing system, and communication method
US8599135B1 (en) 2012-05-25 2013-12-03 Nintendo Co., Ltd. Controller device, information processing system, and communication method
US8749489B2 (en) 2012-05-25 2014-06-10 Nintendo Co., Ltd. Controller device, information processing system, and communication method
US9030410B2 (en) 2012-05-25 2015-05-12 Nintendo Co., Ltd. Controller device, information processing system, and information processing method
US9615048B2 (en) 2012-05-25 2017-04-04 Nintendo Co., Ltd. Controller device, information processing system, and communication method
US10429961B2 (en) 2012-05-25 2019-10-01 Nintendo Co., Ltd. Controller device, information processing system, and information processing method
JP2014025791A (en) * 2012-07-26 2014-02-06 Olympus Corp Calibration device and program

Similar Documents

Publication Publication Date Title
JP7096450B2 (en) Mixed reality system with color virtual content warping and how to use it to generate virtual content
JP7443602B2 (en) Mixed reality system with virtual content warping and how to use it to generate virtual content
JP7095189B2 (en) Mixed reality system with multi-source virtual content synthesis and how to use it to generate virtual content
JP7055815B2 (en) A mixed reality system that involves warping virtual content and how to use it to generate virtual content
JP5745204B2 (en) Program, information storage medium and game machine
CN103635891B (en) The world is presented in a large amount of digital remotes simultaneously
US20160292924A1 (en) System and method for augmented reality and virtual reality applications
JP2017090979A (en) Information processing unit, information process system, and information processing method
US8994729B2 (en) Method for simulating operation of object and apparatus for the same
US10755486B2 (en) Occlusion using pre-generated 3D models for augmented reality
JP2006302034A (en) Image processing method and image processor
JP2011053060A (en) Program, information storage medium, error measurement method for acceleration sensor, error-measuring device for acceleration sensor and game system
JP5469516B2 (en) Image display program, image display system, image display method, and image display apparatus
JP2007300974A (en) Program, information storage medium and image generation system
US11100713B2 (en) System and method for aligning virtual objects on peripheral devices in low-cost augmented reality/virtual reality slip-in systems
US20190340807A1 (en) Image generating device and method of generating image
JP2009061161A (en) Program, information storage medium and game system
JP5274298B2 (en) Drawing processing apparatus and drawing processing program
JP4878240B2 (en) Image display control device, image display method, and program
JP2006215750A (en) Image processing method, image processor
US10653948B2 (en) Calibration of a magnetometer for augmented reality experience
JP2008264276A (en) Game program, game apparatus and storage medium
JP2019133207A (en) Video generation apparatus, video generation method, and video generation program
US20200098178A1 (en) Reconstructing three-dimensional (3d) human body model based on depth points-to-3d human body model surface distance
JP2009061159A (en) Program, information storage medium and game system

Legal Events

Date Code Title Description
A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20121106