A method for rock drilling, the method comprising: drilling a plurality of drill holes as a desired pattern in rock with at least one drilling unit; presenting graphically drill hole information on the drilling pattern in a display image of a display device; positioning the drilling unit at the point of a drill hole to be drilled by means of a drilling boom; determining the real position of the drilling unit, which comprises location and direction information; controlling positioning of the drilling unit by means of at least one control unit; giving, by means of at least one manual control member, a target for the location and direction of the drilling unit in relation to the real position; transmitting the target given by means of the control member to the control unit and processing the target in the control unit without direct control of actuators influencing the position of the drilling unit; determining in the control unit the required control movements for actuators, taking into account the target position and the real position; controlling the actuators by means of the control unit and moving the drilling unit towards the given target position; characterized by connecting each individual direction of motion of the manual control member to influence the target position of the drilling unit in relation to only one coordinate or direction angle; and using intuitive connection in moving the target position and the control member, whereby the real directions of motion of the drilling unit and the control member correspond to each other such that the directions of motion of the control member are connected to the directions presented in the display image in the drilling mode. drilling a plurality of drill holes as a desired pattern in rock with at least one drilling unit; presenting graphically drill hole information on the drilling pattern in a display image of a display device; positioning the drilling unit at the point of a drill hole to be drilled by means of a drilling boom; determining the real position of the drilling unit, which comprises location and direction information; controlling positioning of the drilling unit by means of at least one control unit; giving, by means of at least one manual control member, a target for the location and direction of the drilling unit in relation to the real position; transmitting the target given by means of the control member to the control unit and processing the target in the control unit without direct control of actuators influencing the position of the drilling unit; determining in the control unit the required control movements for actuators, taking into account the target position and the real position; controlling the actuators by means of the control unit and moving the drilling unit towards the given target position; characterized by connecting each individual direction of motion of the manual control member to influence the target position of the drilling unit in relation to only one coordinate or direction angle; and using intuitive connection in moving the target position and the control member, whereby the real directions of motion of the drilling unit and the control member correspond to each other such that the directions of motion of the control member are connected to the directions presented in the display image in the drilling mode.