摘要 |
PROBLEM TO BE SOLVED: To provide a portable terminal, a program and a method, capable of using differently and automatically the first traveling direction determination technology wherein a terminal attitude is not fluctuated from the second traveling direction determination technology wherein a terminal attitude is fluctuated by arm swing, by discriminating a fluctuation state of the terminal attitude. SOLUTION: The portable terminal includes a variation calculation means having a geomagnetic sensor for outputting a triaxial geomagnetic vector, for calculating a variation of the direction of the geomagnetic vector to the portable terminal; and an attitude state discrimination means for discriminating that the portable terminal is in the attitude non-fluctuating state when the variation is below a prescribed threshold, and that the portable terminal is in the attitude fluctuating state in the other case. The variation calculation means has a normalizing means for normalizing the geomagnetic vector, a geomagnetic vector variation calculation means for calculating a geomagnetic vector variation C from the normalized geomagnetic vector, and a moving average variation calculation means for calculating a moving average variation Ca of a prescribed number n of variations C. COPYRIGHT: (C)2010,JPO&INPIT |