Patent ID: 8533998

Claim:
An apparatus for controlling an opening-and-closing member for a vehicle comprising: a latch mechanism; a driving lever configured to be interlocked with the latch mechanism; a neutral position detecting element detecting that the driving lever is in a predetermined neutral position for releasing the latch mechanism; and a controller performing a close movement, in which the driving lever is driven in one direction from the neutral position so as to hold the opening-and-closing member by means of the latch mechanism, a release movement, in which the driving lever is driven in an opposite direction from the neutral position in response to a detection of a request for a movement of the opening-and-closing member so as to release the holding of the opening-and-closing member by means of the latch mechanism, and a returning movement, in which the driving lever is driven toward the neutral position so as to return the driving lever to the neutral position after the close movement or the release movement, the controller including: a stress relaxing portion executing a driving of the driving lever in the opposite direction toward the neutral position for a predetermined time or by a predetermined distance after the close movement, in a case of a detection failure where the neutral position detecting element does not detect that the driving lever is in the neutral position, a prohibiting portion executing a prohibition of the driving of the driving lever after the driving of the driving lever in the opposite direction by means of the stress relaxing portion, in response to the detection of the request for the movement of the opening-and-closing member, and a cancelling portion cancelling the prohibition of the driving of the driving lever by means of the prohibiting portion in a case where the number of times of the detection failures is less than a predetermined plural number of times.