You are here

Control System of VESC

3 posts / 0 new
Last post
mm_iem
Offline
Last seen: 5 months 1 week ago
VESC Free
Joined: 2021-05-31 10:01
Posts: 3
Control System of VESC

So I'm new to the VESC world. But maybe some of you guys could help me out with a little information.

I have seen the VESC Git repo: https://github.com/vedderb/bldc

But can someone tell me were are the functions defined for the control system?

When I use the VESC in FOC mode, I need to calculate the parameters like I_d and I_q but in which folder or part of Benjamins Code are those calculations.

And afterwards I need to calculate my PWM duty cycles for the MOSFETS of the VESC. So again in which code lines is this happening.

Would be great if someone of you could help me here.

ashaeaves
Offline
Last seen: 7 months 1 week ago
Joined: 2021-11-17 08:47
Posts: 1

I would like to know the answer to this question as well.

io games

kubark42
Offline
Last seen: 1 month 3 weeks ago
VESC Free
Joined: 2020-07-17 18:46
Posts: 54

If you're looking for the current control loop, you can find it at https://github.com/vedderb/bldc/blob/fff18eb/mcpwm_foc.c#L3686