A method of controlling a vehicle, the method comprising:
- detecting, by a first angle detector, a first rotation angle of a first seat provided in front of rear seats;
- detecting, by a second angle detector, a second rotation angle of a second seat provided in front of the rear seats;
- controlling, by a controller, activation of a fixed type of roof airbag module when the first rotation angle detected by the first angle detector is greater than a first reference angle and less than or equal to a second reference angle;
- controlling, by a controller, activation of the fixed type of roof airbag module and a movable type of roof airbag module when the second rotation angle detected by the second angle detector is greater than the second reference angle and less than or equal to a third reference angle;
- determining, by a controller, whether a collision with an obstacle has occurred during traveling;
- and
- deploying and expanding, by a controller, the activated airbag module when determining that a collision with the obstacle has occurred,
- wherein the first seat is provided on a first side in a front of an interior a body of the vehicle, the second seat is provided on a second side in the front of the interior, and the first seat and the second seat are front seats;
- wherein the rear seats are provided in a rear of the interior;
- wherein the fixed type of roof airbag module is provided in a first area of a headlining, with a fixed position in the first area,
- wherein the first area of the headlining is an area between an area corresponding to the first seat and an area corresponding to the second seat of areas of the headlining, when the front and rear seats face forward;
- wherein the movable type of roof airbag module is provided in a rail member and configured to be movable in left-and-right directions along the rail member,
- wherein the rail member is provided in a second area of the headlining and provided in a direction from left to right of the body,
- wherein the second area is an area between an area corresponding to the front seats and an area corresponding to the rear seats of the areas of the headlining, when the front and rear seats face forward;
- wherein the first angle detector is provided on the first seat and configured to detect a first rotation angle with respect to rotation of the first seat in a first direction,
- wherein the first direction is a clockwise direction based on a zero-degree position of the first seat,
- wherein the zero-degree position of the first seat is a position when the first seat faces forward,
- wherein the second angle detector is provided on the second seat and configured to detect a second rotation angle with respect to rotation of the second seat in a second direction,
- wherein the second direction is a counterclockwise direction based on a zero-degree position of the second seat, and
- wherein the zero-degree position of the second seat is a position when the second seat faces forward.