摘要 |
A computer-readable program product contains a program for a portable device 100. The program is executed upon a portable device comprising an acceleration sensor 140 that detects accelerations in three axial directions and a calculation device. The program causes the calculation device to execute: a first process of detecting a stationary state of the portable device 100, and calculating tilt angles of the portable device 100; a second process of detecting the straight-ahead driving state of a vehicle to which the portable device is mounted, and calculating a rotational angle of the portable device with respect to a direction of progression of the vehicle; and a third process of converting the accelerations detected by the acceleration sensor to accelerations of the vehicle, on the basis of the tilt angles and the rotational angle. |