The method for correcting coordinate of electromagnetic induction device and electromagnetic induction device
Technical field
The present invention relates to the coordinate measurement of electromagnetic induction device, particularly relate to the method for correcting coordinate of a kind of electromagnetic induction device and this device.
Background technology
Along with the development of infotech, electromagnetic induction device has been applied in a lot of fields.The same keyboard of electromagnetic induction device, mouse are the same with handwriting pad, are all a kind of input equipments.Electromagnetic induction device is made up of magnetic board and time writer, is mainly used in computer drawing, is convenient to creator and finds in the time of creation the sensation of true drawing.Current electromagnetic induction device is all to send the data such as the inclination angle of time writer mobile trajectory coordinates, pressure size and time writer on magnetic board to computing machine conventionally, thereby realizes the object of handwriting input, drawing.But due to existing magnetic board detect time writer and magnetic board contact coordinate time X-axis and Y-axis is timesharing measurement, after completing, X-axis measurement measures again Y-axis after X-axis coordinate data processing time t1, actual measurement is in Fig. 2 shown in dotted line to the corresponding Grid Track of coordinate figure, and the coordinate figure measuring and the movement locus of time writer do not overlap.Fig. 1 is the program flow diagram that existing magnetic board is measured coordinate, and Fig. 2 is the track and measurement track that time writer moves on magnetic board.As shown in Figure 2, effective input area of magnetic board is the rectangle frame in figure, and the coordinate of supposing the magnetic board upper left corner is (0,0), the lower right corner be (Xmax, Ymax).When time writer is pointed with the finger or gesticulate straight line from A point to B, the actual motion track that A is time writer to the solid line of B, and magnetic board actual measurement is in figure shown in dotted line to the corresponding Grid Track of coordinate figure, can find out that the movement locus of the actual coordinate figure measuring and time writer does not overlap.
Summary of the invention
For avoiding above the deficiencies in the prior art, the invention provides a kind of method for correcting coordinate of electromagnetic induction device.Actual coordinate when the method is utilized the measurement coordinate figure of time writer different contact points on magnetic board and time coefficient to obtain time writer to move on magnetic board, to solve the coordinate figure of magnetic board actual measurement and the inconsistent problem of the movement locus of electric time writer.
Technical scheme of the present invention is as follows:
The method for correcting coordinate of electromagnetic induction device, this electromagnetic induction device has magnetic board and the time writer of the electromagnetic signal of interacting, and the method comprises the steps:
Determine the coordinate of time writer first make contact of touch-control on magnetic board;
When time writer moves to the second contact point from first make contact after very first time t1 on magnetic board, determine the first coordinate figure of described the second contact point;
When time writer moves to the 3rd contact point from the second contact point after the second time t2 on magnetic board, determine the second coordinate figure of described the 3rd contact point;
Obtain the actual coordinate value of the second coordinate of the second contact point according to the second coordinate figure of the first coordinate figure of the coordinate figure of first make contact, the second contact point and the 3rd contact point and very first time t1 and the second time t2.
Further, the second coordinate figure of the first coordinate figure of the coordinate figure of described first make contact, the second contact point and the 3rd contact point is determined employing the same coordinate system;
Described coordinate is rectangular coordinate system, and described the first coordinate figure and the second coordinate figure are respectively horizontal ordinate and ordinate, or described the first coordinate and the second coordinate are respectively ordinate and horizontal ordinate; Or
Described coordinate is pole axis coordinate system, and described the first coordinate and the second coordinate are respectively utmost point footpath and polar angle, or described the first coordinate and the second coordinate are respectively polar angle and utmost point footpath.
Further, the coordinate of described time writer first make contact is (x1, y1);
The first coordinate figure of the second described contact point is x2;
The second coordinate figure of the 3rd described contact point is y3;
The actual coordinate value of the second described coordinate is y2=y3-(y3-y1) * C, and wherein, C is time coefficient, C=t1/ (t1+t2).
A nearly step, described time writer first make contact coordinate is (x1, y1);
The first coordinate figure of the second described contact point is y2;
The second coordinate figure of the 3rd described contact point is x3;
The actual coordinate value of the second described coordinate is x2=x3-(x3-x1) * C, and wherein, C is time coefficient, C=t1/ (t1+t2).
Described time writer moves to the second contact point and moves to the 3rd contact point at the uniform velocity moving from the second contact point from first make contact on magnetic board.
A kind of electromagnetic induction device, has magnetic board and the time writer of the electromagnetic signal of interacting, and this device comprises:
Control module, for determining the coordinate of time writer first make contact of touch-control on magnetic board, detect time writer and after very first time t1, on magnetic board, in the time that first make contact moves to the second contact point, determine the first coordinate figure of the second contact point, and time writer while moving to three contact point from the second contact point through the second time t2 on magnetic board, determines the second coordinate figure of the 3rd contact point; With
Correcting unit, for obtaining the actual coordinate value of the second coordinate of the second contact point according to the second coordinate figure of the first coordinate figure of the coordinate figure of first make contact, the second contact point and the 3rd contact point and very first time t1 and the second time t2.
Further, in above-mentioned electromagnetic induction device, definite employing the same coordinate system of the second coordinate figure of the first coordinate figure of the coordinate of described first make contact, the second contact point and the 3rd contact point;
Described coordinate is rectangular coordinate system, and described the first coordinate figure and the second coordinate figure are respectively horizontal ordinate and ordinate, or described the first coordinate and the second coordinate are respectively ordinate and horizontal ordinate; Or
Described coordinate is pole axis coordinate system, and described the first coordinate and the second coordinate are respectively utmost point footpath and polar angle, or described the first coordinate and the second coordinate are respectively polar angle and utmost point footpath.
Further, in above-mentioned electromagnetic induction device, the coordinate of described first make contact is (x1, y1);
The first coordinate figure of the second described contact point is x2;
The second coordinate figure of the 3rd described contact point is y3;
The actual coordinate value of the second described coordinate is y2=y3-(y3-y1) * C, and wherein, C is time coefficient, C=t1/ (t1+t2).
Further, in above-mentioned electromagnetic induction device, described first make contact coordinate is (x1, y1);
The first coordinate figure of the second described contact point is y2;
The second coordinate figure of the 3rd described contact point is x3;
The actual coordinate value of the second described coordinate is x2=x3-(x3-x1) * C, and wherein, C is time coefficient, C=t1/ (t1+t2).
Further, in above-mentioned electromagnetic induction device, described time writer moves to the second contact point and moves to the 3rd contact point at the uniform velocity moving from the second contact point from first make contact on magnetic board.
Advantage of the present invention is:
Adopt method for correcting coordinate provided by the invention, solve time writer and when touch-control moves on magnetic board, measured the problem that coordinate and actual motion track depart from, contribute to accurately to show the time writer movement locus that touch-control moves on magnetic board, fully improve user's Experience Degree.
Brief description of the drawings
Fig. 1: existing magnetic board is measured the process flow diagram of coordinate;
Fig. 2: the track that existing time writer moves on magnetic board and the track of measuring coordinate formation;
Fig. 3: the inventive method embodiment provide method for correcting coordinate process flow diagram;
The motion track schematic diagram of what Fig. 4: the inventive method embodiment mono-provided first survey X-axis coordinate time time writer;
The motion track schematic diagram of what Fig. 5: the inventive method embodiment bis-provided first survey Y-axis coordinate time time writer;
The structural representation of the electromagnetic induction device that Fig. 6: apparatus of the present invention embodiment provides.
Embodiment
The method for correcting coordinate of electromagnetic induction device of the present invention is mainly the actual coordinate while utilizing the measurement coordinate figure of time writer different contact points on magnetic board and time coefficient to obtain time writer to move on magnetic board.Concrete grammar is the coordinate of first determining time writer first make contact of touch-control on magnetic board, and then determine through the second contact point coordinate of time writer touch-control on magnetic board after a while, secondly determine that the first coordinate to the 3rd contact point being detected by magnetic board and time are determined calibration coordinate through the 3rd contact point coordinate of a period of time time writer touch-control on magnetic board again.
Method for correcting coordinate in measuring below in conjunction with Fig. 3-6 explanation the present invention.Fig. 3 is the overview flow chart of the method for correcting coordinate during the present invention measures.Coordinate system of the present invention can be rectangular coordinate system or pole axis coordinate system, or other coordinate system.Below the coordinate system in embodiment adopts rectangular coordinate system, supposes that the summit in the magnetic board upper left corner is (0,0), and the coordinate on summit, the lower right corner is (Xmax, Ymax).
Embodiment 1:
While movement on magnetic board with time writer, first measure X-axis coordinate, then to measure Y-axis coordinate be example explanation method for correcting coordinate.
Fig. 4 is time writer motion track schematic diagram, contact point when C point moves on magnetic board for time writer in figure, and its coordinate is (x1, y1).When magnetic board is measured and proofreaied and correct after C point coordinate, magnetic board internal controller is carried out data processing and is sent coordinate (x1 to main frame, y1), be designated as during this period of time t1, after elapsed time t1, time writer moves to D point place, and now magnetic board control circuit is set and first measured the X-axis coordinate that D is ordered, and this X-axis coordinate figure is designated as x2.Then magnetic board internal controller need to be processed X-axis measurement data, that processes measured value is designated as t2 during this period of time, after elapsed time t2, measure again Y-axis coordinate, but through t2 during this period of time after time writer actual motion arrived E point position, Y-axis that now E is ordered is measured coordinate figure and is designated as y3.The coordinate points (x2, y3) that coordinate figure x2 and y3 represent thus, corresponding to the F point in Fig. 3, is also the coordinate position that F point is magnetic board actual measurement time writer.Therefore can find out measure time writer coordinate position obviously and D point (x2, the y2) coordinate of required measurement in the actual motion track of time writer be not inconsistent.Need the calibration coordinate y2 that finds D to order for this reason.
Can know, in the time that time writer moves to D point from C point, average velocity v1=(the y2-y1)/t1 in Y-axis amount; In the time that time writer moves to E point from C point, average velocity v2=(y3-y1) in Y-axis amount/(t1+t2), because the cycle of the measurement coordinate of magnetic board is very short, for several milliseconds of magnitudes, therefore can suppose that time writer is uniform motion from C point through time writer in the time of D point or this Millisecond of ordering to E from C point, there is v1=v2, so can obtain following formula:
(y2-y1)/t1=(y3-y1)/(t1+t2), after arrangement, obtain y2=y3-(y3-y1) * t1/ (t1+t2), due to t1, t2 is constant, make C=t1/ (t1+t2), y2=y3-(y3-y1) * C, can obtain by the measured Y-axis coordinate y3 of reality and more front Y-axis coordinate y1 Y-axis coordinate y2=y3-(y3-y1) the * C of real time writer loca.
Embodiment 2:
When again the present invention movement on magnetic board with time writer, first measure Y-axis coordinate below, then to measure X-axis coordinate be example explanation method for correcting coordinate.
Fig. 5 is time writer motion track schematic diagram, contact point when C1 point moves on magnetic board for time writer in figure, and its coordinate is (x1, y1).When magnetic board is measured and proofreaied and correct after C1 point coordinate, magnetic board internal controller is carried out data processing and is sent coordinate (x1 to main frame, y1), be designated as during this period of time t1, after elapsed time t1, time writer moves to D1 point place, and now magnetic board control circuit is set and first measured the Y-axis coordinate that D1 is ordered, and this Y-axis coordinate figure is designated as y2.Then magnetic board internal controller need to be processed Y-axis measurement data, that processes measured value is designated as t2 during this period of time, after elapsed time t2, measure again X-axis coordinate, but through t2 during this period of time after time writer actual motion arrived E1 point position, X-axis that now E1 is ordered is measured coordinate figure and is designated as x3.The coordinate points (x2, y3) that coordinate figure x2 and y3 represent thus, corresponding to the F1 point in Fig. 3, is also the coordinate position that F1 point is magnetic board actual measurement time writer.Therefore can find out measure time writer coordinate position obviously and D1 point (x2, the y2) coordinate of required measurement in the actual motion track of time writer be not inconsistent.Need the calibration coordinate x2 that finds D1 to order for this reason.
Can know, in the time that time writer moves to D1 point from C1 point, average velocity v1=(the x2-x1)/t1 in X axis amount; In the time that time writer moves to E1 point from C1 point, average velocity v2=(x3-x1) in X axis amount/(t1+t2), because the cycle of the measurement coordinate of magnetic board is very short, for several milliseconds of magnitudes, therefore can suppose that time writer is uniform motion from C1 point through time writer in the time of D1 point or this Millisecond of ordering to E1 from C1 point, there is v1=v2, so can obtain following formula:
(x2-x1)/t1=(x3-x1)/(t1+t2), after arrangement, obtain x2=x3-(x3-x1) * t1/ (t1+t2), due to t1, t2 is constant, make C=t1/ (t1+t2), x2=x3-(x3-x1) * C, can obtain by the measured X-axis coordinate x3 of reality and more front X-axis coordinate x1 X-axis coordinate x2=x3-(x3-x1) the * C of real time writer loca.
No matter time writer from which angle moves up or down on magnetic board, straight line or curve movement, and the calibration coordinate that time writer moves all can obtain by above-mentioned bearing calibration.
Be illustrated in figure 6 the coordinates correction apparatus structure schematic diagram in magnetic board measurement of the present invention, this device comprises control module 1 and correcting unit 2, wherein control module 1 detects the first make contact coordinate that time writer contacts with magnetic board, while detecting after time writer traveling time t1 to the second contact point, determine the first coordinate figure of the second contact point, and detect and while moving to the 3rd contact point after time writer elapsed time t2, determine the coordinate figure of described the 3rd contact point at described coordinate system the second coordinate.Correcting unit 2 calculates the coordinate figure of the second contact point at described coordinate system the second coordinate according to the above-mentioned coordinate figure of first make contact, the second contact point and the 3rd contact point and time t1 and t2.
Should be appreciated that the above detailed description of technical scheme of the present invention being carried out by preferred embodiment is illustrative and not restrictive.Those of ordinary skill in the art modifies reading the technical scheme that can record each embodiment on the basis of instructions of the present invention, or part technical characterictic is wherein equal to replacement; And these amendments or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.