A system for controlling a wind turbine, comprising: a turbine controller configured to provide a setpoint; an operation system configured to control a parameter of wind turbine operation; and a secondary controller separated from the turbine controller by a distance, the secondary controller configured to receive the setpoint from the turbine controller through a communication interface ; wherein the secondary controller comprises an interface configured to receive one or more input signals, wherein the secondary controller is configured to adjust the setpoint to an adjusted setpoint and to provide a signal indicative of the adjusted setpoint to the operation system characterized in that the secondary controller is configured to determine the adjusted setpoint based at least in part on the one or more input signals in accordance with an adjustment routine programmed at the secondary controller , the adjustment routine providing an adjusted setpoint for each of a plurality of input conditions, wherein the adjustment routine is determined based at least in part by performing operations with the secondary controller , the operations comprising: for each of the plurality of input conditions, incrementally adjusting the setpoint among a plurality of incremental setpoints; monitoring power production of the wind turbine at each of the plurality of different incremental setpoints; and selecting the adjusted setpoint for the input condition from the plurality of incremental setpoints based at least in part on the power production associated with each incremental setpoint. a turbine controller configured to provide a setpoint; an operation system configured to control a parameter of wind turbine operation; and a secondary controller separated from the turbine controller by a distance, the secondary controller configured to receive the setpoint from the turbine controller through a communication interface ; wherein the secondary controller comprises an interface configured to receive one or more input signals, wherein the secondary controller is configured to adjust the setpoint to an adjusted setpoint and to provide a signal indicative of the adjusted setpoint to the operation system characterized in that the secondary controller is configured to determine the adjusted setpoint based at least in part on the one or more input signals in accordance with an adjustment routine programmed at the secondary controller , the adjustment routine providing an adjusted setpoint for each of a plurality of input conditions, wherein the adjustment routine is determined based at least in part by performing operations with the secondary controller , the operations comprising: for each of the plurality of input conditions, incrementally adjusting the setpoint among a plurality of incremental setpoints; monitoring power production of the wind turbine at each of the plurality of different incremental setpoints; and selecting the adjusted setpoint for the input condition from the plurality of incremental setpoints based at least in part on the power production associated with each incremental setpoint. for each of the plurality of input conditions, incrementally adjusting the setpoint among a plurality of incremental setpoints; monitoring power production of the wind turbine at each of the plurality of different incremental setpoints; and selecting the adjusted setpoint for the input condition from the plurality of incremental setpoints based at least in part on the power production associated with each incremental setpoint. <EOS>