JP2014021620A - Coordinate output device - Google Patents
Coordinate output device Download PDFInfo
- Publication number
- JP2014021620A JP2014021620A JP2012157952A JP2012157952A JP2014021620A JP 2014021620 A JP2014021620 A JP 2014021620A JP 2012157952 A JP2012157952 A JP 2012157952A JP 2012157952 A JP2012157952 A JP 2012157952A JP 2014021620 A JP2014021620 A JP 2014021620A
- Authority
- JP
- Japan
- Prior art keywords
- coordinate
- detected
- point
- latest
- coordinate value
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Landscapes
- Position Input By Displaying (AREA)
Abstract
【課題】 操作者に意識させることなく、座標の出力方式を適宜切換える。
【解決手段】 座標出力装置1において、座標検出部11が、操作面10内に指示される1以上の点の座標を検出する。単一の点の座標が単独で検出された場合、制御部12は、単一の点の座標を個別に出力するマウス形式を用いて、検出された単独点の座標を個別に出力する。複数の点の座標が同時に検出された場合、制御部12は、複数の点の座標を一度にまとめて出力するデジタイザ形式を用いて、検出された複数点の座標を同時に出力する。この結果、操作面10に一度に指示された点の数に応じて、座標の出力形式が適宜切換えられるので、座標出力装置1の使い勝手が向上する。
【選択図】 図1PROBLEM TO BE SOLVED: To appropriately switch a coordinate output method without making an operator aware of it.
In a coordinate output device 1, a coordinate detection unit 11 detects the coordinates of one or more points indicated on an operation surface 10. When the coordinates of a single point are detected independently, the control unit 12 individually outputs the coordinates of the detected single point using a mouse format that individually outputs the coordinates of the single point. When the coordinates of a plurality of points are detected at the same time, the control unit 12 outputs the detected coordinates of the plurality of points simultaneously using a digitizer format that outputs the coordinates of the plurality of points at once. As a result, the coordinate output format is appropriately switched according to the number of points designated on the operation surface 10 at a time, so that the usability of the coordinate output device 1 is improved.
[Selection] Figure 1
Description
本発明は、操作面内で指示された点の座標を出力するための座標出力装置に関する。 The present invention relates to a coordinate output device for outputting coordinates of a point designated on an operation surface.
従来技術の座標出力装置は、マウスおよびタッチパネルに代表される所謂ポインティングデバイスで実現される。従来技術の座標出力装置は、予め定める操作面内の任意の点を操作者が指示すると、指示された点の座標を検出して、検出された座標を出力する。このような座標出力装置は、たとえば、パーソナルコンピュータおよび携帯電話端末などの情報機器に対して、指示された点の座標を出力することで、ユーザの指示を情報機器に入力する入力装置として用いられる。 A conventional coordinate output apparatus is realized by a so-called pointing device represented by a mouse and a touch panel. In the conventional coordinate output device, when an operator designates an arbitrary point in a predetermined operation surface, the coordinate of the designated point is detected and the detected coordinate is output. Such a coordinate output device is used, for example, as an input device for inputting the user's instruction to the information device by outputting the coordinates of the specified point to the information device such as a personal computer and a mobile phone terminal. .
座標出力装置の操作手法として、マルチタッチ操作およびシングルタッチ操作が挙げられる。シングルタッチ操作は、旧来から用いられる操作手法であり、操作面内の単一の点を操作者が指示する操作手法である。操作面を備える従来技術の座標出力装置を入力装置として用いる情報機器において、シングルタッチ操作は、線の描画動作やタッチパネルを用いてマウスカーソルを動かす動作などで用いられる。マルチタッチ操作は、近年新たに用いられる操作手法であり、操作面内の複数の点を同時に操作者が指示する操作手法である。マルチタッチ操作は、前述の情報機器において、所謂ジェスチャ動作などで用いられる。 As an operation method of the coordinate output device, there are a multi-touch operation and a single touch operation. Single touch operation is an operation method that has been used in the past, and is an operation method in which an operator designates a single point in the operation surface. In an information device using a conventional coordinate output device having an operation surface as an input device, a single touch operation is used for a line drawing operation, an operation for moving a mouse cursor using a touch panel, or the like. Multi-touch operation is an operation method that is newly used in recent years, and is an operation method in which an operator instructs a plurality of points on the operation surface at the same time. The multi-touch operation is used in a so-called gesture operation or the like in the above-described information device.
従来技術の座標出力装置を用いる情報機器は、マウスなどを用いたシングルタッチ操作を受付けるために、シングルタッチ操作用のドライバを標準装備している。シングルタッチ操作用のドライバは、単一点の座標を出力するためのマウス形式を用いて座標入力装置から1点分ずつ与えられた座標のデータを、受付けて処理する。上記情報機器がマルチタッチ操作による操作を受付けるには、情報機器がマルチタッチ操作用のドライバを搭載している必要がある。マルチタッチ操作用のドライバは、複数点の座標を一括して出力するためのデジタイザ形式を用いて座標出力装置から複数点分ずつ纏めて与えられた座標のデータを、受付けて処理する。 In order to accept a single touch operation using a mouse or the like, an information device using a conventional coordinate output device is equipped with a single touch operation driver as standard equipment. The driver for single touch operation accepts and processes the coordinate data given one point at a time from the coordinate input device using a mouse format for outputting the coordinates of a single point. In order for the information device to accept an operation by multi-touch operation, the information device needs to be equipped with a driver for multi-touch operation. The driver for multi-touch operation accepts and processes coordinate data collectively given for each of a plurality of points from a coordinate output device using a digitizer format for outputting the coordinates of a plurality of points at once.
従来技術の座標出力装置において、操作者から一度に指示される点の数に応答して挙動を変更する技術は、特許文献1に開示される。
In a conventional coordinate output device, a technique for changing the behavior in response to the number of points designated at a time by an operator is disclosed in
特許文献1のポインティング装置は、第1入力点および第2入力点のオンオフを個々に独立して検知可能なマルチタッチ操作対応のポインティング装置である。すなわち特許文献1のポインティング装置は、第1入力点および第2入力点の指示・非指示を個々に独立して検知可能である。特許文献1のポインティング装置において、初期状態では、1点入力モードが選ばれる。第1入力点および第2入力点の両方がほぼ同時にオンになったとき、1点入力モードから2点入力モードに切換えられる。第1入力点および第2入力点の両方がオフになったとき、2点入力モードから1点入力モードに切換えられる。1点入力モードは、第1入力点の絶対位置に基づいて以後に指示される点の座標を決定する。2点入力モードは、第1入力点と第2入力点との相対位置関係に基づいて以後に指示される点の座標を決定する。この結果、特許文献1のポインティング装置は、点の座標の決定手法が、最初に指示された第1入力点および第2入力点のオンオフに応じて切換えられる。
The pointing device of
上述したような、従来技術の座標出力装置を用いる情報機器がシングルタッチ操作用のドライバだけを搭載してマルチタッチ操作用のドライバを搭載していない場合、従来技術の座標出力装置は、操作面において同時に指示された点の数に拘らず、指示された点の座標を、マウス形式で1点分だけを出力する。すなわち、操作者が操作面内の複数の点を同時に指示したとしても、従来技術の座標出力装置は、これらの複数の点いずれか1点の座標を出力する。ゆえに、前述の場合、前述の情報機器において、複数の点を同時に指示するマルチタッチ操作の使用が困難である。 When the information device using the conventional coordinate output device as described above is equipped with only the driver for single touch operation and not the driver for multi-touch operation, the coordinate output device of the conventional technology Regardless of the number of points designated at the same time, the coordinates of the designated point are output only for one point in the mouse format. That is, even if the operator designates a plurality of points in the operation surface at the same time, the coordinate output device of the prior art outputs the coordinates of any one of the plurality of points. Therefore, in the above-described case, it is difficult to use a multi-touch operation that simultaneously indicates a plurality of points in the above-described information device.
また、従来技術の座標出力装置を用いる情報機器がマルチタッチ操作用のドライバを搭載している場合、従来技術の座標出力装置は、前記デジタイザ形式を用いて、操作面において指示された点の座標を複数点分ずつ出力する。この場合、操作者がマルチタッチ操作ではなくシングルタッチ操作のつもりで時間経過に伴って複数の点を連続的に指示したとしても、最初の点の指示から点の移動距離が所定距離を超えるまでの間は、情報機器がマルチタッチ操作を想定して座標を処理するため、操作の遅延が生じる。 In addition, when an information device using a conventional coordinate output device is equipped with a driver for multi-touch operation, the conventional coordinate output device uses the digitizer format to coordinate the point indicated on the operation surface. Are output for multiple points. In this case, even if the operator intends to perform a single touch operation instead of a multi-touch operation and sequentially designates a plurality of points as time elapses, the point moving distance exceeds a predetermined distance from the first point indication. During this period, the information device processes the coordinates assuming a multi-touch operation, so that an operation delay occurs.
たとえば、前述の情報機器において、操作者が線の描画動作のために操作面内の1点を治具でタッチした後に指示状態を保ったままタッチした点を移動させた場合、情報機器は、点の移動距離がジェスチャ動作のための所定距離を超えるまではジェスチャ動作のための処理を行い、点の移動距離が前記所定距離を超えた後に線の描画動作のための処理を行う。この結果、操作者が線描画動作をしているつもりにも拘らず、操作面へのタッチ時点から所定距離移動するまでの間、線の描画のための表示処理が停止してしまうため、線の描画処理に遅延が発生してしまう。 For example, in the above-described information device, when the operator touches one point in the operation surface with a jig for a line drawing operation and moves the touched point while maintaining the instruction state, the information device Processing for the gesture operation is performed until the moving distance of the point exceeds the predetermined distance for the gesture operation, and processing for the line drawing operation is performed after the moving distance of the point exceeds the predetermined distance. As a result, although the operator intends to perform a line drawing operation, the display process for drawing the line is stopped until the predetermined distance is moved from the time when the operation surface is touched. Will cause a delay in the drawing process.
また前述した特許文献1のポインティング装置は、最初に指示される第1入力点および第2入力点とのオンオフに応じて以後に指示される点の座標の決定手法が切換えられる。しかしながら、特許文献1のポインティング装置では、点の座標決定手法が絶対位置座標か相対位置座標かに切換えられるだけであり、検出された座標が1点ずつ個別に出力されるか複数点ずつ纏めて出力されるかが切換えられているわけではない。ゆえに、所望とする操作と座標の出力方式との不整合に起因する操作遅延や操作利用不可の回避を解消することは困難である。
Further, in the above-described pointing device of
本発明の目的は、シングルタッチ操作に適した出力形式とマルチタッチ操作に適した出力形式とを操作者に意識させることなく適宜切換えることが可能な座標出力装置を提供することである。 An object of the present invention is to provide a coordinate output device capable of appropriately switching between an output format suitable for a single touch operation and an output format suitable for a multi-touch operation without making the operator aware of it.
本発明は、操作面を有するタッチパネルと、
操作面内に指示される1以上の点の座標を検出する座標検出部と、
前記座標検出部によって単一の点の座標のみが検出されたときは、検出された単一の点の座標を予め定める第1出力形式で出力し、前記座標検出部によって同時に複数の点の座標が検出されたときは、検出された複数の点の座標を前記第1出力形式とは異なる予め定める第2出力形式で出力する制御部とを含むことを特徴とする座標出力装置である。
The present invention includes a touch panel having an operation surface;
A coordinate detection unit that detects the coordinates of one or more points indicated in the operation surface;
When only the coordinates of a single point are detected by the coordinate detection unit, the coordinates of the detected single point are output in a predetermined first output format, and the coordinates of a plurality of points are simultaneously output by the coordinate detection unit. And a control unit that outputs the coordinates of the detected points in a predetermined second output format different from the first output format.
また本発明は、前記座標検出部は、前記操作面内に指示される点の座標検出を、時間経過に伴って繰返し実行し、
前記制御部は、座標検出時に点の座標が検出された場合、当該検出された座標を含む予め定める範囲内を対象として、前記座標検出部に次の座標検出を実行させ、座標検出時に点の座標が検出されていない場合、操作面全体を対象として、前記座標検出部に次の座標検出を実行させることを特徴とする。
Further, according to the present invention, the coordinate detection unit repeatedly performs coordinate detection of a point indicated in the operation surface as time passes,
When the coordinates of a point are detected at the time of coordinate detection, the control unit causes the coordinate detection unit to execute the next coordinate detection within a predetermined range including the detected coordinates, and at the time of coordinate detection, When no coordinate is detected, the coordinate detection unit is caused to execute the next coordinate detection for the entire operation surface.
また本発明は、前記第1出力形式は、マウス形式であり、前記第2出力形式は、デジタイザ形式であることを特徴とする。 According to the present invention, the first output format is a mouse format, and the second output format is a digitizer format.
本発明によれば、座標出力装置は、タッチパネルと座標検出部と制御部とを含む。タッチパネルは、操作面を有しており、座標検出部は、操作面内に指示される1以上の点の座標を検出する。制御部は、単一の点の座標のみが検出された場合、検出された単一の点の座標を予め定める第1出力形式で出力し、同時に複数の点の座標が検出された場合、検出された複数の点の座標を第1出力形式とは異なる予め定める第2出力形式で出力する。 According to the present invention, the coordinate output device includes a touch panel, a coordinate detection unit, and a control unit. The touch panel has an operation surface, and the coordinate detection unit detects the coordinates of one or more points indicated on the operation surface. When only the coordinates of a single point are detected, the control unit outputs the coordinates of the detected single point in a predetermined first output format. When the coordinates of a plurality of points are detected at the same time, the control unit detects The coordinates of the plurality of points are output in a predetermined second output format different from the first output format.
これによって、本発明の座標出力装置は、座標検出部が同時に座標を検出した点の数に応じて、点の座標の出力形式を切換えることができる。この結果、本発明の座標出力装置は、同時に指示された点の数に応じた出力形式の切換えを操作者が意識して行う必要がないため、使い勝手が向上する。すなわち、本発明の座標出力装置は、シングルタッチ操作とマルチタッチ操作のような、適した出力形式が異なるような操作を操作者が必要に応じて適宜変更して実行しても、同時に入力される点の数に適した出力形式が制御部によって選ばれるので、使い勝手がさらに向上する。 Thereby, the coordinate output device of the present invention can switch the output format of the coordinate of the point according to the number of points at which the coordinate detection unit simultaneously detects the coordinate. As a result, the coordinate output device of the present invention does not require the operator to switch the output format in accordance with the number of points designated at the same time, thereby improving usability. In other words, the coordinate output device of the present invention can be input simultaneously even if the operator appropriately performs an operation with different suitable output formats, such as a single touch operation and a multi-touch operation, as necessary. Since the output format suitable for the number of points to be selected is selected by the control unit, the usability is further improved.
また本発明によれば、本発明の座標出力装置の座標検出部は、前記操作面内に指示される点の座標検出を、時間経過に伴って繰返し実行する。制御部は、座標検出時に点の座標が検出された場合、当該検出された座標を含む予め定める範囲内を対象として、前記座標検出部に次の座標検出を実行させ、座標検出時に点の座標が検出されていない場合、操作面全体を対象として、前記座標検出部に次の座標検出を実行させる。 Further, according to the present invention, the coordinate detection unit of the coordinate output device of the present invention repeatedly performs coordinate detection of the point indicated in the operation surface as time elapses. When the coordinates of a point are detected at the time of coordinate detection, the control unit causes the coordinate detection unit to execute the next coordinate detection within a predetermined range including the detected coordinates, and the coordinates of the point at the time of coordinate detection are detected. Is not detected, the coordinate detection unit is caused to execute the next coordinate detection for the entire operation surface.
これによって、本発明の座標出力装置は、操作面内の指示点の座標検出を時間経過に伴って繰返し実行するため、操作面内の指示された点が時間経過に伴って移動する動作に対応可能である。かつ、本発明の座標出力装置は、座標検出時に指示された点が検出された場合、検出された座標を含む所定範囲内を対象として次の座標検出を行い、座標検出時に指示された点が検出されない場合、操作面全体を対象として座標検出を行う。この結果、指示された点が連続指示される場合は、座標検出の対象範囲が操作面全体よりも狭い範囲に限定されるので、最新の点の座標検出に要する時間が短縮される。この結果、本発明の座標出力装置の使い勝手がさらに向上する。 As a result, the coordinate output device of the present invention repeatedly performs coordinate detection of the indicated point in the operation surface as time elapses, and therefore corresponds to an operation in which the indicated point in the operation surface moves as time elapses. Is possible. The coordinate output device according to the present invention, when a point designated at the time of coordinate detection is detected, performs next coordinate detection within a predetermined range including the detected coordinate, and the point designated at the time of coordinate detection If not detected, coordinate detection is performed on the entire operation surface. As a result, when the designated points are continuously designated, the coordinate detection target range is limited to a range narrower than the entire operation surface, so that the time required for coordinate detection of the latest point is shortened. As a result, the usability of the coordinate output device of the present invention is further improved.
また本発明によれば、本発明の座標出力装置において、前記第1出力形式は、マウス形式であり、前記第2出力形式は、デジタイザ形式である。 According to the invention, in the coordinate output device of the invention, the first output format is a mouse format, and the second output format is a digitizer format.
これによって、本発明の座標出力装置は、線の描画動作などの所謂シングルタッチ操作に適した出力形式であるマウス形式と、ジェスチャ動作などの所謂マルチタッチ操作に適した出力形式であるデジタイザ形式とを、同時に指示された点の数に応じて切換える。これによって、本発明の座標出力装置を備えた情報機器がシングルタッチ操作とマルチタッチ操作とを過不足無く併用することができるため、本発明の座標出力装置の使い勝手がさらに向上する。 Accordingly, the coordinate output device of the present invention includes a mouse format that is an output format suitable for a so-called single touch operation such as a line drawing operation, and a digitizer format that is an output format suitable for a so-called multi-touch operation such as a gesture motion. Are switched according to the number of points designated at the same time. As a result, an information device equipped with the coordinate output device of the present invention can use a single touch operation and a multi-touch operation together without excess or deficiency, so that the usability of the coordinate output device of the present invention is further improved.
図1は、本発明の実施形態である座標出力装置1を備えた情報機器2の構成を示すブロック図である。座標出力装置1は、予め設定される操作面10内において、操作者から指示される点の座標を検出して、検出された点の座標を出力する。座標出力装置1は、情報機器本体3および表示装置4と組合せられて、情報機器2を構成する。情報機器2において、座標出力装置1は、操作面10内の指示される点の座標を情報機器本体3に入力するための入力装置として用いられる。
FIG. 1 is a block diagram illustrating a configuration of an
本実施形態の座標出力装置1は、座標検出部11と制御部12とを含む。座標検出部11は、予め定める操作面10内に操作者によって指示される1以上の点の座標を検出する。制御部12は、座標出力装置1内の構成要素を制御する。すなわち、制御部12は、操作面10内の指示された点の座標を座標検出部11に検出させる。さらに、制御部12は、座標検出部11の検出結果に基づき、単一の点の座標が検出された場合、予め定める第1出力形式を用いて、検出された単一の点の座標を個別に出力する。また制御部12は、複数の点の座標が同時に検出された場合、第1出力形式とは異なる予め定める第2出力形式を用いて、検出された複数の点の座標を纏めて出力する。
The coordinate
これによって、本実施形態の座標出力装置1は、座標検出部11が一度に座標を検出した点の数に応じて、点の座標の出力形式を切換えることができる。この結果、本実施形態の座標出力装置1は、一度に指示された点の数に応じた出力形式の切換えを操作者が意識して行う必要がないため、装置の使い勝手が向上する。
Thereby, the coordinate
すなわち、本実施形態の座標出力装置1において、所謂シングルタッチ操作のような単一の点を指示する場合と、所謂マルチタッチ操作のような複数の点を同時に指示する場合とで、点の座標の出力形式が切換えられる。この結果、本実施形態の座標出力装置1は、シングルタッチ操作とマルチタッチ操作とのような、適した出力形式が異なる操作を操作者が必要に応じて適宜変更して実行しても、同時に入力される点の数に適した出力形式が選ばれるので、シングルタッチ操作に適した出力形式とマルチタッチ操作に適した出力形式とを操作者に意識させることなく適宜切換えることができる。
That is, in the coordinate
操作面10内の点の座標は、たとえば、操作面10に予め設定される座標系によって定義される絶対座標であってもよく、指示された点同士ならびに基準点などとの相互の位置関係を示す相対座標であってもよく、その他の手法で表されても良い。
The coordinates of the points in the
本実施形態の座標出力装置1において、第1出力形式として、単一点の座標を個別に出力するためのマウス形式が選ばれる。かつ、第2出力形式として、複数点の座標を一括して出力するためのデジタイザ形式が選ばれる。マウス形式は、線の描画動作などの所謂シングルタッチ操作に適している。またデジタイザ形式は、ジェスチャ動作などの所謂マルチタッチ操作に適している。
In the coordinate
この結果、本実施形態の座標出力装置1は、マウス形式とデジタイザ形式とを、操作面10内に一度に指示された点の数に応じて切換えることができる。ゆえに、本実施形態の座標出力装置1は、シングルタッチ操作に適したマウス形式とマルチタッチ操作に適したデジタイザ方式とを、出力形式の切換えを操作者に意識させることなく、切換えることができる。
As a result, the coordinate
これによって、本実施形態の座標出力装置1を備えた情報機器2は、操作者にタッチ操作の切換えを意識させることなく、シングルタッチ操作とマルチタッチ操作とを切換えることができる。ゆえに、情報機器2は、シングルタッチ操作が使用可能な環境下において、タッチ操作の切換えを操作者に意識させることなく、必要時だけマルチタッチ操作に切換えることができる。また前記情報機器2は、シングルタッチ操作とマルチタッチ操作とが併用可能な環境下において、シングルタッチ操作時にデジタイザ形式を用いることによる遅延の発生を防止することができる。
As a result, the
以上の結果、本実施形態の座標出力装置1を備えた情報機器2は、シングルタッチ操作とマルチタッチ操作とを過不足無く併用することができる。
As a result, the
本実施形態の座標出力装置1は、ジェスチャ操作などによって、操作面内に複数の点が同時に指示された場合、デジタイザ形式を用いて、指示された複数の点の座標を一度にまとめて出力する。上述の場合に複数の点の指示タイミングにずれがあるならば、好ましくは、本実施形態の座標出力装置1は、最初の点が指示された時点から最初の点の指示が続く間、マウス形式で単一の座標を出力する。最初の点の指示継続中に指示された次の点の座標が検出されると、本実施形態の座標出力装置1は、出力方式をデジタイザ形式に切換え、デジタイザ形式を用いて複数の点の座標を同時にまとめて出力する。この結果、次の点の指示後、マルチタッチ操作が可能になる。これによって、複数の点の指示タイミングが多少ずれても、出力方式がマウス形式からデジタイザ形式に切換るので、本実施形態の座標出力装置1の使い勝手がさらに向上する。
The coordinate
制御部12は、好ましくは、操作面10内に指示される点の座標検出を、時間経過に伴って繰返し座標検出部11に実行させる。かつ、制御部12は、前回の座標検出時に点の座標が検出された場合、操作面10内の検出された座標を含む予め定める範囲内から、最新の点の座標を座標検出部11に検出させる。また制御部12は、前回の座標検出時に点の座標が検出されていない場合、操作面10全体から、最新の点の座標を座標検出部11に検出させる。
The
これによって、本実施形態の座標出力装置1は、操作面10内の指示される点(以下「指示点」ということがある)の座標検出を時間経過に伴って繰返し実行するため、シングルタッチ操作による線描画動作やマルチタッチ操作によるジェスチャ動作など、操作面10内の指示点が時間経過に伴って移動する動作に対応可能である。かつ、本実施形態の座標出力装置1は、前回の座標検出時に指示点が検出される場合、検出された座標を含む所定範囲内に限定して最新の点の座標を検出し、前回の座標検出時に指示点が検出されない場合、操作面10全体から最新の点の座標を検出する。この結果、指示点が連続指示される場合は最新の点の座標検出の対象範囲が操作面10全体よりも狭い範囲に限定されるので、最新の点の座標検出に要する時間が短縮される。
As a result, the coordinate
本実施形態の座標出力装置1は、具体的には、内部記憶部13と通信部14とをさらに含む。座標出力装置1の内部記憶部13は、座標検出部11および座標出力装置1の制御部12の動作に伴って生じるデータを記憶する。たとえば座標出力装置1の内部記憶部13は、座標検出部11が検出した点の座標を示す最新の検出座標値情報OZおよび前回の検出座標値情報OZbk、ならびに座標出力装置1から情報機器本体3へ送付すべき出力用座標値情報PZを記憶する。座標出力装置1の通信部14は、座標出力装置1の外部の各種装置との間で、データや制御信号を送受する。
Specifically, the coordinate
図1の情報機器2において、情報機器本体3と組合せられる表示装置4は、情報機器2において操作者に提示すべき情報を映像化して出力するための出力装置である。好ましくは、表示装置4が映像化された情報を表示するための表示面内の点は、座標出力装置1の操作面10内の点と、1対1で対応している。
In the
座標出力装置1と組合せられる情報機器本体3は、制御部22と内部記憶部23と通信部24と映像信号出力端子25とを含む。情報機器本体3の制御部22は、情報機器本体3内の各種構成要素23〜25を制御する。情報機器本体3の内部記憶部23は、たとえば、情報機器本体3の制御部22が実行すべき各種プログラムを記憶する。情報機器本体3の制御部22は、予め定めるオペレーションシステムに基づき、情報機器本体3の内部記憶部23に記憶される各種プログラムを適宜読出して実行する。情報機器本体3の内部記憶部23は、アプリケーションプログラム、前述したマウス形式に対応したインタフェイス用のドライバプログラム、デジタイザ形式に対応したインタフェイス用のドライバプログラムを含む。情報機器本体3の通信部24は、情報機器本体3の外部の各種装置との間で、データや制御信号を送受する。映像信号出力端子25は、映像化された情報を示す映像信号を、表示装置4へ出力するための端子である。情報機器本体3の制御部22は、映像化された情報を示す映像信号を、映像信号出力端子25を経由して表示装置4に与え、表示装置4において映像化させる。
The information device
本実施形態の座標出力装置1と情報機器本体3との間のデータの送受は、座標出力装置1の通信部14と情報機器本体3の通信部24とを介して行われる。座標出力装置1と情報機器本体3との間の通信は、たとえばUSB(Universal_Serial_Bus)規格に基づく有線接続または無線接続で実現される。この場合、座標出力装置1の通信部14および情報機器本体3の通信部24は、USB規格の端子で実現される。勿論、座標出力装置1と情報機器本体3との間の通信は、USB規格以外の他の規格に基づく有線接続または無線接続で実現されても良い。
Data transmission / reception between the coordinate
座標出力装置1の制御部12は、たとえば、マイクロプロセッサ(Microprocessor)、プログラミングすることができるLSI(Large Scale Integration)であるFPGA(Field Programmable Gate Array)、特定の用途のために設計製造される集積回路であるASIC(Application Specific Integrated Circuit)、またはその他の演算機能を有する回路のいずれで実現されてもよい。
The
情報機器本体3は、たとえば、パーソナルコンピュータやワークステーションなどを含むコンピュータ本体などで実現される。オペレーティングシステムは、たとえばWindows(登録商標)などのオペレーティングシステムで実現される。アプリケーションプログラムは、たとえば、表計算ソフトウェアなどで実現される。
The information equipment
図2は、図1の座標出力装置1の座標検出部11の構成を示す模式図である。
本実施形態の座標出力装置1は、具体的には、XY2次元座標が検出可能な赤外線遮光方式のタッチパネル装置で実現される。このため、座標検出部11が、X軸発光素子31およびX軸受光素子32と、Y軸発光素子33およびY軸受光素子34と、発光制御部35と、受光制御部36とを含む。X軸発光素子31およびX軸受光素子32とY軸発光素子33およびY軸受光素子34で囲まれた矩形状平面が、操作面10に相当する。赤外線遮光方式のタッチパネル装置は、操作面10内に置かれた遮光物の位置座標を、指示された点の座標として検出する。遮光物39は、スタイラスペンや操作者の指などで実現される指示具である。
FIG. 2 is a schematic diagram illustrating a configuration of the coordinate
Specifically, the coordinate
X軸発光素子31およびX軸受光素子32は、矩形の操作面10を挟んで1対ずつ相互に対面するように、矩形の操作面10の相互に対向する1対の側辺にそれぞれ沿って、1列に配置される。Y軸発光素子33およびY軸受光素子34は、矩形の操作面10を挟んで1対ずつ相互に対面するように、矩形の操作面10の相互に対向する1対の側辺にそれぞれ沿って、1列に配置される。X軸発光素子31およびX軸受光素子32が1列配置される1対の側辺と、Y軸発光素子33およびY軸受光素子34が1列配置される1対の側辺とは相互に直交する。
The X-axis
X軸発光素子31およびX軸受光素子32は、遮光物39のXY2次元座標のX座標値の検出に用いられる。Y軸発光素子33およびY軸受光素子34は、遮光物39のXY2次元座標のY座標値の検出に用いられる。すなわち、1列配置されたX軸発光素子31およびX軸受光素子32の並ぶ方向がXY2次元座標系のX軸線と平行であり、1列配置されたY軸発光素子33およびY軸受光素子34の並ぶ方向がXY2次元座標系のY軸線と平行である。発光制御部35は、制御部12からの制御に応答して、X軸発光素子31およびY軸発光素子33の点灯ならびに消灯を具体的に制御する。受光制御部36は、X軸受光素子32およびY軸受光素子34の受光を制御し、X軸受光素子32およびY軸受光素子34の受光結果を制御部12に与える。
The X-axis light-emitting
複数のX軸発光素子31は、発光制御部35による制御に応答して、遮光物39の位置を検出するための検出光37を、それぞれ発光する。1対のX軸発光素子31およびX軸受光素子32の間に遮光物39がなければ、該X軸発光素子31からの検出光37をX軸受光素子32が受光する。同様に、複数のY軸発光素子33は、発光制御部35による制御に応答して、遮光物39の位置を検出するための検出光38を、それぞれ発光する。1対のY軸発光素子33およびY軸受光素子34の間に遮光物39がなければ、該Y軸発光素子33からの検出光38をY軸受光素子34が受光する。X軸受光素子32およびY軸受光素子34の受光結果は、受光制御部36を通して制御部12に与えられる。
The plurality of X-axis
赤外線遮断方式のタッチパネル装置において、操作面10内の点を指示している状態である指示状態は、いずれかの発光素子31,33および受光素子32,34の対の間で送受される検出光37,38が遮光物39で遮光されている状態を指す。操作面10内の点が指示されていない非指示状態では、全ての発光素子31,33からの検出光37,38が対の受光素子32,34で受光される。非指示状態から指示状態へ移行後、検出光37,38が遮断される発光素子31,33および受光素子32,34の対が変更されつつ検出光37,38が遮光される状態が連続している間は、指示される点が移動しつつも指示状態が継続される。
In the infrared cut-off type touch panel device, the indication state in which a point in the
本実施形態の座標出力装置1において、座標検出部11における点の座標検出は、時間経過に伴って繰返し実行される。前回の座標検出時に点の座標が検出されなかった場合、次の座標検出時には、遮光する遮光物39がどこに出現するかわからないので、図2(a)に示すように、操作面10全体を対象として次の座標検出のためのスキャンが実行される。前回の座標検出時に1以上の点の座標が検出された場合、指示状態を保ちつつ指示具が指示する点が移動するとしても、点の座標検出を繰返す所定の時間間隔内では、指示具が指示する点の移動距離は大きくないと考えられる。このため、図2(b)に示すように、次の座標検出時には、操作面10全体をスキャンしなくとも、最新の検出された座標の周辺のスキャン範囲30だけを対象として、次の座標検出のためのスキャンが実行されればよい。これによって、指示状態継続中は操作面10の座標検出のためのスキャン範囲30が限定されるため、座標検出に要する時時間が短縮される。
In the coordinate
本実施形態の座標出力装置1は、赤外線遮断方式のタッチパネル装置で実現されている。本実施形態の座標出力装置1は、タッチパネルのスキャン方式に依存しないため、たとえば静電容量方式のタッチパネル装置など、赤外線遮断方式以外の他の方式のタッチパネル装置にも適用することができる。また実施形態の座標出力装置1は、出力形式が適宜切換えられる構成であれば、座標検出部11がタッチパネル装置以外の他の構成で実現されてもよい。
The coordinate
以後の説明では、座標出力装置1と情報機器本体3との間の通信がUSB規格による有線接続で実現されており、出力形式はUSB−IF(USB-Implementers Forum, Inc)で策定された規格書に規定される形式であるとする。USB−IFは、USBの仕様の策定および管理などを行う非営利団体(NPO)である。
In the following description, communication between the coordinate
また以後の説明で用いられる「Usage_Page:Degitizers、Usage:Touch_Screen」、「
Usage_Page:Generic_Desktop、Usage:Mouse」などの用語は、USB−IFで策定されたUSBの規格書で使用されている用語であり、フォーマットの分類などを意味する。これらの用語は、規格書の原文が英語のため日本語訳がないので、英語のまま表記することがある。また、「Tip_Switch」、「In_Range」、「Touch_Valid」は、デジタイザ用ドライバ用に規定した要素である。「Tip_Switch」、「In_Range」は、Z軸をサポートしているデバイス用の要素であるが、以後の例ではZ軸をサポートしていないため、要素の定義はしているが、未使用である。
In addition, “Usage_Page: Degitizers, Usage: Touch_Screen”, “
Terms such as “Usage_Page: Generic_Desktop, Usage: Mouse” are terms used in the USB standard document formulated by USB-IF, and mean format classification. These terms may be written in English because the original text of the standard is English and there is no Japanese translation. Further, “Tip_Switch”, “In_Range”, and “Touch_Valid” are elements defined for the digitizer driver. “Tip_Switch” and “In_Range” are elements for devices that support the Z axis. However, since the Z axis is not supported in the following examples, the elements are defined but not used. .
図3は、図1の座標出力装置1における出力形式の切換え手法を詳細に説明するための情報機器2の模式図である。なお、図3の例は、座標出力装置1と情報機器本体3との間の通信がUSB規格による有線接続で実現されており、出力形式がマウス形式とデジタイザ形式とで随時切換えられる構成になっている。
FIG. 3 is a schematic diagram of the
図3(a)は、情報機器2においてシングルタッチ操作が用いられる状況を示す。シングルタッチ操作は、操作者によって操作面10に単一の点が指示される操作手法である。シングルタッチ操作は、たとえば、マウスを用いて表示装置4の表示面内のマウスカーソルを適宜動かすマウス操作や、指示具を用いて表示装置4の表示面内に線を描画する線描画動作などで用いられる。
FIG. 3A shows a situation where a single touch operation is used in the
シングルタッチ操作時において、非指示状態から操作者によって操作面10内の1点が指示されると、線の描画が開始される。非指示状態から指示状態への移行後、指示状態を保ったまま指示される点が時間経過に伴って移動されると、指示された点の軌跡と同等の線が表示装置4の表示面に描かれる。指示状態を継続した後に指示状態から非指示状態へ移行すると、線の描画が終了する。
When a single point on the
このようなシングルタッチ操作時には、座標出力装置1において、所定の検出タイミングにおいて検出される操作面10内の点の座標が単一であり、検出される単一の点の座標が時間経過に伴って移動する。この場合、座標出力装置1は、検出タイミングにおいて検出された点の座標を1点分ずつ個別にマウス形式で出力する。
In such a single touch operation, the coordinate
表1は、マウス形式で出力される1回分の出力用座標値情報PZの具体的な構成を示す。表1に示すように、マウス形式の出力用座標値情報PZは、検出された単一の点のX座標およびY座標と、指示状態の是非を示す指示状態要素(Lボタン)とを含む。マウス形式は、具体的には、USBのHID(Human Interface Device)の規格で、UsagePageがGeneric_
Desktop、UsageがMouseのモードでの通信フォーマットで実現される。
Table 1 shows a specific configuration of one-time output coordinate value information PZ output in the mouse format. As shown in Table 1, the output coordinate value information PZ in the mouse format includes an X coordinate and a Y coordinate of a detected single point, and an instruction state element (L button) indicating whether the instruction state is right or wrong. The mouse format is specifically the USB HID (Human Interface Device) standard, and UsagePage is Generic_
Desktop and Usage are realized by the communication format in Mouse mode.
図3(b)は、情報機器2においてマルチタッチ操作が用いられる状況を示す。マルチタッチ操作は、操作者によって操作面10に複数の点が同時に指示される操作手法である。マルチタッチ操作は、たとえば、所謂ジェスチャ操作などで用いられる。
FIG. 3B shows a situation where the multi-touch operation is used in the
マルチタッチ操作時において、非指示状態から操作者によって操作面10内の複数の点が指示されると、ジェスチャ操作が開始される。非指示状態から指示状態への移行後、指示状態を保ったまま指示される複数の点が時間経過に伴ってそれぞれ移動され、指示状態を継続した後に非指示状態へ移行すると、複数の点の軌跡のパターンや大きさに応じて、情報機器2が各種動作を実行する。たとえば、操作面10内の離れた2点が指示され、指示される2点が相互に近づく方向へ移動し、移動後に指示が解消された場合、表示装置4の表示面に予め描かれていた図形が縮小される。
When a plurality of points in the
このようなマルチタッチ操作時には、座標出力装置1において、所定の検出タイミングにおいて検出される操作面10内の点の座標が複数であり、検出される複数の点の座標が時間経過に伴って移動する。この場合、座標出力装置1は、検出タイミングにおいて検出された複数の点の座標を纏めてデジタイザ形式で出力する。
In such a multi-touch operation, the coordinate
表2は、デジタイザ形式で出力される1回分の出力用座標値情報PZの具体的な構成を示す。表2に示すように、デジタイザ形式の出力用座標値情報PZは、検出された複数の点のX座標およびY座標と、検出された複数の点の指示状態の是非をそれぞれ示す指示状態要素(Touch_Valid)とを含む。デジタイザ形式は、具体的には、USBのHID(Human
Interface Device)の規格で、UsagePageがDegitizers、UsageがTouch Screenのモードでの通信フォーマットで実現される。
Table 2 shows a specific configuration of one-time output coordinate value information PZ output in the digitizer format. As shown in Table 2, the output coordinate value information PZ in the digitizer format includes an X state and a Y coordinate of a plurality of detected points and indication state elements ( Touch_Valid). Specifically, the digitizer format is USB HID (Human
This is a standard of Interface Device), which is realized with a communication format in which UsagePage is Degitizers and Usage is in Touch Screen mode.
図4〜図9は、本実施形態の座標出力装置1において、座標出力装置1の制御部12が実行する座標入力処理を説明するためのフローチャートである。本実施形態の座標出力装置1における座標出力処理は、操作面10内の指示された点の座標を検出するための図4〜図8の座標検出処理と、検出された座標を示す情報を装置外部に出力するための図9の座標出力処理とを含む。図4〜図9の座標検出処理ならびに図9の座標出力処理において用いられる変数などの定義は、以下の通りである。
4 to 9 are flowcharts for explaining the coordinate input processing executed by the
最新の検出座標値情報OZは、操作者によって指示された最新の点の座標値に関する情報用の変数である。前回の検出座標値情報OZbkは、最新の座標検出タイミングの1回前において、操作者によって指示された点の座標値に関する情報用の変数である。出力用検出座標値情報は、座標出力装置1から情報機器本体3へ送付すべき座標値に関する情報用の変数である。
The latest detected coordinate value information OZ is a variable for information related to the coordinate value of the latest point designated by the operator. The previous detected coordinate value information OZbk is a variable for information related to the coordinate value of the point designated by the operator one time before the latest coordinate detection timing. The detected coordinate value information for output is a variable for information related to the coordinate value to be sent from the coordinate
最新の検出された点の座標を示す最新の検出座標値情報OZは、最新の1点目の検出の有無を示すフラグOZaF1、最新の1点目のX座標値OZaX1、最新の1点目のY座標OZaY1、最新の2点目の検出の有無を示すフラグOZaF2、最新の2点目のX座標値OZaX2、および最新の2点目のY座標値OZaY2を含む。 The latest detected coordinate value information OZ indicating the coordinates of the latest detected point includes a flag OZaF1 indicating whether or not the latest first point is detected, the latest X coordinate value OZaX1 of the first point, and the latest first point. It includes a Y coordinate OZaY1, a flag OZaF2 indicating whether or not the latest second point is detected, a latest second X coordinate value OZaX2, and a latest second Y coordinate value OZaY2.
前回の検出座標値情報OZbkは、前回の1点目の検出の有無を示すフラグOZaF1bk、前回の1点目のX座標値OZaX1bk、前回の1点目のY座標値OZaY1bk、前回の2点目の検出の有無を示すフラグOZaF2bk、前回の2点目のX座標値OZaX2bk、前回の2点目のY座標値OZaY2bkを含む。 The previous detected coordinate value information OZbk includes a flag OZaF1bk indicating whether the previous first point has been detected, the previous first X coordinate value OZaX1bk, the previous first Y coordinate value OZaY1bk, and the previous second point. A flag OZaF2bk indicating the presence or absence of detection, a previous second X coordinate value OZaX2bk, and a previous second Y coordinate value OZaY2bk.
出力用座標値情報PZは、出力用の1点目の検出の有無を示すフラグPZaF1、出力用の1点目のX座標値PZaX1、出力用の1点目のY座標値PZaY1、出力用の2点目の検出の有無を示すフラグPZaF2、出力用の2点目のX座標値PZaX2、出力用の1点目のY座標値PZaY2を含む。 The output coordinate value information PZ includes a flag PZaF1 indicating whether or not the first output point is detected, the first X coordinate value PZaX1 for output, the first Y coordinate value PZaY1 for output, It includes a flag PZaF2 indicating whether or not the second point is detected, an X coordinate value PZaX2 for the second point for output, and a Y coordinate value PZaY2 for the first point for output.
各座標値情報において、1点目および2点目の検出の有無を示すフラグOZaF1,OZaF2,OZaF1bk,OZaF2bk,PZaF1,PZaF1は、点の座標が検出されない場合「0」であり、点の座標が検出された場合「1」である。 In each coordinate value information, flags OZaF1, OZaF2, OZaF1bk, OZaF2bk, PZaF1, and PZaF1 indicating the presence / absence of detection of the first and second points are “0” when the coordinates of the points are not detected, and the coordinates of the points are When it is detected, it is “1”.
情報機器本体3へ送付すべき出力用座標値情報PZの有無を示すフラグSendFlgは、初期値が「0」であり、「0」が送付すべき出力用座標値情報PZがない状態を示し、「1」が送付すべき出力用座標値情報PZがある状態を示す。
The flag SendFlg indicating the presence / absence of output coordinate value information PZ to be sent to the information device
マウス形式用バッファSendbuf_MSは、表1で示すマウス形式の出力用座標値情報PZを記憶する。マウス形式用バッファSendbuf_MSにおいて、指示状態の是非を示す指示状態要素(Lボタン)は、遮光のある指示状態であるとき「1」であり、遮光のない非指示状態では「0」である。 The mouse format buffer Sendbuf_MS stores mouse format output coordinate value information PZ shown in Table 1. In the mouse format buffer Sendbuf_MS, the instruction state element (L button) indicating the right or wrong of the instruction state is “1” when the instruction state is light-shielded, and is “0” when the instruction state is not light-shielded.
デジタイザ形式用バッファSendbuf_DEは、表2で示すデジタイザ形式の出力用座標値情報PZを記憶する。デジタイザ形式用バッファSendbuf_DEにおいて、1点目および2点目の指示状態の是非をそれぞれ示す指示状態要素Touch_
Validは、遮光のある指示状態であるとき「1」であり、遮光のない非指示状態では「0」である。
The digitizer format buffer Sendbuf_DE stores the digitizer format output coordinate value information PZ shown in Table 2. In the digitizer format buffer Sendbuf_DE, an instruction state element Touch_ indicating each of the first and second point instruction states.
Valid is “1” in the instruction state with light shielding, and “0” in the non-instruction state without light shielding.
マウス形式の出力用座標値情報PZおよびデジタイザ形式の出力用座標値情報PZにおいて、指示状態要素(Lボタン),(Touch_Valid)が「1」である間は、操作面内の点が継続して指示されている状態である。タッチパネル装置であれば、指示具が操作面にタッチしてから操作面から離れることなく操作面内を移動する間、指示状態要素が「1」に保たれる。 In the mouse-format output coordinate value information PZ and the digitizer-format output coordinate value information PZ, while the instruction state element (L button) and (Touch_Valid) are “1”, the points on the operation surface continue. It is in the state instructed. In the case of the touch panel device, the instruction state element is kept at “1” while the pointing tool touches the operation surface and moves within the operation surface without leaving the operation surface.
前回送信データ形式バッファSendFmtは、前回の出力用座標値情報PZの送付時に用いられた出力形式を記録する。前回送信データ形式バッファSendFmtは、送付無しの場合「0」であり、マウス形式が選ばれたときは「1」であり、デジタイザ形式が選ばれたとき「2」である。 The previous transmission data format buffer SendFmt records the output format used when sending the previous output coordinate value information PZ. The previous transmission data format buffer SendFmt is “0” when there is no transmission, “1” when the mouse format is selected, and “2” when the digitizer format is selected.
図4Aおよび図4Bは、本実施形態の座標出力装置1の制御部12が実行する座標検出処理の全体の流れを示すフローチャートである。
4A and 4B are flowcharts showing the overall flow of coordinate detection processing executed by the
装置起動後、ステップP0からステップP1に進む。ステップP1において、座標入力処理に係る各種の変数やバッファが初期化される。 After the apparatus starts, the process proceeds from step P0 to step P1. In step P1, various variables and buffers related to the coordinate input process are initialized.
ステップP2において、前回の検出座標値情報OZbkにおいて1点目および2点目の座標が検出されているか否かが判断される。すなわち、前回の検出座標値情報OZbkのうちの1点目の検出の有無を示すフラグOZaF1bkと2点目の検出の有無を示すフラグOZaF2bkとの両方が「0」であるか否かが判断される。両フラグが0である場合、ステップP2からステップP3に進む。 In step P2, it is determined whether or not the first and second coordinates are detected in the previous detected coordinate value information OZbk. That is, it is determined whether or not both the flag OZaF1bk indicating whether or not the first point of detection coordinate value information OZbk is detected and the flag OZaF2bk indicating whether or not the second point is detected are “0”. The When both flags are 0, the process proceeds from step P2 to step P3.
ステップP3において、後述の図5Aおよび図5Bで説明する全体スキャン処理が実行される。全体スキャン処理は、操作者によって指示された1以上の点の座標を操作面10全体から検出するための処理である。この結果、最新の検出座標値情報OZが更新される。1点目および2点目のうちの少なくとも一方が検出されたならば、最新の検出座標値情報OZにおいて、1点目および2点目の検出の有無を示すフラグOZaF1,OZaF2のうちの少なくとも一方が「1」に変更される。1点目および2点目の両方が検出されないならば、最新の検出座標値情報OZにおいて、1点目および2点目の検出の有無を示すフラグOZaF1,OZaF2の両方が「0」のまま保たれる。
In step P3, a full scan process described later with reference to FIGS. 5A and 5B is executed. The whole scan process is a process for detecting the coordinates of one or more points designated by the operator from the
ステップP3の全体スキャン処理終了後、ステップP4において、最新の検出座標値情報OZにおいて、少なくとも1点目の座標が検出されたか否かが判断される。すなわち、最新の検出座標値情報OZの1点目の検出の有無を示すフラグOZaF1が「1」であるか否かが判断される。最新の検出座標値情報OZの1点目の検出の有無を示すフラグOZaF1が「0」であれば、ステップP3の全体スキャン処理において点の座標が1つも検出されていないため、ステップP4からステップP3に戻り、ステップP3の全体スキャン処理を再実行する。この結果、最新の検出座標値情報OZにおいて少なくとも1点分の座標が検出されるまで、ステップP3およびステップP4の処理が繰返される。最新の検出座標値情報OZにおいて少なくとも1点目の座標が検出されている場合、ステップP4からステップP5に進む。 After completion of the entire scan process in step P3, in step P4, it is determined whether or not at least the first coordinate is detected in the latest detected coordinate value information OZ. That is, it is determined whether or not the flag OZaF1 indicating whether or not the first point of the latest detected coordinate value information OZ is detected is “1”. If the flag OZaF1 indicating the presence / absence of detection of the first point of the latest detected coordinate value information OZ is “0”, no point coordinates have been detected in the entire scan process of Step P3, and therefore Steps P4 to P4 are performed. Returning to P3, the entire scan process in step P3 is executed again. As a result, the processes of Step P3 and Step P4 are repeated until the coordinates for at least one point are detected in the latest detected coordinate value information OZ. When at least the first coordinate is detected in the latest detected coordinate value information OZ, the process proceeds from step P4 to step P5.
ステップP5において、前回送信データ形式バッファSendFmtに、「送付無し」を示す「0」が代入される。 In step P5, “0” indicating “no delivery” is substituted into the previous transmission data format buffer SendFmt.
次いで、ステップP6において、ステップP3およびステップP4で検出された最新の検出座標値情報OZを、前回の検出座標値情報OZbkにセットする。すなわち、前回の検出座標値情報OZbkの1点目の検出の有無を示すフラグOZaF1bkに最新の検出座標値情報OZの1点目の検出の有無を示すフラグOZaF1が代入され、前回の検出座標値情報OZbkの1点目のX座標値OZaX1bkに最新の検出座標値情報OZの1点目のX座標値OZaX1が代入され、前回の検出座標値情報OZbkの1点目のY座標値OZaY1bkに最新の検出座標値情報OZの1点目のY座標OZaY1が代入される。同様に、前回の検出座標値情報OZbkの2点目の検出の有無を示すフラグOZaF2bkに最新の検出座標値情報OZの2点目の検出の有無を示すフラグOZaF2が代入される。 Next, in step P6, the latest detected coordinate value information OZ detected in steps P3 and P4 is set in the previous detected coordinate value information OZbk. That is, the flag OZaF1 indicating the presence / absence of the detection of the first point of the latest detected coordinate value information OZ is substituted for the flag OZaF1bk indicating the presence / absence of the detection of the first point of the previous detection coordinate value information OZbk. The first X coordinate value OZaX1 of the latest detected coordinate value information OZ is substituted into the first X coordinate value OZaX1bk of the information OZbk, and the latest Y coordinate value OZaY1bk of the previous detected coordinate value information OZbk. The first Y coordinate OZaY1 of the detected coordinate value information OZ is substituted. Similarly, a flag OZaF2 indicating whether or not the second point of the latest detected coordinate value information OZ is detected is substituted for the flag OZaF2bk indicating whether or not the second point of the previous detected coordinate value information OZbk is detected.
以上、ステップP3〜ステップP6の処理によって、少なくとも、前回の検出座標値情報OZbkの前回の1点目の検出の有無を示すフラグOZaF1bkに「1」が代入され、かつ、1点目のX座標値OZaX1およびY座標OZaY1に最新の検出結果が代入される。 As described above, by the processing of Step P3 to Step P6, at least “1” is assigned to the flag OZaF1bk indicating the presence or absence of the detection of the first point of the previous detection coordinate value information OZbk, and the X coordinate of the first point The latest detection result is substituted into the value OZaX1 and the Y coordinate OZaY1.
ステップP3〜ステップP6の処理後、ステップP7に進む。また、ステップP2において、前回の検出座標値情報OZbkにおいて1点目および2点目の座標のうちの少なくとも一方が検出されている場合、ステップP2からステップP3〜ステップP6を飛ばしてステップP7へ進む。この結果、ステップP7へ進む時点で、前回の検出座標値情報OZbkにおいて、1点目および2点目のうちの少なくとも一方が検出されている。 After the processing of Step P3 to Step P6, the process proceeds to Step P7. In Step P2, if at least one of the first and second coordinates is detected in the previous detected coordinate value information OZbk, Step P2 to Step P3 to Step P6 are skipped and the process proceeds to Step P7. . As a result, at the time of proceeding to Step P7, at least one of the first point and the second point is detected in the previous detected coordinate value information OZbk.
ステップP7において、前回の検出座標値情報OZbkにおいて、1点目の座標が検出されているか否かが判断される。すなわち、前回の検出座標値情報OZbkの1点目の検出の有無を示すフラグOZaF1bkが「1」であるか否かが判断される。前述のフラグOZaF1bkが「1」である場合、前回の検出座標値情報OZbkに1点目の座標が存在するので、ステップP7からステップP8に進む。 In step P7, it is determined whether or not the first coordinate is detected in the previous detected coordinate value information OZbk. That is, it is determined whether or not the flag OZaF1bk indicating whether or not the first point of the previous detected coordinate value information OZbk is detected is “1”. When the above-described flag OZaF1bk is “1”, the first coordinate is present in the previous detected coordinate value information OZbk, so the process proceeds from Step P7 to Step P8.
ステップP8において、後述の図6で説明する1点目用の局所スキャン処理が実行される。1点目用の局所スキャン処理は、操作者によって指示された1点目の最新の座標を、操作面10内の前回の1点目の座標を含む所定範囲から検出するための処理である。この結果、最新の検出座標値情報OZのうち、1点目の検出の有無を示すフラグOZaF1、1点目のX座標値OZaX1、および1点目のY座標OZaY1が更新される。
In step P8, a local scan process for the first point described later with reference to FIG. 6 is executed. The local scan process for the first point is a process for detecting the latest coordinates of the first point designated by the operator from a predetermined range including the coordinates of the first point in the
ステップP9において、ステップP8で更新された1点目の最新の座標に係る情報が、出力用座標値情報PZにセットされる。すなわち、最新の検出座標値情報OZのうち、ステップP8で更新された1点目の検出の有無を示すフラグOZaF1、1点目のX座標値OZaX1、および1点目のY座標OZaY1が、出力用座標値情報PZの1点目の検出の有無を示すフラグPZaF1、1点目のX座標値PZaX1、および1点目のY座標PZaY1に、それぞれ代入される。代入後、ステップP9からステップP11に進む。 In step P9, information related to the latest coordinates of the first point updated in step P8 is set in the output coordinate value information PZ. That is, out of the latest detected coordinate value information OZ, the flag OZaF1, the first X coordinate value OZaX1, and the first Y coordinate OZaY1 indicating whether or not the first point is updated updated in step P8 are output. This is substituted for the flag PZaF1, the first X coordinate value PZaX1, and the first Y coordinate PZaY1, each indicating whether or not the first point of the coordinate value information PZ is detected. After the substitution, the process proceeds from step P9 to step P11.
ステップP7において、前回の検出座標値情報OZbkの1点目の検出の有無を示すフラグOZaF1bkが「0」である場合、前回の検出座標値情報OZbkに1点目の座標が存在しない。この場合、ステップP7からステップP10に進む。ステップP10において、2点目の検出のため、後述の図5Aおよび図5Bで説明する全体スキャン処理が実行される。この結果、最新の検出座標値情報OZが更新される。全体スキャン処理実行後、ステップP10からステップP11に進む。 In step P7, when the flag OZaF1bk indicating whether or not the first point of the previous detected coordinate value information OZbk is detected is “0”, the first point coordinate does not exist in the previous detected coordinate value information OZbk. In this case, the process proceeds from step P7 to step P10. In step P10, for the detection of the second point, a full scan process described later with reference to FIGS. 5A and 5B is executed. As a result, the latest detected coordinate value information OZ is updated. After the entire scan process is executed, the process proceeds from step P10 to step P11.
ステップP11において、情報機器本体3へ送付すべき出力用座標値情報PZの有無を示すフラグSendFlgに、出力用座標値情報PZが有る旨を示す「1」が代入される。更新された出力用座標値情報PZの有無のフラグSendFlgは、後述する図8Aおよび図8Bの座標出力処理で用いられる。
In Step P11, “1” indicating that the output coordinate value information PZ is present is substituted for the flag SendFlg indicating the presence or absence of the output coordinate value information PZ to be sent to the information device
以上、ステップP7〜ステップP11の処理によって、最新の検出座標値情報OZならびに出力用座標値情報PZのうち、1点目の検出の有無を示すフラグOZaF1,PZaF1、1点目のX座標値OZaX1,PZaX1、および1点目のY座標OZaY1,PZaY1が、局所スキャン処理を用いて更新され、かつ、出力用座標値情報PZの有無を示すフラグSendFlgが「有り」に更新される。 As described above, the flags OZaF1, PZaF1, and the first X coordinate value OZaX1 indicating the presence / absence of detection of the first point in the latest detected coordinate value information OZ and the output coordinate value information PZ by the processing of Step P7 to Step P11. , PZaX1, and the first Y coordinate OZaY1, PZaY1 are updated using the local scan process, and the flag SendFlg indicating the presence / absence of the output coordinate value information PZ is updated to “present”.
ステップP12において、前回の検出座標値情報OZbkにおいて、2点目の座標が検出されているか否かが判断される。すなわち、前回の検出座標値情報OZbkの2点目の検出の有無を示すフラグOZaF2bkが「1」であるか否かが判断される。前述のフラグOZaF2bkが「1」である場合、前回の検出座標値情報OZbkに2点目の座標が存在するので、ステップP12からステップP13に進む。 In step P12, it is determined whether or not the second coordinate is detected in the previous detected coordinate value information OZbk. That is, it is determined whether or not the flag OZaF2bk indicating the presence / absence of detection of the second point of the previous detected coordinate value information OZbk is “1”. When the aforementioned flag OZaF2bk is “1”, the second coordinate is present in the previous detected coordinate value information OZbk, and therefore the process proceeds from Step P12 to Step P13.
ステップP13において、後述の図7で説明する2点目用の局所スキャン処理が実行される。2点目用の局所スキャン処理は、操作者によって指示された2点目の最新の座標を、操作面10内の前回の2点目の座標を含む所定範囲から検出するための処理である。この結果、最新の検出座標値情報OZのうち、2点目の検出の有無を示すフラグOZaF2、2点目のX座標値OZaX2、および2点目のY座標OZaY2が更新される。
In step P13, a local scan process for the second point described later with reference to FIG. 7 is executed. The local scan process for the second point is a process for detecting the latest coordinates of the second point designated by the operator from a predetermined range including the previous coordinates of the second point in the
ステップP14において、ステップP13で更新された2点目の最新の座標に係る情報が、出力用座標値情報PZにセットされる。すなわち、最新の検出座標値情報OZのうち、ステップP13で更新された2点目の検出の有無を示すフラグOZaF2、2点目のX座標値OZaX2、および2点目のY座標OZaY2が、出力用座標値情報PZの2点目の検出の有無を示すフラグPZaF2、2点目のX座標値PZaX2、および2点目のY座標PZaY2に、それぞれ代入される。代入後、ステップP14からステップP16に進む。 In step P14, information related to the latest coordinates of the second point updated in step P13 is set in the output coordinate value information PZ. That is, out of the latest detected coordinate value information OZ, the flag OZaF2, the second X coordinate value OZaX2, and the second Y coordinate OZaY2 indicating whether or not the second point has been detected updated in step P13 are output. Is substituted for a flag PZaF2, which indicates whether or not the second point of the coordinate value information PZ is detected, the second X coordinate value PZaX2, and the second Y coordinate PZaY2. After the substitution, the process proceeds from step P14 to step P16.
ステップP12において、前回の2点目の検出の有無を示すフラグOZaF2bkが「0」である場合、前回の検出座標値情報OZbkに2点目の座標が存在しない。この場合、ステップP12からステップP15に進む。ステップP15において、1点目の検出のため、後述の図5Aおよび図5Bで説明する全体スキャン処理が実行される。この結果、最新の検出座標値情報OZが更新される。全体スキャン処理実行後、ステップP15からステップP16に進む。 In step P12, when the flag OZaF2bk indicating whether or not the previous second point has been detected is “0”, there is no second point coordinate in the previous detected coordinate value information OZbk. In this case, the process proceeds from step P12 to step P15. In step P15, for the detection of the first point, a full scan process described later with reference to FIGS. 5A and 5B is executed. As a result, the latest detected coordinate value information OZ is updated. After the entire scan process is executed, the process proceeds from step P15 to step P16.
ステップP16において、情報機器本体3へ送付すべき出力用座標値情報PZの有無を示すフラグSendFlgに、出力用座標値情報PZが有る旨を示す「1」が代入される。更新された出力用座標値情報PZの有無のフラグSendFlgは、後述する図8Aおよび図8Bの座標出力処理で用いられる。
In Step P16, “1” indicating that the output coordinate value information PZ is present is substituted for the flag SendFlg indicating the presence or absence of the output coordinate value information PZ to be sent to the information device
以上、ステップP12〜ステップP16の処理によって、最新の検出座標値情報OZならびに出力用座標値情報PZのうち、2点目の検出の有無を示すフラグOZaF2,PZaF2、2点目のX座標値OZaX2,PZaX2、および2点目のY座標OZaY2,PZaY2が、局所スキャン処理を用いて更新され、かつ、出力用座標値情報PZの有無を示すフラグSendFlgが「有り」に更新される。 As described above, the flags OZaF2 and PZaF2 indicating the presence / absence of detection of the second point out of the latest detected coordinate value information OZ and the output coordinate value information PZ by the processing of Step P12 to Step P16, and the second X coordinate value OZaX2 , PZaX2, and the second Y coordinate OZaY2, PZaY2 are updated using the local scan process, and the flag SendFlg indicating the presence / absence of the output coordinate value information PZ is updated to “present”.
このように、図4Aおよび図4Bの座標入力処理において、ステップP7〜ステップP16の処理によって、最新の検出座標値情報OZが更新され、かつ、更新された最新の検出座標値情報OZが出力用座標値情報PZにセットされる。これによって更新された出力用座標値情報PZは、後述する図8Aおよび図8Bの座標出力処理で用いられる。 As described above, in the coordinate input processing of FIGS. 4A and 4B, the latest detected coordinate value information OZ is updated by the processing of Step P7 to Step P16, and the updated latest detected coordinate value information OZ is used for output. Set to coordinate value information PZ. The updated output coordinate value information PZ is used in the coordinate output processing of FIGS. 8A and 8B described later.
次いで、ステップP17において、ステップP7〜ステップP16で検出された最新の検出座標値情報OZを、前回の検出座標値情報OZbkにセットする。すなわち、前回の1点目の検出の有無を示すフラグOZaF1bkに最新の1点目の検出の有無を示すフラグOZaF1が代入され、前回の1点目のX座標値OZaX1bkに最新の1点目のX座標値OZaX1が代入され、前回の1点目のY座標値OZaY1bkに最新の1点目のY座標OZaY1が代入される。同様に、前回の2点目の検出の有無を示すフラグOZaF2bkに最新の2点目の検出の有無を示すフラグOZaF2が代入され、 前回の2点目のX座標値OZaX2bkに最新の2点目のX座標値OZaX2が代入され、前回の2点目のY座標値OZaY2bkに最新の2点目のY座標値OZaY2が代入される。 Next, in step P17, the latest detected coordinate value information OZ detected in steps P7 to P16 is set in the previous detected coordinate value information OZbk. That is, the flag OZaF1 indicating the presence / absence of the latest detection of the first point is substituted for the flag OZaF1bk indicating the presence / absence of the detection of the previous first point, and the latest first point is substituted for the X coordinate value OZaX1bk of the previous first point. The X coordinate value OZaX1 is substituted, and the latest first Y coordinate OZaY1 is substituted for the previous first Y coordinate value OZaY1bk. Similarly, the flag OZaF2 indicating whether or not the latest second point is detected is substituted for the flag OZaF2bk indicating whether or not the previous second point is detected, and the latest second point is assigned to the previous X coordinate value OZaX2bk. X coordinate value OZaX2 is substituted, and the latest second Y coordinate value OZaY2 is substituted for the previous second Y coordinate value OZaY2bk.
前回検出座標値情報の更新後、ステップP17からステップP2に進む。ステップP2〜ステップP17の処理は、時間経過に伴って、適宜繰り返される。 After updating the previously detected coordinate value information, the process proceeds from step P17 to step P2. The processing of Step P2 to Step P17 is repeated as appropriate with the passage of time.
以上の処理によって、本実施形態の座標出力装置1は、操作面10内の指示された点の座標を、周期的に検出することができる。また本実施形態の座標出力装置1は、最新の検出座標値情報OZにおいて1点目および2点目の少なくとも一方が検出されていれば、検出された点について局所スキャン処理を行う。このため、線描画動作やジェスチャ動作など、指示状態移行後に指示状態を保ったまま指示される点が操作面10内を移動する状況下において、操作面10内の指示された点の座標の検出処理を簡略化して、検出時間を短縮することができる。
Through the above processing, the coordinate
図5Aおよび図5Bは、本実施形態の座標出力装置1の制御部12が実行する図4Aおよび図4Bの座標検出処理内で実行される全体スキャン処理を説明するためのフローチャートである。全体スキャン処理は、図4Aおよび図4Bの画像検出処理内において、ステップP3とステップP10とステップP15で実行される。
5A and 5B are flowcharts for explaining the entire scan process executed in the coordinate detection process of FIGS. 4A and 4B executed by the
全体スキャン処理が実行されると、ステップA0からステップA1に進む。ステップA1において、全体スキャン処理に係る各種の変数やバッファが初期化される。すなわち、X軸用カウンタXおよびY軸用カウンタYに最小値である「0」が代入され、かつ、X座標保持用の仮変数TmpXにX座標の最小値である「−0xffff」が代入され、およびY座標保持用の仮変数TmpYにY座標の最小値である「−0yffff」が代入される。図5Aおよび図5Bの例では、X座標の小さいほうから大きいほうへ、Y座標の小さいほうから大きいほうへ、それぞれスキャンが成されるので、初期値が最小値になっている。 When the entire scan process is executed, the process proceeds from step A0 to step A1. In step A1, various variables and buffers related to the entire scan process are initialized. That is, “0” that is the minimum value is assigned to the X-axis counter X and Y-axis counter Y, and “−0xffff” that is the minimum value of the X coordinate is assigned to the temporary variable TmpX for holding the X coordinate. , And “−0 yffff”, which is the minimum value of the Y coordinate, is assigned to the temporary variable TmpY for holding the Y coordinate. In the example of FIGS. 5A and 5B, the scan is performed from the smaller X coordinate to the larger X coordinate and from the smaller Y coordinate to the larger Y coordinate, so the initial value is the minimum value.
なお、本実施形態の座標出力装置1において、X座標値およびY座標値は、線状に配置されるX軸発光素子31およびY軸発光素子33の一端からの行番号および列番号に相当する。すなわち、X番目のX軸発光素子31およびX軸受光素子32の間とY番目のY軸発光素子33およびY軸受光素子34の間とに介在される点のXY2次元座標が(X,Y)と表記される。
In the coordinate
ステップA2〜ステップA9は、操作面10に指示される点のX座標を検出するための処理である。
Steps A <b> 2 to A <b> 9 are processes for detecting the X coordinate of the point designated on the
ステップA2において、X軸用カウンタXの最新値が、X軸発光素子31の総数未満であるか否かが判断される。X軸用カウンタXの最新値がX軸発光素子31の総数未満であれば、ステップA2からステップA3に進む。
In step A2, it is determined whether or not the latest value of the X-axis counter X is less than the total number of X-axis
ステップA3において、座標検出装置の制御部12が、発光制御部35に、X軸カウンタXの最新値と同数番目のX軸発光素子31を点灯させる。次いで、ステップA4において、座標検出装置の制御部12が、受光制御部36を介して、X軸カウンタXの最新値と同数番目のX軸受光素子32の受光値を取得する。
In step A <b> 3, the
ステップA5において、X番目のX軸受光素子32の受光値が予め定める基準値より小さいか否かが判断される。X番目のX軸受光素子32の受光値が基準値未満である場合、X番目のX軸発光素子31とX番目のX軸受光素子32との間に、X番目のX軸発光素子31からの光を遮断する遮光物が存在すると判断される。すなわち、X番目のX軸受光素子32の受光値が基準値未満である場合、X番目のX軸発光素子31とX番目のX軸受光素子32との間に、操作面10内の点を指示するための指示具が介在されると判断される。この場合、X軸カウンタXの最新値が、遮光物39が指示する点のX座標に相当する。X番目のX軸受光素子32の受光値が基準値未満である場合、ステップA5からステップA6に進む。
In step A5, it is determined whether or not the light reception value of the Xth X bearing
ステップA6において、最新の検出座標値情報OZの1点目が検出済である場合、X軸カウンタXの最新値が、最新の検出座標値情報OZの1点目のX座標と同等であるか否かが判断される。すなわち、最新の検出座標値情報OZの1点目の検出の有無を示すフラグOZaF1が検出済を示す「1」であり、かつ、X軸カウンタXの最新値が最新の検出座標値情報OZの1点目のX座標OZaX1と同等であるか否かが判断される。図5Aの例では、検出誤差などを防ぐために、所定のマージンを考慮して、具体的に、X軸カウンタXの最新値が、最新の検出座標値情報OZの1点目のX座標OZaX1よりもマージン分だけ小さい数を超過し、かつ、最新の検出座標値情報OZの1点目のX座標OZaX1よりもマージン分だけ大きい小さい数未満であるか否かが判断される。図5Aの例では、マージンは「3」である。 In step A6, if the first point of the latest detected coordinate value information OZ has been detected, is the latest value of the X-axis counter X equivalent to the first X coordinate of the latest detected coordinate value information OZ? It is determined whether or not. That is, the flag OZaF1 indicating the presence / absence of detection of the first point of the latest detected coordinate value information OZ is “1” indicating detection, and the latest value of the X-axis counter X is the latest detected coordinate value information OZ. It is determined whether or not it is equivalent to the first X coordinate OZaX1. In the example of FIG. 5A, in order to prevent detection errors and the like, in consideration of a predetermined margin, specifically, the latest value of the X-axis counter X is greater than the first X coordinate OZaX1 of the latest detected coordinate value information OZ. It is also determined whether or not the number is smaller than the smaller number by the margin and less than the smaller number larger by the margin than the first X coordinate OZaX1 of the latest detected coordinate value information OZ. In the example of FIG. 5A, the margin is “3”.
ステップA6において、最新の検出座標値情報OZの1点目の検出の有無を示すフラグOZaF1が「0」である場合、X軸カウンタXの最新値が最新の検出座標値情報OZの1点目のX座標OZaX1よりもマージン分だけ小さい数以下である場合、および、X軸カウンタXの最新値が最新の検出座標値情報OZの1点目のX座標OZaX1よりもマージン分だけ大きい小さい数以上である場合、いずれの場合であっても、X軸カウンタXの最新値が最新の検出座標値情報OZの1点目のX座標OZaX1とは異なる値であると判断される。この場合、ステップA6からステップA7に進む。 In step A6, when the flag OZaF1 indicating the presence / absence of detection of the first point of the latest detected coordinate value information OZ is “0”, the latest value of the X-axis counter X is the first point of the latest detected coordinate value information OZ. If the X coordinate OZaX1 is less than the number smaller than the margin, and the latest value of the X-axis counter X is smaller than the smaller number larger than the first X coordinate OZaX1 of the latest detected coordinate value information OZ In any case, it is determined that the latest value of the X-axis counter X is different from the first X coordinate OZaX1 of the latest detected coordinate value information OZ. In this case, the process proceeds from step A6 to step A7.
ステップA7において、最新の検出座標値情報OZの2点目が検出済である場合、X軸カウンタXの最新値が、最新の検出座標値情報OZの2点目のX座標と同等であるか否かが判断される。すなわち、最新の検出座標値情報OZの2点目の検出の有無を示すフラグOZaF2が検出済を示す「1」であり、かつ、X軸カウンタXの最新値が最新の検出座標値情報OZの2点目のX座標OZaX2と同等であるか否かが判断される。図5Aの例では、ステップA7の処理は、ステップA6と同様に、検出誤差などを防ぐために、所定のマージンを考慮している。図5Aの例では、マージンは「3」である。 In step A7, if the second point of the latest detected coordinate value information OZ has been detected, is the latest value of the X-axis counter X equivalent to the second X coordinate of the latest detected coordinate value information OZ? It is determined whether or not. That is, the flag OZaF2 indicating the presence or absence of detection of the second point of the latest detected coordinate value information OZ is “1” indicating detection, and the latest value of the X-axis counter X is the latest detected coordinate value information OZ. It is determined whether or not it is equivalent to the second X coordinate OZaX2. In the example of FIG. 5A, the process of step A7 considers a predetermined margin in order to prevent detection errors and the like, similarly to step A6. In the example of FIG. 5A, the margin is “3”.
ステップA7において、最新の検出座標値情報OZの2点目の検出の有無を示すフラグOZaF2が「0」である場合、X軸カウンタXの最新値が最新の検出座標値情報OZの2点目のX座標OZaX2よりもマージン分だけ小さい数以下である場合、および、X軸カウンタXの最新値が最新の検出座標値情報OZの2点目のX座標OZaX2よりもマージン分だけ大きい小さい数以上である場合、いずれの場合であっても、X軸カウンタXの最新値が最新の検出座標値情報OZの2点目のX座標OZaX2とは異なる値であると判断される。この場合、ステップA7からステップA8に進む。 In step A7, when the flag OZaF2 indicating the presence / absence of detection of the second point of the latest detected coordinate value information OZ is “0”, the latest value of the X-axis counter X is the second point of the latest detected coordinate value information OZ. If the X coordinate OZaX2 is less than the number smaller than the margin, and the latest value of the X-axis counter X is smaller than the smaller number larger than the second X coordinate OZaX2 of the latest detected coordinate value information OZ In any case, it is determined that the latest value of the X-axis counter X is different from the second X coordinate OZaX2 of the latest detected coordinate value information OZ. In this case, the process proceeds from step A7 to step A8.
ステップA8に判断がいたる場合、X軸カウンタXの最新値と同等のX番目のX軸発光素子31およびX軸受光素子32の間に遮光物39が存在し、かつ、X軸カウンタXの最新値が最新の検出座標値情報OZの1点目および2点目のX座標OZaX1,OZaX2と異なる。この結果、X軸カウンタの最新値が新しく指示された点のX座標であると判断されるので、座標保持用の仮変数TmpXにX軸カウンタの最新値が代入される。代入後、ステップA2〜ステップA9のX座標の検出処理が終了し、ステップA8からステップA10に進む。
When the determination is made in step A8, the
前述のステップA5において、X番目のX軸受光素子32の受光値が基準値以上である場合、X番目のX軸発光素子31とX番目のX軸受光素子32との間に遮光物39がないと判断される。この場合、ステップA5からステップA9に進む。
In step A5 described above, when the light reception value of the Xth X-bearing
また前述のステップA6において、最新の検出座標値情報OZの1点目の検出の有無を示すフラグOZaF1が「1」であり、さらに、X軸カウンタXの最新値が、最新の検出座標値情報OZの1点目のX座標OZaX1よりもマージン分だけ小さい数を超過し、かつ、最新の検出座標値情報OZの1点目のX座標OZaX1よりもマージン分だけ大きい小さい数未満である場合、X番目のX軸発光素子31とX番目のX軸受光素子32との間に遮光物39が存在するが、X軸カウンタXの最新値が最新の検出座標値情報OZの1点目のX座標OZaX1と同等であると判断される。この場合、ステップA6からステップA9に進む。
In step A6, the flag OZaF1 indicating whether or not the first point of the latest detected coordinate value information OZ is detected is “1”, and the latest value of the X-axis counter X is the latest detected coordinate value information. When the number smaller than the first X coordinate OZaX1 of OZ by the margin is exceeded and less than the smaller number larger by the margin than the first X coordinate OZaX1 of the latest detected coordinate value information OZ, A
さらにまた前述のステップA7において、最新の検出座標値情報OZの2点目の検出の有無を示すフラグOZaF2が「1」であり、さらに、X軸カウンタXの最新値が、最新の検出座標値情報OZの2点目のX座標OZaX2よりもマージン分だけ小さい数を超過し、かつ、最新の検出座標値情報OZの2点目のX座標OZaX2よりもマージン分だけ大きい小さい数未満である場合、X番目のX軸発光素子31とX番目のX軸受光素子32との間に遮光物39が存在するが、X軸カウンタXの最新値が最新の検出座標値情報OZの2点目のX座標OZaX2と同等であると判断される。この場合、ステップA7からステップA9に進む。
In step A7, the flag OZaF2 indicating whether or not the second point of the latest detected coordinate value information OZ is detected is “1”, and the latest value of the X-axis counter X is the latest detected coordinate value. When the number smaller than the second X coordinate OZaX2 of the information OZ by the margin is exceeded and less than the smaller number larger by the margin than the second X coordinate OZaX2 of the latest detected coordinate value information OZ The
ステップA9において、X軸カウンタXの最新値に1が加算されて、加算結果がX軸カウンタXに代入される。すなわち、X軸カウンタXが1だけインクリメントされる。X軸カウンタX更新後、ステップA9からステップA2に戻り、更新後のX軸カウンタXの最新値を用いて、ステップA2〜ステップA9の処理が実行される。ステップA2〜ステップA9のX座標検出処理は、ステップA8で座標保持用の仮変数TmpXが更新されるまで、またはステップA2でX軸カウンタXの最新値がX軸発光素子31の総数を超えるまで、繰返される。
In step A9, 1 is added to the latest value of the X-axis counter X, and the addition result is substituted into the X-axis counter X. That is, the X-axis counter X is incremented by 1. After updating the X-axis counter X, the process returns from step A9 to step A2, and the processing of steps A2 to A9 is executed using the latest value of the updated X-axis counter X. The X coordinate detection process of Step A2 to Step A9 is performed until the temporary variable TmpX for holding coordinates is updated in Step A8 or until the latest value of the X axis counter X exceeds the total number of X axis
前述のステップA2において、X軸用カウンタXの最新値がX軸発光素子31の総数を超えている場合、X軸発光素子31およびX軸受光素子32の全ての対において遮光物39の有無の判定が完了したと判断される。この場合、ステップA2〜ステップA9のX座標の検出処理が終了し、ステップA2からステップA10に進む。
When the latest value of the X-axis counter X exceeds the total number of the X-axis
ステップA10〜ステップA17は、操作面10に指示される点のY座標を検出するための処理である。Y座標検出処理の各ステップA10〜ステップA17は、X座標検出処理の各ステップA2〜ステップA9と比較して、X座標をY座標に置換えればほぼ同等であるため、詳細説明は省略することがある。
Steps A <b> 10 to A <b> 17 are processes for detecting the Y coordinate of the point indicated on the
ステップA10において、Y軸用カウンタYの最新値が、Y軸発光素子33の総数未満であるか否かが判断される。Y軸用カウンタYの最新値がY軸発光素子33の総数未満であれば、ステップA10からステップA11に進む。
In step A10, it is determined whether or not the latest value of the Y-axis counter Y is less than the total number of Y-axis
ステップA11において、座標検出装置の制御部12が、発光制御部35に、Y軸カウンタYの最新値と同数番目のY軸発光素子33を点灯させる。次いで、ステップA12において、座標検出装置の制御部12が、受光制御部36を介して、Y軸カウンタYの最新値と同数番目のY軸受光素子34の受光値を取得する。
In step A11, the
ステップA13において、Y番目のY軸受光素子34の受光値が予め定める所定値より小さいか否かが判断される。Y番目のY軸受光素子34の受光値が予め定める基準値未満である場合、Y番目のY軸発光素子33とY番目のY軸受光素子34との間に、Y番目のY軸発光素子33からの光を遮断する遮光物39が存在すると判断される。この場合、Y軸カウンタYの最新値が、遮光物39が指示する点のY座標に相当する。なお、ステップA5の基準値と、ステップA13の基準値とは、同等であってもよく、X軸およびY軸それぞれで異なっていても良い。Y番目のY軸受光素子34の受光値が基準値未満である場合、ステップA13からステップA14に進む。
In step A13, it is determined whether or not the light reception value of the Yth Y bearing
ステップA14において、最新の検出座標値情報OZの1点目が検出済である場合、Y軸カウンタYの最新値が、最新の検出座標値情報OZの1点目のY座標と同等であるか否かが判断される。すなわち、最新の検出座標値情報OZの1点目の検出の有無を示すフラグOZaF1が検出済を示す「1」であり、かつ、Y軸カウンタYの最新値が最新の検出座標値情報OZの1点目のY座標OZaY1と同等であるか否かが判断される。図5Aの例では、検出誤差などを防ぐために、所定のマージンを考慮して、具体的に、Y軸カウンタYの最新値が、最新の検出座標値情報OZの1点目のY座標OZaY1よりもマージン分だけ小さい数を超過し、かつ、最新の検出座標値情報OZの1点目のY座標OZaY1よりもマージン分だけ大きい小さい数未満であるか否かが判断される。図5Aの例では、マージンは「3」である。 In step A14, if the first point of the latest detected coordinate value information OZ has been detected, is the latest value of the Y-axis counter Y equal to the first Y coordinate of the latest detected coordinate value information OZ? It is determined whether or not. That is, the flag OZaF1 indicating the presence or absence of detection of the first point of the latest detected coordinate value information OZ is “1” indicating detection, and the latest value of the Y-axis counter Y is the latest detected coordinate value information OZ. It is determined whether or not it is equivalent to the first Y coordinate OZaY1. In the example of FIG. 5A, in order to prevent detection errors and the like, in consideration of a predetermined margin, specifically, the latest value of the Y-axis counter Y is greater than the first Y coordinate OZaY1 of the latest detected coordinate value information OZ. It is also determined whether or not the number is smaller than the smaller number by the margin and less than the smaller number larger by the margin than the first Y coordinate OZaY1 of the latest detected coordinate value information OZ. In the example of FIG. 5A, the margin is “3”.
ステップA14において、最新の検出座標値情報OZの1点目の検出の有無を示すフラグOZaF1が「0」である場合、Y軸カウンタYの最新値が最新の検出座標値情報OZの1点目のY座標OZaY1よりもマージン分だけ小さい数以下である場合、および、Y軸カウンタYの最新値が最新の検出座標値情報OZの1点目のY座標OZaY1よりもマージン分だけ大きい小さい数以上である場合、いずれの場合であっても、Y軸カウンタYの最新値が最新の検出座標値情報OZの1点目のY座標OZaY1とは異なる値であると判断される。この場合、ステップA14からステップA15に進む。 In step A14, when the flag OZaF1 indicating whether or not the first point of the latest detected coordinate value information OZ is detected is “0”, the latest value of the Y-axis counter Y is the first point of the latest detected coordinate value information OZ. Or less than a number that is smaller than the Y coordinate OZaY1 by the margin, or more than a smaller number that is larger by the margin than the first Y coordinate OZaY1 of the first detected coordinate value information OZ. In any case, it is determined that the latest value of the Y-axis counter Y is different from the first Y coordinate OZaY1 of the latest detected coordinate value information OZ. In this case, the process proceeds from step A14 to step A15.
ステップA15において、最新の検出座標値情報OZの2点目が検出済である場合、Y軸カウンタYの最新値が、最新の検出座標値情報OZの2点目のY座標と同等であるか否かが判断される。すなわち、最新の検出座標値情報OZの2点目の検出の有無を示すフラグOZaF2が検出済を示す「1」であり、かつ、Y軸カウンタYの最新値が最新の検出座標値情報OZの2点目のY座標OZaY2と同等であるか否かが判断される。図5Aの例では、ステップA15の処理は、ステップA14と同様に、検出誤差などを防ぐために、所定のマージンを考慮いる。図5Aの例では、マージンは「3」である。 If the second point of the latest detected coordinate value information OZ has been detected in step A15, is the latest value of the Y-axis counter Y equal to the second Y coordinate of the latest detected coordinate value information OZ? It is determined whether or not. That is, the flag OZaF2 indicating the presence / absence of detection of the second point of the latest detected coordinate value information OZ is “1” indicating detection, and the latest value of the Y-axis counter Y is the latest detected coordinate value information OZ. It is determined whether or not it is equivalent to the second Y coordinate OZaY2. In the example of FIG. 5A, the process of step A15 considers a predetermined margin in order to prevent detection errors and the like, similarly to step A14. In the example of FIG. 5A, the margin is “3”.
ステップA15において、最新の検出座標値情報OZの2点目の検出の有無を示すフラグOZaF2が「0」である場合、Y軸カウンタYの最新値が最新の検出座標値情報OZの2点目のY座標OZaY2よりもマージン分だけ小さい数以下である場合、および、Y軸カウンタYの最新値が最新の検出座標値情報OZの2点目のY座標OZaY2よりもマージン分だけ大きい小さい数以上である場合、いずれの場合であっても、Y軸カウンタYの最新値が最新の検出座標値情報OZの2点目のY座標OZaY2とは異なる値であると判断される。この場合、ステップA15からステップA16に進む。 In step A15, when the flag OZaF2 indicating whether or not the second point of the latest detected coordinate value information OZ is detected is “0”, the latest value of the Y-axis counter Y is the second point of the latest detected coordinate value information OZ. If the Y coordinate OZaY2 is less than the number smaller than the margin, and the latest value of the Y-axis counter Y is smaller than the smaller number larger than the second Y coordinate OZaY2 of the latest detected coordinate value information OZ In any case, it is determined that the latest value of the Y-axis counter Y is different from the second Y coordinate OZaY2 of the latest detected coordinate value information OZ. In this case, the process proceeds from step A15 to step A16.
ステップA16に判断が至る場合、Y軸カウンタYの最新値がと同等のY番目のY軸発光素子33およびY軸受光素子34の間に遮光物39が存在し、かつ、Y軸カウンタYの最新値が最新の検出座標値情報OZの1点目および2点目のY座標OZaY1,OZaY2と異なる。この結果、Y軸カウンタの最新値が新しく指示された点のY座標であると判断されるので、Y座標保持用の仮変数TmpYにY軸カウンタの最新値が代入される。代入後、ステップA10〜ステップA17のY座標の検出処理が終了し、ステップA16からステップA18に進む。
When the determination is made at step A16, there is a
前述のステップA5において、Y番目のY軸受光素子34の受光値が基準値以上である場合、Y番目のY軸発光素子33とY番目のY軸受光素子34との間に遮光物39がないと判断される。この場合、ステップA13からステップA17に進む。
In step A5 described above, when the light reception value of the Y-th Y-bearing
また前述のステップA14において、最新の検出座標値情報OZの1点目の検出の有無を示すフラグOZaF1が「1」であり、さらに、Y軸カウンタYの最新値が、最新の検出座標値情報OZの1点目のY座標OZaY1よりもマージン分だけ小さい数を超過し、かつ、最新の検出座標値情報OZの1点目のY座標OZaY1よりもマージン分だけ大きい小さい数未満である場合、Y番目のY軸発光素子33とY番目のY軸受光素子34との間に遮光物39が存在するが、Y軸カウンタYの最新値が最新の検出座標値情報OZの1点目のY座標OZaY1と同等であると判断される。この場合、ステップA14からステップA17に進む。
In step A14, the flag OZaF1 indicating whether or not the first point of the latest detected coordinate value information OZ is detected is “1”, and the latest value of the Y-axis counter Y is the latest detected coordinate value information. When the number smaller than the first Y coordinate OZaY1 of OZ by a margin is exceeded and less than the smaller number larger by the margin than the first Y coordinate OZaY1 of the latest detected coordinate value information OZ, A
さらにまた前述のステップA15において、最新の検出座標値情報OZの2点目の検出の有無を示すフラグOZaF2が「1」であり、さらに、Y軸カウンタYの最新値が、最新の検出座標値情報OZの2点目のY座標OZaY2よりもマージン分だけ小さい数を超過し、かつ、最新の検出座標値情報OZの2点目のY座標OZaY2よりもマージン分だけ大きい小さい数未満である場合、Y番目のY軸発光素子33とY番目のY軸受光素子34との間に遮光物39が存在するが、Y軸カウンタYの最新値が最新の検出座標値情報OZの2点目のY座標OZaY2と同等であると判断される。この場合、ステップA15からステップA17に進む。
In step A15, the flag OZaF2 indicating whether or not the second point of the latest detected coordinate value information OZ is detected is “1”, and the latest value of the Y-axis counter Y is the latest detected coordinate value. When the number is smaller by a margin than the second Y coordinate OZaY2 of the information OZ and is less than the smaller number larger by the margin than the second Y coordinate OZaY2 of the latest detected coordinate value information OZ The
ステップA17において、Y軸カウンタYが1だけインクリメントされる。Y軸カウンタY更新後、ステップA17からステップA10に戻り、更新後のY軸カウンタYの最新値を用いて、ステップA10〜ステップA17の処理が実行される。ステップA10〜ステップA17のY座標検出処理は、ステップA16でY座標保持用の仮変数TmpYが更新されるまで、またはステップA10でY軸カウンタYの最新値がY軸発光素子33の総数を超えるまで、繰返される。
In step A17, the Y-axis counter Y is incremented by 1. After the Y-axis counter Y is updated, the process returns from step A17 to step A10, and the processes from step A10 to step A17 are executed using the latest value of the updated Y-axis counter Y. The Y-coordinate detection process in steps A10 to A17 is performed until the temporary variable TmpY for holding the Y-coordinate is updated in step A16 or the latest value of the Y-axis counter Y exceeds the total number of Y-axis
前述のステップA10において、Y軸用カウンタYの最新値がY軸発光素子33の総数を超えている場合、Y軸発光素子33およびY軸受光素子34の全ての対において遮光物39の有無の判定が完了したと判断される。この場合、ステップA10〜ステップA17のY座標の検出処理が終了し、ステップA10からステップA18に進む。
If the latest value of the Y-axis counter Y exceeds the total number of Y-axis
ステップA18〜ステップA31は、X座標保持用の仮変数TmpXおよびY座標保持用の仮変数TmpYと最新の検出座標値情報OZとに基づき、最新の検出座標値情報OZを更新する。 Steps A18 to A31 update the latest detected coordinate value information OZ based on the temporary variable TmpX for holding the X coordinate, the temporary variable TmpY for holding the Y coordinate, and the latest detected coordinate value information OZ.
ステップA18において、最新の検出座標値情報OZの1点目および2点目の両方が検出済であるか否かが判断される。すなわち、最新の検出座標値情報OZの1点目の検出の有無を示すフラグOZaF1および2点目の検出の有無を示すフラグOZaF2の両方が検出有りを示す「1」であるか否かが判断される。最新の検出座標値情報OZの1点目および2点目の検出の有無を示すフラグOZaF1,OZaF2の少なくとも一方が検出無しを示す「0」である場合、ステップA18からステップA19に進む。 In step A18, it is determined whether or not both the first point and the second point of the latest detected coordinate value information OZ have been detected. That is, it is determined whether or not both the flag OZaF1 indicating the presence / absence of detection of the first point of the latest detected coordinate value information OZ and the flag OZaF2 indicating the presence / absence of detection of the second point are “1” indicating the presence of detection. Is done. When at least one of the flags OZaF1 and OZaF2 indicating the presence / absence of detection of the first and second points of the latest detected coordinate value information OZ is “0” indicating no detection, the process proceeds from step A18 to step A19.
ステップA19において、最新の検出座標値情報OZの1点目および2点目の両方が未検出であるか否かが判断される。すなわち、最新の検出座標値情報OZの1点目の検出の有無を示すフラグOZaF1および2点目の検出の有無を示すフラグOZaF2の両方が検出無しを示す「0」であるか否かが判断される。最新の検出座標値情報OZの1点目および2点目の検出の有無を示すフラグOZaF1,OZaF2の両方が「0」である場合、ステップA19からステップA20に進む。 In step A19, it is determined whether or not both the first point and the second point of the latest detected coordinate value information OZ are undetected. That is, it is determined whether or not both the flag OZaF1 indicating the presence / absence of detection of the first point of the latest detected coordinate value information OZ and the flag OZaF2 indicating the presence / absence of detection of the second point are “0” indicating no detection. Is done. When both the flags OZaF1 and OZaF2 indicating the presence / absence of detection of the first point and the second point of the latest detected coordinate value information OZ are “0”, the process proceeds from step A19 to step A20.
ステップA20において、X軸発光素子31およびX軸受光素子32の対とY軸発光素子33およびY軸受光素子34の対との両方の間で、遮光物39が検出されているか否かが判断される。すなわち、X座標保持用の仮変数TmpXが初期値0xffffと一致せず、かつ、Y座標保持用の仮変数TmpYが初期値0yffffと一致しないか否かが判断される。両仮変数TmpX,TmpYが初期値0xffff,0yffffと一致しない場合、遮光物39が検出されていると判断され、ステップA20からステップA23に進む。
In step A20, it is determined whether or not the
前述のステップA19において、最新の検出座標値情報OZの1点目および2点目の検出の有無を示すフラグOZaF1,OZaF2のうちの片方だけが検出無しを示す「0」である場合、ステップA19からステップA21に進む。 When only one of the flags OZaF1 and OZaF2 indicating the presence / absence of detection of the first point and the second point of the latest detected coordinate value information OZ is “0” indicating no detection in step A19 described above, step A19 is performed. To step A21.
ステップA21において、最新の検出座標値情報OZの1点目が検出済であるか否かが判断される。すなわち、最新の検出座標値情報OZの1点目の検出の有無を示すフラグOZaF1が検出有りを示す「1」であるか否かが判断される。最新の検出座標値情報OZの1点目の検出の有無を示すフラグOZaF1が「0」である場合、1点目が未検出であるので、ステップA21からステップA22に進む。 In step A21, it is determined whether or not the first point of the latest detected coordinate value information OZ has been detected. That is, it is determined whether or not the flag OZaF1 indicating the presence / absence of detection of the first point of the latest detected coordinate value information OZ is “1” indicating the presence of detection. If the flag OZaF1 indicating the presence / absence of detection of the first point of the latest detected coordinate value information OZ is “0”, the first point is not detected, and the process proceeds from step A21 to step A22.
ステップA22において、ステップA20と同様に、X座標保持用の仮変数TmpXが初期値0xffffと一致せず、かつ、Y座標保持用の仮変数TmpYが初期値0yffffと一致しないか否かが判断される。両仮変数TmpX,TmpYが初期値0xffff,0yffffと一致しない場合、遮光物39が検出されていると判断され、ステップA22からステップA23に進む。
In step A22, as in step A20, it is determined whether the temporary variable TmpX for holding the X coordinate does not match the initial value 0xffff, and whether the temporary variable TmpY for holding the Y coordinate does not match the initial value 0yffff. The When both temporary variables TmpX and TmpY do not coincide with the initial values 0xffff and 0yffff, it is determined that the
ステップA23において、最新の検出座標値情報OZの1点目のX座標OZaX1にX座標保持用の仮変数TmpXの最新値が代入され、最新の検出座標値情報OZの1点目のY座標OZaY1にY座標保持用の仮変数TmpYの最新値が代入される。かつ、最新の検出座標値情報OZの1点目の検出の有無を示すフラグOZaF1に、検出有りを示す「1」が代入される。最新の検出座標値情報OZの更新後、ステップA23からステップA32に進み、図5Aおよび図5Bの全体スキャン処理が終了する。この結果、最新の検出座標値情報OZの1点目のX座標およびY座標が、最新の検出結果に応じて更新される。 In step A23, the latest value of the temporary variable TmpX for holding the X coordinate is substituted into the first X coordinate OZaX1 of the latest detected coordinate value information OZ, and the first Y coordinate OZaY1 of the latest detected coordinate value information OZ. Is assigned the latest value of the temporary variable TmpY for holding the Y coordinate. In addition, “1” indicating the presence of detection is assigned to the flag OZaF1 indicating the presence / absence of detection of the first point of the latest detected coordinate value information OZ. After the latest detected coordinate value information OZ is updated, the process proceeds from step A23 to step A32, and the entire scan process in FIGS. 5A and 5B is completed. As a result, the first X coordinate and Y coordinate of the latest detected coordinate value information OZ are updated according to the latest detection result.
前述したステップA22において、X座標保持用の仮変数TmpXおよびY座標保持用の仮変数TmpYの少なくとも一方が初期値0xffff,0yffffと一致する場合、ステップA22からステップA24に進む。 In step A22 described above, when at least one of the temporary variable TmpX for holding the X coordinate and the temporary variable TmpY for holding the Y coordinate matches the initial values 0xffff and 0yffff, the process proceeds from step A22 to step A24.
ステップA24において、X軸発光素子31およびX軸受光素子32の対の間で、遮光物が検出されていないか否かが判断される。すなわち、X座標保持用の仮変数TmpXが初期値0xffffと一致するか否かが判断される。X座標保持用の仮変数TmpXが初期値0xffffと一致する場合、ステップA24からステップA25に進む。またX座標保持用の仮変数TmpXが初期値0xffffと一致しない場合、ステップA24からステップA26に進む。
In step A24, it is determined whether or not a light-shielding object is detected between the pair of the X-axis
ステップA25において、最新の検出座標値情報OZの1点目のX座標OZaX1に最新の検出座標値情報OZの2点目のX座標OZaX2が代入され、最新の検出座標値情報OZの1点目のY座標OZaY1にY座標保持用の仮変数TmpYの最新値が代入される。かつ、最新の検出座標値情報OZの1点目の検出の有無を示すフラグOZaF1に、検出有りを示す「1」が代入される。 In step A25, the second X coordinate OZaX2 of the latest detected coordinate value information OZ is substituted for the first X coordinate OZaX1 of the latest detected coordinate value information OZ, and the first point of the latest detected coordinate value information OZ. The latest value of the temporary variable TmpY for holding the Y coordinate is substituted into the Y coordinate OZaY1. In addition, “1” indicating the presence of detection is assigned to the flag OZaF1 indicating the presence / absence of detection of the first point of the latest detected coordinate value information OZ.
ステップA26において、最新の検出座標値情報OZの1点目のX座標OZaX1にX座標保持用の仮変数TmpXの最新値が代入され、最新の検出座標値情報OZの1点目のY座標OZaY1に最新の検出座標値情報OZの2点目のY座標OZaY2が代入される。かつ、最新の検出座標値情報OZの1点目の検出の有無を示すフラグOZaF1に、検出有りを示す「1」が代入される。 In step A26, the latest value of the X coordinate holding temporary variable TmpX is substituted into the first X coordinate OZaX1 of the latest detected coordinate value information OZ, and the first Y coordinate OZaY1 of the latest detected coordinate value information OZ. Is substituted with the second Y coordinate OZaY2 of the latest detected coordinate value information OZ. In addition, “1” indicating the presence of detection is assigned to the flag OZaF1 indicating the presence / absence of detection of the first point of the latest detected coordinate value information OZ.
最新の検出座標値情報OZの更新後、ステップA25およびステップA26からステップA32に進み、図5Aおよび図5Bの全体スキャン処理が終了する。この結果、最新の検出座標値情報OZの1点目のX座標およびY座標が、最新の検出結果および最新の検出座標値情報OZの2点目のX座標およびY座標に応じて更新される。 After the latest detected coordinate value information OZ is updated, the process proceeds from step A25 and step A26 to step A32, and the whole scan process of FIGS. 5A and 5B is completed. As a result, the first X coordinate and Y coordinate of the latest detected coordinate value information OZ are updated according to the latest detection result and the second X coordinate and Y coordinate of the latest detected coordinate value information OZ. .
前述したステップA21において、最新の検出座標値情報OZの1点目の検出の有無を示すフラグOZaF1が「1」である場合、ステップA21からステップA27に進む。この場合、最新の検出座標値情報OZの1点目が検出されているので、X座標保持用の仮変数TmpXおよびY座標保持用の仮変数TmpYは、最新の検出座標値情報OZの2点目に代入される。 In step A21 described above, when the flag OZaF1 indicating the presence / absence of detection of the first point of the latest detected coordinate value information OZ is “1”, the process proceeds from step A21 to step A27. In this case, since the first point of the latest detected coordinate value information OZ is detected, the temporary variable TmpX for holding the X coordinate and the temporary variable TmpY for holding the Y coordinate are two points of the latest detected coordinate value information OZ. Assigned to the eye.
ステップA27において、ステップA20と同様に、X座標保持用の仮変数TmpXが初期値0xffffと一致せず、かつ、Y座標保持用の仮変数TmpYが初期値0yffffと一致しないか否かが判断される。両仮変数TmpX,TmpYがどちらも初期値0xffff,0yffffと一致しない場合、遮光物39が検出されていると判断され、ステップA27からステップA28に進む。
In step A27, as in step A20, it is determined whether or not the temporary variable TmpX for holding the X coordinate does not match the initial value 0xffff and whether the temporary variable TmpY for holding the Y coordinate does not match the initial value 0yffff. The If both temporary variables TmpX and TmpY do not coincide with the initial values 0xffff and 0yffff, it is determined that the
ステップA28において、最新の検出座標値情報OZの2点目のX座標OZaX2にX座標保持用の仮変数TmpXの最新値が代入され、最新の検出座標値情報OZの2点目のY座標OZaY2にY座標保持用の仮変数TmpYの最新値が代入される。かつ、最新の検出座標値情報OZの2点目の検出の有無を示すフラグOZaF2に、検出有りを示す「1」が代入される。最新の検出座標値情報OZの更新後、ステップA28からステップA32に進み、図5Aおよび図5Bの全体スキャン処理が終了する。この結果、最新の検出座標値情報OZの2点目のX座標およびY座標が、最新の検出結果に応じて更新される。 In step A28, the latest value of the temporary variable TmpX for holding the X coordinate is substituted into the second X coordinate OZaX2 of the latest detected coordinate value information OZ, and the second Y coordinate OZaY2 of the latest detected coordinate value information OZ. Is assigned the latest value of the temporary variable TmpY for holding the Y coordinate. In addition, “1” indicating the presence of detection is assigned to the flag OZaF2 indicating the presence / absence of detection of the second point of the latest detected coordinate value information OZ. After the latest detected coordinate value information OZ is updated, the process proceeds from step A28 to step A32, and the whole scan process of FIGS. 5A and 5B is completed. As a result, the X coordinate and the Y coordinate of the second point of the latest detected coordinate value information OZ are updated according to the latest detection result.
前述のステップA27において、X座標およびY座標保持用の仮変数TmpX,TmpYのうちの少なくとも一方が初期値0xffff,0yffffと一致する場合、ステップA27からステップA29に進む。 In step A27 described above, if at least one of the temporary variables TmpX and TmpY for holding the X coordinate and the Y coordinate matches the initial values 0xffff and 0yffff, the process proceeds from step A27 to step A29.
ステップA29において、ステップA24と同様に、X軸発光素子31およびX軸受光素子32の対の間で、遮光物39が検出されていないか否かが判断される。X座標保持用の仮変数TmpXが初期値0xffffと一致する場合、ステップA29からステップA30に進む。またX座標保持用の仮変数TmpXが初期値0xffffと一致しない場合、ステップA29からステップA31に進む。
In step A29, as in step A24, it is determined whether or not the
ステップA30において、最新の検出座標値情報OZの2点目のX座標OZaX2に最新の検出座標値情報OZの1点目のX座標OZaX1が代入され、最新の検出座標値情報OZの2点目のY座標OZaY2にY座標保持用の仮変数TmpYの最新値が代入される。かつ、最新の検出座標値情報OZの2点目の検出の有無を示すフラグOZaF2に、検出有りを示す「1」が代入される。 In step A30, the first X coordinate OZaX1 of the latest detected coordinate value information OZ is substituted for the second X coordinate OZaX2 of the latest detected coordinate value information OZ, and the second point of the latest detected coordinate value information OZ. The latest value of the temporary variable TmpY for holding the Y coordinate is substituted into the Y coordinate OZaY2. In addition, “1” indicating the presence of detection is assigned to the flag OZaF2 indicating the presence / absence of detection of the second point of the latest detected coordinate value information OZ.
ステップA31において、最新の検出座標値情報OZの2点目のX座標OZaX2にX座標保持用の仮変数TmpXの最新値が代入され、最新の検出座標値情報OZの2点目のY座標OZaY2に最新の検出座標値情報OZの1点目のY座標OZaY1が代入される。かつ、最新の検出座標値情報OZの2点目の検出の有無を示すフラグOZaF2に、検出有りを示す「1」が代入される。 In step A31, the latest value of the temporary variable TmpX for holding the X coordinate is substituted for the second X coordinate OZaX2 of the latest detected coordinate value information OZ, and the second Y coordinate OZaY2 of the latest detected coordinate value information OZ. Is substituted with the first Y coordinate OZaY1 of the latest detected coordinate value information OZ. In addition, “1” indicating the presence of detection is assigned to the flag OZaF2 indicating the presence / absence of detection of the second point of the latest detected coordinate value information OZ.
最新の検出座標値情報OZの更新後、ステップA30およびステップA31からステップA32に進み、図5Aおよび図5Bの全体スキャン処理が終了する。この結果、最新の検出座標値情報OZの2点目のX座標およびY座標が、最新の検出結果および最新の検出座標値情報OZの1点目のX座標およびY座標に応じて更新される。 After the latest detected coordinate value information OZ is updated, the process proceeds from step A30 and step A31 to step A32, and the entire scan process in FIGS. 5A and 5B is completed. As a result, the second X coordinate and Y coordinate of the latest detected coordinate value information OZ are updated according to the latest detected result and the first X coordinate and Y coordinate of the latest detected coordinate value information OZ. .
前述したステップA18において、最新の検出座標値情報OZの1点目および2点目の検出の有無を示すフラグOZaF1,OZaF2の両方が「1」である場合、ステップA18からステップA32に進んで、図5Aおよび図5Bの全体スキャン処理が終了する。この場合、ステップA1〜A16の検出結果は破棄される。 When both the flags OZaF1 and OZaF2 indicating the presence / absence of detection of the first point and the second point of the latest detected coordinate value information OZ are “1” in step A18 described above, the process proceeds from step A18 to step A32. The whole scan process of FIGS. 5A and 5B is completed. In this case, the detection results of steps A1 to A16 are discarded.
また前述したステップA20において、X座標保持用の仮変数TmpXおよびY座標保持用の仮変数TmpYの少なくとも一方が初期値0xffffと一致する場合、X軸発光素子31およびX軸受光素子32の対とY軸発光素子33およびY軸受光素子34の対との少なくとも一方で、遮光物39が検出されていないと判断される。この場合、ステップA20では1点目および2点目の両方が未検出なので、遮光物39が検出されない軸線の座標を確定できない。ゆえに、ステップA20からステップA32に進んで、図5Aおよび図5Bの全体スキャン処理が終了する。この場合も、ステップA1〜ステップA16の検出結果は破棄される。
In step A20, when at least one of the temporary variable TmpX for holding the X coordinate and the temporary variable TmpY for holding the Y coordinate matches the initial value 0xffff, the pair of the X-axis
以上の処理によって、本実施形態の座標出力装置1は、操作面10全体の検出結果に応じて、最新の検出座標値情報OZの1点目および2点目を更新することができる。
With the above processing, the coordinate
最新の検出座標値情報OZにおいて既に2点目の座標が検出されている状況下において、X軸発光素子31およびX軸受光素子32の対とY軸発光素子33およびY軸受光素子34の対とのうちのどちらか一方対でしか遮光物39が検出されていない場合、X軸およびY軸のうちの遮光物39が検出されていない軸側の座標が、検出済の2点目の前記検出されていない軸側座標と重なっていると想定される。ゆえに、ステップA24〜ステップA26の処理において、検出済の2点目の前記検出されていない軸側の座標を、最新の検出座標値情報OZの1点目の遮光物39が検出されなかった軸側の座標とみなして、該座標に代入している。
In a situation where the second coordinate is already detected in the latest detected coordinate value information OZ, a pair of the X-axis
同様に、最新の検出座標値情報OZにおいて既に1点目の座標が検出されている状況下において、X軸発光素子31およびX軸受光素子32の対とY軸発光素子33およびY軸受光素子34の対とのうちのどちらか一方対でしか遮光物39が検出されていない場合、X軸およびY軸のうちの遮光物39が検出されていない軸側の座標が、検出済の1点目の前記検出されていない軸側座標と重なっていると想定される。ゆえに、ステップA24〜ステップA26と同様に、ステップA29〜ステップA31の処理において、検出済の1点目の前記検出されていない軸側の座標を、最新の検出座標値情報OZの2点目の遮光物39が検出されなかった軸側の座標とみなして、該座標に代入している。
Similarly, in the situation where the first coordinate is already detected in the latest detected coordinate value information OZ, the pair of the X-axis
これらの結果、1点目と2点目とでX座標またはY座標が重複していても座標検出が可能となる。 As a result, even if the X coordinate or Y coordinate overlaps between the first point and the second point, coordinate detection is possible.
図6は、本実施形態の座標出力装置1の制御部12が実行する図4Aおよび図4Bの座標検出処理内で実行される1点目の局所スキャン処理を説明するためのフローチャートである。1点目の局所スキャン処理は、図4Aおよび図4Bの画像検出処理内において、ステップP8で実行される。
FIG. 6 is a flowchart for explaining a first local scan process executed in the coordinate detection process of FIGS. 4A and 4B executed by the
1点目の局所スキャン処理が実行されると、ステップC0からステップC1に進む。ステップC1において、1点目の局所スキャン処理に係る各種の変数やバッファが初期化される。すなわち、最新の検出座標値情報OZのうち、最新の1点目の検出の有無を示すフラグOZaF1、最新の1点目のX座標値OZaX1、および最新の1点目のY座標OZaY1に、初期値である「0」がそれぞれ代入される。周辺スキャン数用カウンタctにも、初期値「0」が代入される。X軸用カウンタXには、初期値として、前回の検出座標値情報OZbkの1点目のX座標OZaX1bkから予め定める周辺スキャン数の半分の値を減じた差「OZaX1bkー(周辺スキャン数)/2」が代入される。X軸およびY軸の周辺スキャン数は、局所スキャン処理において検出対象となる範囲30のX軸方向およびY軸方向それぞれの幅に相当する。図6の例では、X軸およびY軸の周辺スキャン数は相互に等しい。
When the first local scan process is executed, the process proceeds from step C0 to step C1. In step C1, various variables and buffers related to the first local scan process are initialized. That is, among the latest detected coordinate value information OZ, the flag OZaF1 indicating the presence / absence of detection of the latest first point, the latest X coordinate value OZaX1 of the first point, and the latest first Y coordinate OZaY1 are initialized. The value “0” is substituted respectively. The initial value “0” is also assigned to the peripheral scan number counter ct. In the X-axis counter X, as an initial value, a difference “OZaX1bk− (number of peripheral scans) / 2 "is substituted. The number of X-axis and Y-axis peripheral scans corresponds to the widths in the X-axis direction and Y-axis direction of the
ステップC2〜ステップC7は、最新の1点目のX座標値OZaX1を検出するためのX座標検出処理である。ステップC2において、周辺スキャン数用カウンタctの最新値が、周辺スキャン数未満であるか否かが判断される。周辺スキャン数用カウンタctの最新値が周辺スキャン数未満であれば、ステップC2からステップC3に進む。 Steps C2 to C7 are X coordinate detection processing for detecting the latest first X coordinate value OZaX1. In step C2, it is determined whether or not the latest value of the peripheral scan number counter ct is less than the peripheral scan number. If the latest value of the peripheral scan number counter ct is less than the peripheral scan number, the process proceeds from step C2 to step C3.
ステップC3において、図5AのステップA3と同様に、座標出力装置の制御部12が、発光制御部35に、X軸カウンタXの最新値と同数番目のX軸発光素子31を点灯させる。次いで、ステップC4において、図5AのステップA4と同様に、座標出力装置の制御部12が、受光制御部36を介して、X軸カウンタXの最新値と同数番目のX軸受光素子32の受光値を取得する。
In step C3, as in step A3 of FIG. 5A, the
ステップC5において、図5AのステップA5と同様に、X番目のX軸受光素子32の受光値が予め定める基準値未満であるか否かが判断される。ステップC5において、X番目のX軸受光素子32の受光値が基準値以上である場合、ステップC5からステップC6に進む。
In step C5, as in step A5 of FIG. 5A, it is determined whether or not the received light value of the Xth X-bearing
ステップC6において、周辺スキャン数用カウンタctの最新値に1が加算されて、加算結果が周辺スキャン数用カウンタctに代入される。すなわち、周辺スキャン数用カウンタctが1だけインクリメントされる。またステップC6において、図5AのステップA9と同様に、X軸カウンタXが1だけインクリメントされる。周辺スキャン数用カウンタctおよびX軸カウンタX更新後、ステップC6からステップC2に戻り、更新後のX軸カウンタXの最新値を用いて、ステップC2〜ステップC6の処理が実行される。 In step C6, 1 is added to the latest value of the peripheral scan number counter ct, and the addition result is substituted into the peripheral scan number counter ct. That is, the peripheral scan number counter ct is incremented by one. In step C6, the X-axis counter X is incremented by 1 as in step A9 in FIG. 5A. After updating the peripheral scan number counter ct and the X-axis counter X, the process returns from Step C6 to Step C2, and the processing of Step C2 to Step C6 is executed using the latest value of the updated X-axis counter X.
前述したステップC5において、X番目のX軸受光素子32の受光値が基準値未満である場合、ステップC5からステップC7に進む。この場合、X軸カウンタXの最新値と同等のX番目のX軸発光素子31およびX軸受光素子32の間に遮光物39が存在する。ゆえに、X軸カウンタXの最新値が新しく指示された点のX座標であると判断される。
In step C5 described above, when the light reception value of the Xth X-bearing
ステップC7において、最新の検出座標値情報OZの1点目のX座標値OZaX1に、X軸カウンタXの最新値が代入される。代入後、ステップC2〜ステップC7のX座標検出処理が終了し、ステップC7からステップC8に進む。ステップC2〜ステップC7のX座標検出処理は、ステップC7で最新の検出座標値情報OZの1点目のX座標値OZaX1が更新されるまで、またはステップC2で周辺スキャン数用カウンタctの最新値が周辺スキャン数を超えるまで、繰返される。 In step C7, the latest value of the X-axis counter X is substituted into the first X coordinate value OZaX1 of the latest detected coordinate value information OZ. After the substitution, the X coordinate detection process in steps C2 to C7 ends, and the process proceeds from step C7 to step C8. The X-coordinate detection process in steps C2 to C7 is performed until the first X-coordinate value OZaX1 of the latest detected coordinate value information OZ is updated in step C7, or the latest value of the peripheral scan number counter ct in step C2. Is repeated until the number of peripheral scans is exceeded.
ステップC8〜ステップC14は、最新の1点目のY座標値OZaY1を検出するためのY座標検出処理である。ステップC8において、初期化のために、周辺スキャン数用カウンタctに初期値「0」が代入される。 Steps C8 to C14 are Y coordinate detection processing for detecting the latest first Y coordinate value OZaY1. In step C8, an initial value “0” is substituted into the peripheral scan number counter ct for initialization.
ステップC9において、周辺スキャン数用カウンタctの最新値が、周辺スキャン数未満であるか否かが判断される。周辺スキャン数用カウンタctの最新値が周辺スキャン数未満であれば、ステップC9からステップC10に進む。 In step C9, it is determined whether or not the latest value of the peripheral scan number counter ct is less than the peripheral scan number. If the latest value of the peripheral scan number counter ct is less than the peripheral scan number, the process proceeds from step C9 to step C10.
ステップC10において、図5AのステップA11と同様に、座標出力装置の制御部12が、発光制御部35に、Y軸カウンタYの最新値と同数番目のY軸発光素子33を点灯させる。次いで、ステップC11において、図5AのステップA12と同様に、座標出力装置の制御部12が、受光制御部36を介して、Y軸カウンタYの最新値と同数番目のY軸受光素子34の受光値を取得する。
In Step C10, as in Step A11 of FIG. 5A, the
ステップC12において、図5AのステップA13と同様に、Y番目のY軸受光素子34の受光値が予め定める基準値未満であるか否かが判断される。Y番目のY軸受光素子34の受光値が基準値以上である場合、ステップC12からステップC13に進む。
In step C12, as in step A13 of FIG. 5A, it is determined whether or not the light reception value of the Yth Y bearing
ステップC13において、周辺スキャン数用カウンタctが1だけインクリメントされる。またステップC13において、図5AのステップA17と同様に、Y軸カウンタYが1だけインクリメントされる。周辺スキャン数用カウンタctおよびY軸カウンタY更新後、ステップC13からステップC9に戻り、更新後のY軸カウンタYの最新値を用いて、ステップC9〜ステップC13の処理が実行される。 In step C13, the peripheral scan number counter ct is incremented by one. In step C13, the Y-axis counter Y is incremented by 1 as in step A17 of FIG. 5A. After the peripheral scan number counter ct and the Y-axis counter Y are updated, the process returns from Step C13 to Step C9, and the processes of Step C9 to Step C13 are executed using the latest value of the updated Y-axis counter Y.
前述したステップC12において、Y番目のY軸受光素子34の受光値が基準値未満である場合、ステップC12からステップC14に進む。この場合、Y軸カウンタYの最新値と同等のY番目のY軸発光素子33およびY軸受光素子34の間に遮光物39が存在する。ゆえに、Y軸カウンタYの最新値が新しく指示された点のY座標であると判断される。
In Step C12 described above, when the light reception value of the Y-th Y bearing
ステップC14において、最新の検出座標値情報OZの1点目のY座標値OZaY1に、Y軸カウンタYの最新値が代入される。代入後、ステップC9〜ステップC14のY座標の検出処理が終了し、ステップC15で図6のフローチャートの処理を終了する。ステップC9〜ステップC14のY座標検出処理は、ステップC14で最新の検出座標値情報OZの1点目のY座標値OZaY1が更新されるまで、またはステップC9で周辺スキャン数用カウンタctの最新値が周辺スキャン数を超えるまで、繰返される。 In step C14, the latest value of the Y-axis counter Y is substituted into the first Y coordinate value OZaY1 of the latest detected coordinate value information OZ. After the substitution, the Y coordinate detection process in steps C9 to C14 ends, and the process of the flowchart of FIG. 6 ends in step C15. The Y coordinate detection process in steps C9 to C14 is performed until the first Y coordinate value OZaY1 of the latest detected coordinate value information OZ is updated in step C14 or the latest value of the peripheral scan number counter ct in step C9. Is repeated until the number of peripheral scans is exceeded.
ステップC2において、周辺スキャン数用カウンタctの最新値が周辺スキャン数以上である場合、前回の検出座標値情報OZbkの1点目の周辺範囲に最新の指示された点が存在しない。ゆえにこの場合、ステップC2からステップC15に進み、図6のフローチャートの処理を終了する。同様に、ステップC9において、周辺スキャン数用カウンタctの最新値が周辺スキャン数以上である場合も、ステップC9からステップC15に進み、図6のフローチャートの処理を終了する。 If the latest value of the peripheral scan number counter ct is equal to or larger than the peripheral scan number in step C2, the latest designated point does not exist in the first peripheral range of the previous detected coordinate value information OZbk. Therefore, in this case, the process proceeds from step C2 to step C15, and the process of the flowchart of FIG. Similarly, when the latest value of the peripheral scan number counter ct is equal to or larger than the peripheral scan number in step C9, the process proceeds from step C9 to step C15, and the process of the flowchart in FIG.
以上の処理によって、本実施形態の座標出力装置1は、操作面10内の前回の検出座標値情報OZbkの1点目の周辺から、最新の検出座標値情報OZの1点目の座標を検出して、最新の検出座標値情報OZを更新することができる。この結果、最新の検出座標値情報OZの1点目の座標検出に要する時間が短縮される。
Through the above processing, the coordinate
図7は、本実施形態の座標出力装置1の制御部12が実行する図4Aおよび図4Bの座標検出処理内で実行される2点目の局所スキャン処理を説明するためのフローチャートである。2点目の局所スキャン処理は、図4Aおよび図4Bの画像検出処理内において、ステップP13で実行される。図7の各ステップD1〜D15は、図6の各ステップC1〜ステップC15と比較して、「1点目」を「2点目」に置換えればほぼ同等であるため、詳細説明は省略することがある。
FIG. 7 is a flowchart for explaining a second local scan process executed in the coordinate detection process of FIGS. 4A and 4B executed by the
2点目の局所スキャン処理が実行されると、ステップD0からステップD1に進む。ステップD1において、2点目の局所スキャン処理に係る各種の変数やバッファが初期化される。すなわち、最新の検出座標値情報OZのうち、最新の2点目の検出の有無を示すフラグOZaF2、最新の2点目のX座標値OZaX2、および最新の2点目のY座標OZaY2に、初期値である「0」がそれぞれ代入される。周辺スキャン数用カウンタctにも、初期値「0」が代入される。X軸用カウンタXには、初期値として、前回の検出座標値情報OZbkの2点目のX座標OZaX2bkから予め定める周辺スキャン数の半分の値を減じた差「OZaX2bk−(周辺スキャン数)/2」が代入される。 When the second local scan process is executed, the process proceeds from step D0 to step D1. In step D1, various variables and buffers related to the second local scan process are initialized. That is, among the latest detected coordinate value information OZ, the flag OZaF2 indicating the presence / absence of detection of the latest second point, the latest second X coordinate value OZaX2, and the latest second Y coordinate OZaY2 are initialized. The value “0” is substituted respectively. The initial value “0” is also assigned to the peripheral scan number counter ct. In the X-axis counter X, as an initial value, the difference “OZaX2bk− (number of peripheral scans) / 2 "is substituted.
ステップD2〜ステップD7は、最新の2点目のX座標値OZaX2を検出するためのX座標検出処理である。ステップD2において、周辺スキャン数用カウンタctの最新値が、周辺スキャン数未満であるか否かが判断される。周辺スキャン数用カウンタctの最新値が周辺スキャン数未満であれば、ステップD2からステップD3に進む。 Steps D2 to D7 are X coordinate detection processing for detecting the latest second X coordinate value OZaX2. In step D2, it is determined whether or not the latest value of the peripheral scan number counter ct is less than the peripheral scan number. If the latest value of the peripheral scan number counter ct is less than the peripheral scan number, the process proceeds from step D2 to step D3.
ステップD3において、図5AのステップA3と同様に、座標出力装置の制御部12が、発光制御部35に、X軸カウンタXの最新値と同数番目のX軸発光素子31を点灯させる。次いで、ステップD4において、図5AのステップA4と同様に、座標出力装置の制御部12が、受光制御部36を介して、X軸カウンタXの最新値と同数番目のX軸受光素子32の受光値を取得する。
In Step D3, as in Step A3 of FIG. 5A, the
ステップD5において、図5AのステップA5と同様に、X番目のX軸受光素子32の受光値が予め定める基準値未満であるか否かが判断される。X番目のX軸受光素子32の受光値が予め定める基準値以上である場合、ステップD5からステップD6に進む。
In step D5, as in step A5 of FIG. 5A, it is determined whether or not the light reception value of the Xth X-bearing
ステップD6において、周辺スキャン数用カウンタctが1だけインクリメントされる。またステップD6において、図5AのステップA9と同様に、X軸カウンタXが1だけインクリメントされる。周辺スキャン数用カウンタctおよびX軸カウンタX更新後、ステップD6からステップD2に戻り、更新後のX軸カウンタXの最新値を用いて、ステップD2〜ステップD6の処理が実行される。 In step D6, the peripheral scan number counter ct is incremented by one. In step D6, the X-axis counter X is incremented by 1 as in step A9 in FIG. 5A. After the peripheral scan number counter ct and the X-axis counter X are updated, the process returns from step D6 to step D2, and the processing of steps D2 to D6 is executed using the latest value of the updated X-axis counter X.
ステップD5において、X番目のX軸受光素子32の受光値が基準値未満である場合、ステップD5からステップD7に進む。この場合、X軸カウンタXの最新値がと同等のX番目のX軸発光素子31およびX軸受光素子32の間に遮光物39が存在する。ゆえに、X軸カウンタXの最新値が新しく指示された点のX座標であると判断される。
In step D5, when the received light value of the Xth X bearing
ステップD7において、最新の検出座標値情報OZの2点目のX座標値OZaX2に、X軸カウンタXの最新値が代入される。代入後、ステップD2〜ステップD7のX座標検出処理が終了し、ステップD7からステップD8に進む。ステップD2〜ステップD7のX座標検出処理は、ステップD7で最新の検出座標値情報OZの2点目のX座標値OZaX2が更新されるまで、またはステップD2で周辺スキャン数用カウンタctの最新値が周辺スキャン数を超えるまで、繰返される。 In step D7, the latest value of the X-axis counter X is substituted into the second X coordinate value OZaX2 of the latest detected coordinate value information OZ. After the substitution, the X coordinate detection process in steps D2 to D7 ends, and the process proceeds from step D7 to step D8. The X coordinate detection process in steps D2 to D7 is performed until the second X coordinate value OZaX2 of the latest detected coordinate value information OZ is updated in step D7, or the latest value of the peripheral scan number counter ct in step D2. Is repeated until the number of peripheral scans is exceeded.
ステップD8〜ステップD14は、最新の2点目のY座標値OZaY2を検出するためのY座標検出処理である。ステップD8において、初期化のために、周辺スキャン数用カウンタctに初期値「0」が代入される。 Steps D8 to D14 are Y coordinate detection processing for detecting the latest second Y coordinate value OZaY2. In step D8, an initial value “0” is assigned to the peripheral scan number counter ct for initialization.
ステップD9において、周辺スキャン数用カウンタctの最新値が、周辺スキャン数未満であるか否かが判断される。周辺スキャン数用カウンタctの最新値が周辺スキャン数未満であれば、ステップD9からステップD10に進む。 In step D9, it is determined whether or not the latest value of the peripheral scan number counter ct is less than the peripheral scan number. If the latest value of the peripheral scan number counter ct is less than the peripheral scan number, the process proceeds from step D9 to step D10.
ステップD10において、図5AのステップA11と同様に、座標出力装置の制御部12が、発光制御部35に、Y軸カウンタYの最新値と同数番目のY軸発光素子33を点灯させる。次いで、ステップD11において、図5AのステップA12と同様に、座標出力装置の制御部12が、受光制御部36を介して、Y軸カウンタYの最新値と同数番目のY軸受光素子34の受光値を取得する。
In step D10, as in step A11 of FIG. 5A, the
ステップD12において、図5AのステップA13と同様に、Y番目のY軸受光素子34の受光値が予め定める基準値未満であるか否かが判断される。Y番目のY軸受光素子34の受光値が基準値以上である場合、ステップD12からステップD13に進む。
In Step D12, as in Step A13 of FIG. 5A, it is determined whether or not the light reception value of the Yth Y bearing
ステップD13において、周辺スキャン数用カウンタctが1だけインクリメントされる。またステップD13において、図5AのステップA9と同様に、Y軸カウンタYが1だけインクリメントされる。周辺スキャン数用カウンタctおよびY軸カウンタY更新後、ステップD13からステップD9に戻り、更新後のY軸カウンタYの最新値を用いて、ステップD9〜ステップD13の処理が実行される。 In step D13, the peripheral scan number counter ct is incremented by one. In step D13, the Y-axis counter Y is incremented by 1 as in step A9 of FIG. 5A. After the peripheral scan number counter ct and the Y-axis counter Y are updated, the process returns from step D13 to step D9, and the processes of steps D9 to D13 are executed using the latest value of the updated Y-axis counter Y.
前述したステップD12において、Y番目のY軸受光素子34の受光値が基準値未満である場合、ステップD12からステップD14に進む。この場合、Y軸カウンタYの最新値がと同等のY番目のY軸発光素子33およびY軸受光素子34の間に遮光物39が存在する。ゆえに、Y軸カウンタYの最新値が新しく指示された点のY座標であると判断される。
If the received light value of the Y-th Y bearing
ステップD14において、最新の検出座標値情報OZの2点目のY座標値OZaY2に、Y軸カウンタYの最新値が代入される。代入後、ステップD9〜ステップD14のY座標の検出処理が終了し、ステップD15で図7のフローチャートの処理を終了する。ステップD9〜ステップD14のY座標検出処理は、ステップD14で最新の検出座標値情報OZの2点目のY座標値OZaY2が更新されるまで、またはステップD9で周辺スキャン数用カウンタctの最新値が周辺スキャン数を超えるまで、繰返される。 In step D14, the latest value of the Y-axis counter Y is substituted into the second Y coordinate value OZaY2 of the latest detected coordinate value information OZ. After the substitution, the Y coordinate detection process in steps D9 to D14 ends, and the process of the flowchart of FIG. 7 ends in step D15. The Y coordinate detection process in steps D9 to D14 is performed until the second Y coordinate value OZaY2 of the latest detected coordinate value information OZ is updated in step D14 or the latest value of the counter ct for the peripheral scan number in step D9. Is repeated until the number of peripheral scans is exceeded.
前述したステップD2において、周辺スキャン数用カウンタctの最新値が周辺スキャン数以上である場合、前回の検出座標値情報OZbkの2点目の周辺範囲に最新の指示された点が存在しない。ゆえにこの場合、ステップD2からステップD15に進み、図6のフローチャートの処理を終了する。同様に、ステップD9において、周辺スキャン数用カウンタctの最新値が周辺スキャン数以上である場合も、ステップD9からステップD15に進み、図6のフローチャートの処理を終了する。 If the latest value of the peripheral scan number counter ct is equal to or greater than the peripheral scan number in step D2, the latest specified point does not exist in the second peripheral range of the previous detected coordinate value information OZbk. Therefore, in this case, the process proceeds from step D2 to step D15, and the process of the flowchart of FIG. Similarly, when the latest value of the peripheral scan number counter ct is equal to or larger than the peripheral scan number in step D9, the process proceeds from step D9 to step D15, and the process of the flowchart in FIG.
以上の処理によって、本実施形態の座標出力装置1は、操作面10内の前回の検出座標値情報OZbkの2点目の周辺から、最新の検出座標値情報OZの2点目の座標を検出して、最新の検出座標値情報OZを更新することができる。この結果、最新の検出座標値情報OZの2点目の座標検出に要する時間が短縮される。
Through the above processing, the coordinate
図8Aおよび図8Bは、図1の座標出力装置1の制御部12が実行する座標出力処理の全体を説明するためのフローチャートである。図8Aおよび図8Bの座標出力処理は、周期的に呼出される割込み処理である。割込み処理開始後、ステップQ0からステップQ1に進む。
8A and 8B are flowcharts for explaining the entire coordinate output processing executed by the
ステップQ1において、情報機器本体3へ送付すべき出力用座標値情報PZがあるか否かが判断される。すなわち、出力用座標値情報PZの有無を示すフラグSendFlgの最新値が情報有りを示す「1」であるか否かが判断される。出力用座標値情報PZの有無を示すフラグSendFlgの最新値が「1」である場合、ステップQ1からステップQ2に進む。
In step Q1, it is determined whether or not there is output coordinate value information PZ to be sent to the information device
ステップQ1において、出力用座標値情報PZの有無を示すフラグSendFlgの最新値が情報無しを示す「0」である場合、ステップQ1からステップQ20に進み、図8Aおよび図8Bのフローチャートを終了する。この場合、座標出力装置1から座標は出力されない。
In step Q1, when the latest value of the flag SendFlg indicating the presence / absence of the output coordinate value information PZ is “0” indicating no information, the process proceeds from step Q1 to step Q20, and the flowcharts of FIGS. 8A and 8B are ended. In this case, coordinates are not output from the coordinate
ステップQ2において、出力用座標情報の1点目のX座標値PZaX1およびY座標値PZaY1、ならびに2点目のX座標値PZaX2およびY座標値PZaY2が、予め定めるタッチパネル解像度に応じて補正される。補正後の1点目のX座標値およびY座標値、ならびに2点目のX座標値およびY座標値が、補正後の出力用座標情報の1点目のX座標値OZaX1CVおよびY座標値OZaY1CV、ならびに2点目のX座標値OZaX1CVおよびY座標値OZaY1CVに、それぞれ代入される。タッチパネル解像度は、たとえば、X軸方向の解像度が「65536」であり、X軸方向の解像度が「65536」であり、操作面10全体で「65536×6553」と定義される。
In step Q2, the first X coordinate value PZaX1 and Y coordinate value PZaY1 and the second X coordinate value PZaX2 and Y coordinate value PZaY2 of the output coordinate information are corrected in accordance with a predetermined touch panel resolution. The X coordinate value and Y coordinate value of the first point after correction, and the X coordinate value and Y coordinate value of the second point are the X coordinate value OZaX1CV and Y coordinate value OZaY1CV of the first point of the corrected output coordinate information. And the second X coordinate value OZaX1CV and the Y coordinate value OZaY1CV, respectively. For example, the resolution in the X-axis direction is “65536”, the resolution in the X-axis direction is “65536”, and the touch panel resolution is defined as “65536 × 6553” for the
送信出力用座標情報の座標値
=出力用座標情報の座標値×{(タッチパネル解像度)/(発光素子数)} …(1)
またステップQ2における出力用座標情報の具体的な補正手法を、上記の式1に示す。すなわち、前記補正手法において、補正後の出力用座標情報の単一点のX座標値OZaX1CV,OZaX2CVおよびY座標値OZaY1CV,OZaY2CVは、出力用座標情報のX座標値PZaX1,PZaX2およびY座標値PZaY1,PZaY2に、X軸方向およびY軸方向のタッチパネル解像度をX軸方向およびY軸方向の発光素子の総数で除算した商を乗算した値で実現される。
Coordinate value of transmission output coordinate information = coordinate value of output coordinate information × {(touch panel resolution) / (number of light emitting elements)} (1)
The specific correction method for the output coordinate information in step Q2 is shown in the
ステップQ3において、出力用座標値情報PZの1点目および2点目の両方が検出済であるか否かが判断される。すなわち、出力用座標値情報PZの1点目の検出の有無を示すフラグPZaF1および2点目の検出の有無を示すフラグPZaF2の両方が検出有りを示す「1」であるか否かが判断される。出力用座標値情報PZの1点目および2点目の検出の有無を示すフラグPZaF1,PZaF2の両方が「1」である場合、ステップQ3からステップQ4に進む。 In step Q3, it is determined whether or not both the first point and the second point of the output coordinate value information PZ have been detected. That is, it is determined whether or not both the flag PZaF1 indicating whether or not the first point of the output coordinate value information PZ is detected and the flag PZaF2 indicating whether or not the second point is detected are “1” indicating that there is detection. The When both the flags PZaF1 and PZaF2 indicating whether or not the first point and the second point of the output coordinate value information PZ are detected are “1”, the process proceeds from step Q3 to step Q4.
ステップQ4において、出力用座標値情報PZの前回の送付時に用いられた出力形式がマウス形式であるか否かが判断される。すなわち、前回送信データ形式バッファSendFmtの最新値がマウス形式を示す「1」であるか否かが判断される。前回送信データ形式バッファSendFmtの最新値が「1」ではない場合、ステップQ4からステップQ5に進む。 In step Q4, it is determined whether or not the output format used at the previous sending of the output coordinate value information PZ is a mouse format. That is, it is determined whether or not the latest value of the previous transmission data format buffer SendFmt is “1” indicating the mouse format. When the latest value of the previous transmission data format buffer SendFmt is not “1”, the process proceeds from step Q4 to step Q5.
ステップQ5において、デジタイザ形式の出力用座標値情報PZを記憶するデジタイザ形式用バッファSendbuf_DEの1点目および2点目の座標値に、補正後の出力用座標値情報PZの1点目および2点目の座標値が代入される。必要であれば、デジタイザ形式用バッファSendbuf_DEの他の要素も、補正後の出力用座標値情報PZに基づいて設定される。次いで、ステップQ6において、前回送信データ形式バッファSendFmtに、デジタイザ形式を示す「2」が代入される。前回送信データ形式バッファSendFmtの更新後、ステップQ6からステップQ7に進む。 In step Q5, the first and second coordinate values of the corrected output coordinate value information PZ are added to the first and second coordinate values of the digitizer format buffer Sendbuf_DE storing the digitizer format output coordinate value information PZ. The coordinate value of the eye is substituted. If necessary, other elements of the digitizer format buffer Sendbuf_DE are also set based on the corrected output coordinate value information PZ. Next, in step Q6, “2” indicating the digitizer format is assigned to the previous transmission data format buffer SendFmt. After updating the previous transmission data format buffer SendFmt, the process proceeds from step Q6 to step Q7.
ステップQ7において、デジタイザ形式用バッファSendbuf_DE内のデジタイザ形式の出力用座標値情報PZが、座標出力装置1の通信部14とUSB規格に応じた通信網を経由して、座標出力装置1から情報機器本体3に送付される。
At step Q7, the digitizer format output coordinate value information PZ in the digitizer format buffer Sendbuf_DE is transferred from the coordinate
ステップQ8において、出力用座標値情報PZの有無を示すフラグSendFlgに、送付すべき情報が無い旨を示す「0」が代入される。また、ステップQ8において、出力用座標値情報PZおよび最新の検出座標値情報OZが初期化される。この結果、出力用座標値情報PZの1点目および2点目の検出の有無を示すフラグPZaF1,PZaF2に初期値「0」が代入され、かつ、最新の検出座標値情報OZの1点目および2点目の検出の有無を示すフラグOZaF1,OZaF2に初期値「0」が代入される。なお、前回の検出座標値情報OZbkはそのまま保持される。フラグなどの初期化後、ステップQ8からステップQ20に進み、図8Aおよび図8Bのフローチャートの処理が終了する。 In step Q8, “0” indicating that there is no information to be sent is substituted for the flag SendFlg indicating the presence or absence of the output coordinate value information PZ. In step Q8, the output coordinate value information PZ and the latest detected coordinate value information OZ are initialized. As a result, the initial value “0” is assigned to the flags PZaF1 and PZaF2 indicating whether or not the first and second points of the output coordinate value information PZ are detected, and the first point of the latest detected coordinate value information OZ. In addition, an initial value “0” is assigned to the flags OZaF1 and OZaF2 indicating whether or not the second point is detected. The previous detected coordinate value information OZbk is retained as it is. After the initialization of the flag and the like, the process proceeds from step Q8 to step Q20, and the processes of the flowcharts of FIGS. 8A and 8B are completed.
ステップQ2〜ステップQ8の処理によって、出力用座標値情報PZにおいて複数の点の座標が検出済である場合、デジタイザ形式が選ばれ、選ばれたデジタイザ形式で複数の点の座標が出力される。 If the coordinates of a plurality of points have already been detected in the output coordinate value information PZ by the processing of step Q2 to step Q8, the digitizer format is selected, and the coordinates of the plurality of points are output in the selected digitizer format.
前述のステップQ4において、前回送信データ形式バッファSendFmtの最新値が「1」である場合、ステップQ4からステップQ9に進む。ステップQ9において、マウス形式用バッファSendbuf_MSの指示状態の是非を示す指示状態要素(Lボタン)に、遮光のない非指示状態である旨を示す「0」が代入される。 If the latest value of the previous transmission data format buffer SendFmt is “1” in step Q4 described above, the process proceeds from step Q4 to step Q9. In step Q9, “0” indicating that the non-instruction state without light shielding is assigned to the instruction state element (L button) indicating the right or wrong of the instruction state of the mouse format buffer Sendbuf_MS.
次いで、ステップQ10において、マウス形式用バッファSendbuf_MSに記憶されるマウス形式の出力用座標値情報PZが、座標出力装置1の通信部14とUSB規格に応じた通信網を経由して、座標出力装置1から情報機器本体3に送付される。この結果、線描画動作などの終了に伴い、指示状態から非指示状態への切換えが、座標出力装置1から情報機器本体3に通知される。
Next, in step Q10, the mouse format output coordinate value information PZ stored in the mouse format buffer Sendbuf_MS is transmitted to the coordinate
次いで、ステップQ11において、前回送信データ形式バッファSendFmtにデジタイザ形式を示す「2」が代入される。前回送信データ形式バッファSendFmtの更新後、ステップQ11からステップQ20に進み、図8Aおよび図8Bのフローチャートの処理が終了する。 Next, in step Q11, “2” indicating the digitizer format is assigned to the previous transmission data format buffer SendFmt. After the previous transmission data format buffer SendFmt is updated, the process proceeds from step Q11 to step Q20, and the processing of the flowcharts of FIGS. 8A and 8B ends.
上述のステップQ2〜ステップQ4,ステップQ9〜ステップQ11の処理によって、出力用座標値情報PZにおいて複数の点の座標が検出済であり、かつ前回送信データ形式にマウス形式が選ばれていた場合、座標の出力形式がマウス形式からデジタイザ形式へ切換えられる。上述の処理では、出力用座標値情報PZおよび最新の検出座標値情報OZが初期化されていないので、図8Aおよび図8Bの割込み処理の次の実行時に、出力用座標値情報PZの1点目および2点目の座標値がデジタイザ方式で一括して送付されることになる。 When the coordinates of a plurality of points have already been detected in the output coordinate value information PZ by the processing of steps Q2 to Q4 and Q9 to Q11, and the mouse format has been selected as the previous transmission data format, The coordinate output format is switched from the mouse format to the digitizer format. In the above processing, since the output coordinate value information PZ and the latest detected coordinate value information OZ are not initialized, one point of the output coordinate value information PZ is executed at the next execution of the interrupt processing of FIGS. 8A and 8B. The coordinate values of the eyes and the second point are sent together by the digitizer method.
前述のステップQ3において、出力用座標値情報PZの1点目および2点目の検出の有無を示すフラグPZaF1,PZaF2の少なくとも一方が検出無しを示す「0」である場合、ステップQ3からステップQ12に進む。 If at least one of the flags PZaF1 and PZaF2 indicating the presence / absence of detection of the first point and the second point of the output coordinate value information PZ is “0” indicating no detection in step Q3, the steps Q3 to Q12 are performed. Proceed to
ステップQ12において、前回の出力用座標値情報PZの送付時に用いられた出力形式がデジタイザ形式であるか否かが判断される。すなわち、前回送信データ形式バッファSendFmtの最新値がデジタイザ形式を示す「2」であるか否かが判断される。前回送信データ形式バッファSendFmtの最新値が「2」である場合、ステップQ12からステップQ13に進む。 In step Q12, it is determined whether or not the output format used when sending the previous output coordinate value information PZ is the digitizer format. That is, it is determined whether or not the latest value of the previous transmission data format buffer SendFmt is “2” indicating the digitizer format. When the latest value of the previous transmission data format buffer SendFmt is “2”, the process proceeds from step Q12 to step Q13.
次いで、ステップQ13において、デジタイザ形式用バッファSendbuf_DE内の1点目および2点目の指示状態の是非をそれぞれ示す指示状態要素Touch_
Validに、遮光のない非指示状態を示す「0」が代入される。
Next, in step Q13, an instruction state element Touch_ indicating each of the instruction states of the first point and the second point in the digitizer format buffer Sendbuf_DE.
“0” indicating a non-instruction state without light shielding is substituted for Valid.
次いで、ステップQ14において、デジタイザ形式用バッファSendbuf_DEに記憶されるデジタイザ形式の出力用座標値情報PZが、座標出力装置1の通信部14とUSB規格に応じた通信網を経由して、座標出力装置1から情報機器本体3に送付される。この結果、ジェスチャ動作などの終了に伴い、指示状態から非指示状態への切換えが、座標出力装置1から情報機器本体3に通知される。
Next, in step Q14, the output coordinate value information PZ in the digitizer format stored in the digitizer format buffer Sendbuf_DE is transmitted to the coordinate output device via the
次いで、ステップQ15において、前回送信データ形式バッファSendFmtにマウス形式を示す「1」が代入される。前回送信データ形式バッファSendFmtの更新後、ステップQ15からステップQ20に進み、図8Aおよび図8Bのフローチャートの処理が終了する。 Next, in step Q15, “1” indicating the mouse format is assigned to the previous transmission data format buffer SendFmt. After updating the previous transmission data format buffer SendFmt, the process proceeds from step Q15 to step Q20, and the processes of the flowcharts of FIGS. 8A and 8B are completed.
上述のステップQ2〜ステップQ3,ステップQ12〜ステップQ15の処理によって、出力用座標値情報PZにおいて単一の座標が検出済であり、かつ前回送信データ形式にデジタイザ形式が選ばれていた場合、座標の出力形式がデジタイザ形からマウス形式式へ切換えられる。上述の処理では、出力用座標値情報PZおよび最新の検出座標値情報OZが初期化されていないので、図8Aおよび図8Bの割込み処理の次の実行時に、出力用座標値情報PZの1点目および2点目の座標値がデジタイザ方式で一括して送付されることになる。 If a single coordinate has been detected in the output coordinate value information PZ by the above-described processing of Step Q2 to Step Q3 and Step Q12 to Step Q15, and the digitizer format has been selected as the previous transmission data format, The output format is switched from digitizer to mouse format. In the above processing, since the output coordinate value information PZ and the latest detected coordinate value information OZ are not initialized, one point of the output coordinate value information PZ is executed at the next execution of the interrupt processing of FIGS. 8A and 8B. The coordinate values of the eyes and the second point are sent together by the digitizer method.
前述したステップQ12において、前回送信データ形式バッファSendFmtの最新値が「2」以外である場合、ステップQ12からステップQ16に進む。 If the latest value of the previous transmission data format buffer SendFmt is other than “2” in step Q12 described above, the process proceeds from step Q12 to step Q16.
ステップQ16において、出力用座標値情報PZの1点目および2点目のうちの検出済のいずれか一方が2点目であるか否かが判断される。すなわち、出力用座標値情報PZの2点目の検出の有無を示すフラグPZaF2が検出有りを示す「1」であるか否かが判断される。出力用座標値情報PZの2点目の検出の有無を示すフラグPZaF2が「0」である場合、ステップQ16からステップQ17に進む。出力用座標値情報PZの2点目の検出の有無を示すフラグPZaF2が「1」である場合、ステップQ16からステップQ18に進む。 In step Q16, it is determined whether one of the first point and the second point of the output coordinate value information PZ is the second point. That is, it is determined whether or not the flag PZaF2 indicating the presence / absence of detection of the second point of the output coordinate value information PZ is “1” indicating the presence of detection. When the flag PZaF2 indicating whether or not the second point of the output coordinate value information PZ is detected is “0”, the process proceeds from step Q16 to step Q17. When the flag PZaF2 indicating whether or not the second point of the output coordinate value information PZ is detected is “1”, the process proceeds from step Q16 to step Q18.
ステップQ17において、マウス形式の出力用座標値情報PZを記憶するマウス形式用バッファSendbuf_MSのX座標値およびY座標値に、補正後の出力用座標値情報PZの1点目のX座標値OZaX1CVおよびY座標値OZaY1CVが代入される。また、ステップQ18において、マウス形式の出力用座標値情報PZを記憶するマウス形式用バッファSendbuf_MSのX座標値およびY座標値に、補正後の出力用座標値情報PZの2点目のX座標値OZaX2CVおよびY座標値OZaY2CVが代入される。ステップQ17およびステップQ18において、必要であれば、マウス形式用バッファSendbuf_MSの他の要素も、補正後の出力用座標値情報PZに基づいてそれぞれ設定される。座標値代入後、ステップQ17およびステップQ18から、ステップQ19に進む。 In Step Q17, the X coordinate value OZaX1CV of the first point of the corrected output coordinate value information PZ is added to the X coordinate value and the Y coordinate value of the mouse format buffer Sendbuf_MS that stores the mouse format output coordinate value information PZ. The Y coordinate value OZaY1CV is substituted. In step Q18, the X coordinate value and the Y coordinate value of the mouse format buffer Sendbuf_MS that stores the mouse format output coordinate value information PZ are added to the X coordinate value of the second point of the corrected output coordinate value information PZ. OZaX2CV and Y coordinate value OZaY2CV are substituted. In step Q17 and step Q18, if necessary, other elements of the mouse format buffer Sendbuf_MS are also set based on the corrected output coordinate value information PZ. After substituting the coordinate values, the process proceeds from step Q17 and step Q18 to step Q19.
ステップQ19において、前回送信データ形式バッファSendFmtに、マウス形式を示す「1」が代入される。前回送信データ形式バッファSendFmtの更新後、ステップQ19からステップQ7に進む。 In step Q19, “1” indicating the mouse format is assigned to the previous transmission data format buffer SendFmt. After the previous transmission data format buffer SendFmt is updated, the process proceeds from step Q19 to step Q7.
ステップQ19からステップQ7に至った場合、ステップQ7において、マウス形式用バッファSendbuf_MS内のマウス形式の出力用座標値情報PZが、座標出力装置1の通信部14とUSB規格に応じた通信網を経由して、座標出力装置1から情報機器本体3に送付される。次いで、ステップQ8において、出力用座標値情報PZの有無を示すフラグSendFlgに送付すべき情報がない旨を示す「0」が代入される。また、ステップQ8において、出力用座標値情報PZおよび最新の検出座標値情報OZが初期化される。
When step Q19 is reached from step Q7, in step Q7, the mouse format output coordinate value information PZ in the mouse format buffer Sendbuf_MS passes through the
フラグなどの初期化後、ステップQ8からステップQ20に進み、図8Aおよび図8Bのフローチャートの処理が終了する。ステップQ2〜ステップQ3,ステップQ12,ステップQ16〜ステップQ19、ステップQ7〜ステップQ8の処理によって、出力用座標値情報PZにおいて単一の点の座標が検出済である場合、マウス形式が選ばれ、選ばれたマウス形式で単一の点の座標が出力される。 After the initialization of the flag and the like, the process proceeds from step Q8 to step Q20, and the processes of the flowcharts of FIGS. 8A and 8B are completed. If the coordinates of a single point have already been detected in the output coordinate value information PZ by the processes of Step Q2 to Step Q3, Step Q12, Step Q16 to Step Q19, and Step Q7 to Step Q8, the mouse format is selected. The coordinates of a single point are output in the selected mouse format.
以上の処理によって、本実施形態の座標出力装置1は、出力用座標値情報PZ内の検出済の点の数に応じて、出力用座標値情報PZの出力形式が切換えられる。
By the above processing, the coordinate
本実施形態の座標出力装置1は、本実施形態の構成要素の最良の実施形態の1つである。本実施形態の構成要素の詳細構成は、上述の作用効果が発揮可能な構成であれば、上述した構成に限らず、他の様々な構成が用いられても良い。
The coordinate
1 座標出力装置
2 情報機器
3 情報機器本体
4 表示装置
10 操作面
11 座標出力装置の座標検出部
12 座標出力装置の制御部
13 座標出力装置の内部記憶部
14 座標出力装置の通信部
21 情報機器本体の座標検出部
22 情報機器本体の制御部
23 情報機器本体の内部記憶部
24 情報機器本体の通信部
31 X軸発光素子
32 X軸受光素子
33 Y軸発光素子
34 Y軸受光素子
35 発光制御部
26 受光制御部
OZ 最新の検出座標値情報
OZaF1 最新の検出座標値情報の1点目の検出の有無を示すフラグ
OZaX1 最新の検出座標値情報の1点目のX座標値
OZaY1 最新の検出座標値情報の1点目のY座標値
OZaF2 最新の検出座標値情報の2点目の検出の有無を示すフラグ
OZaX2 最新の検出座標値情報の2点目のX座標値
OZaY2 最新の検出座標値情報の2点目のY座標値
OZbr 前回の検出座標値情報
OZaF1bk 前回の検出座標値情報の1点目の検出の有無を示すフラグ
OZaX1bk 前回の検出座標値情報の1点目のX座標値
OZaY1bk 前回の検出座標値情報の1点目のY座標値
OZaF2bk 前回の検出座標値情報の2点目の検出の有無を示すフラグ
OZaX2bk 前回の検出座標値情報の2点目のX座標値
OZaY2bk 前回の検出座標値情報の2点目のY座標値
PZ 出力用座標値情報
PZaF1 出力用検出座標値情報の1点目の検出の有無を示すフラグ
PZaY1 出力用検出座標値情報の1点目のY座標値
PZaF2 出力用検出座標値情報の2点目の検出の有無を示すフラグ
PZaX2 出力用検出座標値情報の2点目のX座標値
PZaY2 出力用検出座標値情報の2点目のY座標値
Sendbuf_MS マウス形式用バッファ
Sendbuf_DE デジタイザ形式用バッファ
SendFlg 出力用座標値情報PZの有無を示すフラグ
SendFmt 前回送信データ形式バッファ
DESCRIPTION OF SYMBOLS 1 Coordinate output apparatus 2 Information apparatus 3 Information apparatus main body 4 Display apparatus 10 Operation surface 11 Coordinate detection part of coordinate output apparatus 12 Control part of coordinate output apparatus 13 Internal storage part of coordinate output apparatus 14 Communication part of coordinate output apparatus 21 Information apparatus Coordinate detection unit of main body 22 Control unit of main body of information device 23 Internal storage unit of main body of information device 24 Communication unit of main body of information device 31 X axis light emitting element 32 X bearing light element 33 Y axis light emitting element 34 Y bearing light element 35 Light emission control Unit 26 Light reception control unit OZ Latest detected coordinate value information OZaF1 Flag indicating whether or not the first point of the latest detected coordinate value information is detected OZaX1 First X coordinate value of the latest detected coordinate value information OZaY1 Latest detected coordinate Y coordinate value of the first point of the value information OZaF2 Flag indicating whether or not the second point of the latest detected coordinate value information is detected OZaX2 of the latest detected coordinate value information X coordinate value of the second point OZaY2 Y coordinate value of the second point of the latest detected coordinate value information OZbr Previously detected coordinate value information OZaF1bk Flag indicating whether or not the first point of the previously detected coordinate value information has been detected OZaX1bk X coordinate value of first point of detected coordinate value information OZaY1bk Y coordinate value of first point of previous detected coordinate value information OZaF2bk Flag indicating presence / absence of detection of second point of previous detected coordinate value information OZaX2bk Previous detected coordinate X coordinate value of the second point of the value information OZaY2bk Y coordinate value of the second point of the previous detected coordinate value information PZ output coordinate value information PZaF1 Flag indicating whether or not the first point of the detected coordinate value information for output is detected PZaY1 Y coordinate value PZaF2 of the first point of detection coordinate value information for output PZaF2 Flag indicating whether or not the second point of detection coordinate value information for output is detected PZaX2 Output detection coordinate X coordinate value of second point of information PZaY2 Y coordinate value of second point of detected coordinate value information for output Sendbuf_MS buffer for mouse format Sendbuf_DE buffer for digitizer format SendFlg Flag indicating presence / absence of coordinate value information PZ for output SendFmt Previous transmission data Format buffer
Claims (3)
操作面内に指示される1以上の点の座標を検出する座標検出部と、
前記座標検出部によって単一の点の座標のみが検出されたときは、検出された単一の点の座標を予め定める第1出力形式で出力し、前記座標検出部によって同時に複数の点の座標が検出されたときは、検出された複数の点の座標を前記第1出力形式とは異なる予め定める第2出力形式で出力する制御部とを含むことを特徴とする座標出力装置。 A touch panel having an operation surface;
A coordinate detection unit that detects the coordinates of one or more points indicated in the operation surface;
When only the coordinates of a single point are detected by the coordinate detection unit, the coordinates of the detected single point are output in a predetermined first output format, and the coordinates of a plurality of points are simultaneously output by the coordinate detection unit. And a control unit that outputs the coordinates of the detected points in a predetermined second output format different from the first output format.
前記制御部は、座標検出時に点の座標が検出された場合、当該検出された座標を含む予め定める範囲内を対象として、前記座標検出部に次の座標検出を実行させ、座標検出時に点の座標が検出されていない場合、操作面全体を対象として、前記座標検出部に次の座標検出を実行させることを特徴とする請求項1記載の座標出力装置。 The coordinate detection unit repeatedly performs coordinate detection of a point designated in the operation surface as time passes,
When the coordinates of a point are detected at the time of coordinate detection, the control unit causes the coordinate detection unit to execute the next coordinate detection within a predetermined range including the detected coordinates, and at the time of coordinate detection, 2. The coordinate output apparatus according to claim 1, wherein when the coordinates are not detected, the coordinate detection unit is caused to execute the next coordinate detection for the entire operation surface.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2012157952A JP2014021620A (en) | 2012-07-13 | 2012-07-13 | Coordinate output device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2012157952A JP2014021620A (en) | 2012-07-13 | 2012-07-13 | Coordinate output device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| JP2014021620A true JP2014021620A (en) | 2014-02-03 |
Family
ID=50196457
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2012157952A Pending JP2014021620A (en) | 2012-07-13 | 2012-07-13 | Coordinate output device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP2014021620A (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2016206741A (en) * | 2015-04-16 | 2016-12-08 | 株式会社東海理化電機製作所 | Operation detection device |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100156804A1 (en) * | 2008-12-19 | 2010-06-24 | Cypress Semiconductor Corporation | Multi-finger sub-gesture reporting for a user interface device |
| WO2011048655A1 (en) * | 2009-10-19 | 2011-04-28 | パイオニア株式会社 | Coordinate position detection device, method of detecting coordinate position, and display device |
-
2012
- 2012-07-13 JP JP2012157952A patent/JP2014021620A/en active Pending
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100156804A1 (en) * | 2008-12-19 | 2010-06-24 | Cypress Semiconductor Corporation | Multi-finger sub-gesture reporting for a user interface device |
| WO2011048655A1 (en) * | 2009-10-19 | 2011-04-28 | パイオニア株式会社 | Coordinate position detection device, method of detecting coordinate position, and display device |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2016206741A (en) * | 2015-04-16 | 2016-12-08 | 株式会社東海理化電機製作所 | Operation detection device |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP5422724B1 (en) | Electronic apparatus and drawing method | |
| US20120007857A1 (en) | Information Processing Device, Information Processing Method, and Program | |
| CN105190477A (en) | Head-mounted display device for user interaction in an augmented reality environment | |
| US9170732B2 (en) | Information input device, information input method, and information input program | |
| JP6432409B2 (en) | Touch panel control device and touch panel control program | |
| WO2013175819A1 (en) | Video display device and video operation method | |
| US20190272090A1 (en) | Multi-touch based drawing input method and apparatus | |
| KR20140122076A (en) | Method and apparatus for displaying an object of portable electronic device | |
| CN112181131B (en) | Non-transitory computer readable medium, image processing method and image processing system | |
| JP5991320B2 (en) | Input device, image display method and program | |
| JPWO2017022031A1 (en) | Information terminal equipment | |
| WO2015159774A1 (en) | Input device and method for controlling input device | |
| WO2011055451A1 (en) | Information processing device, method therefor, and display device | |
| WO2017018384A1 (en) | Touch panel type information terminal device, information input processing method therefor, and program | |
| US9739995B2 (en) | Operating system and method for displaying an operating area | |
| JP2014115876A (en) | Remote operation method of terminal to be operated using three-dimentional touch panel | |
| JP2014115876A5 (en) | ||
| JP2014021620A (en) | Coordinate output device | |
| CN111142775A (en) | Gesture interaction method and device | |
| JP2016119019A (en) | Information processing apparatus, information processing method, and program | |
| US9787731B2 (en) | Dynamically determining workspace bounds during a collaboration session | |
| JP2017228216A (en) | Information processing apparatus, control method therefor, program, and storage medium | |
| KR101821161B1 (en) | Terminal and method for displaying data thereof | |
| US20190146628A1 (en) | Touch panel display device, touch panel control method, and recording medium storing touch panel control program | |
| JP7452917B2 (en) | Operation input device, operation input method and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20150318 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20160229 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20160301 |
|
| A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 20160906 |