摘要 |
Disclosed is a vehicle controller which can perform appropriate control even when an acceleration sensor is mounted in a movable portion of a vehicle. A vehicle controller includes an acceleration sensor attached to a cabin movable around a shaft, an open/closed state detection section which detects the open/closed state of the cabin, and a correction section which corrects the output value of the acceleration sensor. When the open/closed state detection section detects that the cabin is opened and then closed, the correction section performs correction. When the acceleration sensor is provided in the cabin serving as a movable portion, the inclination of the acceleration sensor may differ slightly before and after the cabin is opened. For this reason, when correction is constantly performed, a useless operation is performed, causing an increase in a control load. Therefore, correction is performed when the cabin is opened and then closed, such that the control load is reduced and accurate control is performed on the basis of the new inclination of the acceleration sensor. |