For using VESC in wind and water turbines, I would like to suggest a FOC algorithm which maximizes power output into the battery. From there a standard grid tied micro inverter can pickup the power and feed it to the grid. The algorithm would also increase or decrease the rotation frequency depending on whatever generates more power.
Or is this kind of control is better done by a standalone controller which talks to the vesc? The big advantage of running directly on the vesc would be the near realtime execution.