A power tool comprising: a housing having a motor housing portion, a handle portion, and a battery interface; a brushless direct current, DC, motor within the motor housing portion and having a rotor and a stator, wherein the rotor is configured to rotationally drive a motor shaft about a rotational axis; a switching network electrically coupled to the brushless DC motor; a movement sensor configured to measure an angular velocity of the housing of the power tool about the rotational axis; an orientation sensor configured to measure an orientation of the power tool with respect to gravity; and an electronic processor coupled to the switching network, the orientation sensor and the movement sensor and configured to implement kickback control of the power tool, wherein, to implement the kickback control, the electronic processor is configured to: control the switching network to drive the brushless DC motor, receive measurements of the angular velocity of the housing of the power tool from the movement sensor, determine that a plurality of the measurements of the angular velocity of the housing of the power tool exceed a rotation speed threshold, control the switching network to cease driving of the brushless DC motor in response to determining that the plurality of the measurements of the angular velocity exceed the rotation speed threshold, determine an initial orientation of the power tool based on information received from the orientation sensor, determine the rotation speed threshold based on the initial orientation of the power tool, determine a second orientation of the power tool based on information received from the orientation sensor that indicates that the orientation of the power tool has changed from the initial orientation, and determine an adjusted value for the rotation speed threshold based on the second orientation of the power tool. a housing having a motor housing portion, a handle portion, and a battery interface; a brushless direct current, DC, motor within the motor housing portion and having a rotor and a stator, wherein the rotor is configured to rotationally drive a motor shaft about a rotational axis; a switching network electrically coupled to the brushless DC motor; a movement sensor configured to measure an angular velocity of the housing of the power tool about the rotational axis; an orientation sensor configured to measure an orientation of the power tool with respect to gravity; and an electronic processor coupled to the switching network, the orientation sensor and the movement sensor and configured to implement kickback control of the power tool, wherein, to implement the kickback control, the electronic processor is configured to: control the switching network to drive the brushless DC motor, receive measurements of the angular velocity of the housing of the power tool from the movement sensor, determine that a plurality of the measurements of the angular velocity of the housing of the power tool exceed a rotation speed threshold, control the switching network to cease driving of the brushless DC motor in response to determining that the plurality of the measurements of the angular velocity exceed the rotation speed threshold, determine an initial orientation of the power tool based on information received from the orientation sensor, determine the rotation speed threshold based on the initial orientation of the power tool, determine a second orientation of the power tool based on information received from the orientation sensor that indicates that the orientation of the power tool has changed from the initial orientation, and determine an adjusted value for the rotation speed threshold based on the second orientation of the power tool. control the switching network to drive the brushless DC motor, receive measurements of the angular velocity of the housing of the power tool from the movement sensor, determine that a plurality of the measurements of the angular velocity of the housing of the power tool exceed a rotation speed threshold, control the switching network to cease driving of the brushless DC motor in response to determining that the plurality of the measurements of the angular velocity exceed the rotation speed threshold, determine an initial orientation of the power tool based on information received from the orientation sensor, determine the rotation speed threshold based on the initial orientation of the power tool, determine a second orientation of the power tool based on information received from the orientation sensor that indicates that the orientation of the power tool has changed from the initial orientation, and determine an adjusted value for the rotation speed threshold based on the second orientation of the power tool.