A system comprising a wind turbine and a first control device, wherein the wind turbine comprising: a tower ; a nacelle being mounted rotatable relative to the tower around a yaw axis so that the nacelle is orientated in an actual yaw angle; a hub being mounted rotatable relative to the nacelle around a rotational axis ; at least one blade mounted to the hub ; and a generator arranged in the nacelle and comprising an electromagnetic rotor connected to the hub , wherein the generator is configured to convert a rotational energy from the electromagnetic rotor into an electrical energy; and the first control device is configured to: acquire a yaw misalignment (γ) of the wind turbine , which yaw misalignment (γ) is a difference between the actual yaw angle and a wind direction at the wind turbine ; and determine a target pitch angle (β) of the blade by calculating the target pitch angle (β) of the blade as a function of an incoming wind speed (U), a rotor speed (wrot) of the hub and the yaw misalignment (γ) to optimize a power output from the wind turbine , or a target torque (TCtrl) of the generator by calculating the target torque (TCtrl) as a function of the rotor speed (wrot) and the yaw misalignment (γ) to optimize a power output from the wind turbine . the wind turbine comprising: a tower ; a nacelle being mounted rotatable relative to the tower around a yaw axis so that the nacelle is orientated in an actual yaw angle; a hub being mounted rotatable relative to the nacelle around a rotational axis ; at least one blade mounted to the hub ; and a generator arranged in the nacelle and comprising an electromagnetic rotor connected to the hub , wherein the generator is configured to convert a rotational energy from the electromagnetic rotor into an electrical energy; and a tower ; a nacelle being mounted rotatable relative to the tower around a yaw axis so that the nacelle is orientated in an actual yaw angle; a hub being mounted rotatable relative to the nacelle around a rotational axis ; at least one blade mounted to the hub ; and a generator arranged in the nacelle and comprising an electromagnetic rotor connected to the hub , wherein the generator is configured to convert a rotational energy from the electromagnetic rotor into an electrical energy; and the first control device is configured to: acquire a yaw misalignment (γ) of the wind turbine , which yaw misalignment (γ) is a difference between the actual yaw angle and a wind direction at the wind turbine ; and determine a target pitch angle (β) of the blade by calculating the target pitch angle (β) of the blade as a function of an incoming wind speed (U), a rotor speed (wrot) of the hub and the yaw misalignment (γ) to optimize a power output from the wind turbine , or a target torque (TCtrl) of the generator by calculating the target torque (TCtrl) as a function of the rotor speed (wrot) and the yaw misalignment (γ) to optimize a power output from the wind turbine . acquire a yaw misalignment (γ) of the wind turbine , which yaw misalignment (γ) is a difference between the actual yaw angle and a wind direction at the wind turbine ; and determine a target pitch angle (β) of the blade by calculating the target pitch angle (β) of the blade as a function of an incoming wind speed (U), a rotor speed (wrot) of the hub and the yaw misalignment (γ) to optimize a power output from the wind turbine , or a target torque (TCtrl) of the generator by calculating the target torque (TCtrl) as a function of the rotor speed (wrot) and the yaw misalignment (γ) to optimize a power output from the wind turbine . <EOS>