I am working on a project where I need to make my alternator act as a generator and charge the battery.
can someone tell me what setting should I change to make it charge the battery?
Battery specification:
Car battery
Voltage [V]: 12
Cold test current EN [A]: 390
Battery Capacity [Ah]: 46
Terminal type: EN
Not sure what the thought process behind the decision to use a complex device like VESC for a simple task. It would be an overkill for this and a likely point of failure.
All you need is a regular car alternator rectifier widely available dirt cheap. Most alternators actually come already equipped with the rectifying and regulating circuit, so you don't need anything else. Just connect it directly to the battery.
NextGen FOC High voltage 144v/34s, 30kw (https://vesc-project.com/node/1477)