AC drive controller