| CPC E21B 44/06 (2013.01) [E21B 3/02 (2013.01); E21B 7/04 (2013.01); E21B 21/08 (2013.01); E21B 47/024 (2013.01)] | 14 Claims |

|
1. A method of controlling a toolface of a downhole tool, comprising:
determining the toolface of the downhole tool;
determining a toolface setpoint;
determining, based on the toolface and the toolface setpoint, a toolface error;
selecting, based on the toolface error, one or more drilling parameter setpoints from among multiple drilling parameter setpoints;
adjusting the selected one or more drilling parameter setpoints; and
adjusting the toolface of the downhole tool, via one or more drilling controllers, based on the adjusted one or more drilling parameter setpoints input to the one or more drilling controllers, wherein the toolface error is indicative of at least a direction of a difference between the toolface of the downhole tool and the toolface setpoint, and
selecting, based on the toolface error, one or more first drilling parameter setpoints from among the multiple drilling parameter setpoints or one or more second drilling parameter setpoints from among the multiple drilling parameter setpoints, wherein the one or more first drilling parameter setpoints are different setpoints than the one or more second drilling parameter setpoints, comprising:
selecting the one or more first drilling parameter setpoints in response to the toolface error indicating that the toolface setpoint is located in a counter-clockwise direction relative to the toolface of the downhole tool; and
selecting the one or more second drilling parameter setpoints in response to the toolface error indicating that the toolface setpoint is located in a clockwise direction relative to the toolface of the downhole tool.
|