You are here

What are the meaning of some of the MCCONF values...

4 posts / 0 new
Last post
jackherer
Offline
Last seen: 4 months 1 week ago
VESC Free
Joined: 2021-03-30 19:20
Posts: 8
What are the meaning of some of the MCCONF values...

When looking at the firmware code in order to develop a custom firmware version, I have found most of the code to be self expanatory. 

But there are a few defines that are bugging me.

So firstly what is MCCONF_L_IN_CURRENT_MAX in mcconf? I am not sure if its for the max current from regen braking back to the battery or if its max current from the battery into the controller. 

 

TechAUmNu
Offline
Last seen: 2 months 3 weeks ago
Joined: 2017-09-22 01:27
Posts: 575

Its the max input current from the battery

 

#ifndef MCCONF_L_IN_CURRENT_MAX
#define MCCONF_L_IN_CURRENT_MAX             60.0    // Input current limit in Amperes (Upper)
#endif

#ifndef MCCONF_L_IN_CURRENT_MIN
#define MCCONF_L_IN_CURRENT_MIN             -60.0   // Input current limit in Amperes (Lower)
#endif

jackherer
Offline
Last seen: 4 months 1 week ago
VESC Free
Joined: 2021-03-30 19:20
Posts: 8

Ahh, so the MCCONF_L_IN_CURRENT_MAX is the current from the battery and  MCCONF_L_CURRENT_MAX is the current from vesc to motor?

// Limits
#ifndef MCCONF_L_CURRENT_MAX
#define MCCONF_L_CURRENT_MAX			60.0	// Current limit in Amperes (Upper)
#endif
#ifndef MCCONF_L_CURRENT_MIN
#define MCCONF_L_CURRENT_MIN			-60.0	// Current limit in Amperes (Lower)
#endif
#ifndef MCCONF_L_IN_CURRENT_MAX
#define MCCONF_L_IN_CURRENT_MAX			20.0	// Input current limit in Amperes (Upper)
#endif
#ifndef MCCONF_L_IN_CURRENT_MIN
#define MCCONF_L_IN_CURRENT_MIN			-20.0	// Input current limit in Amperes (Lower)
#endif
#ifndef MCCONF_L_MAX_ABS_CURRENT
#define MCCONF_L_MAX_ABS_CURRENT		70.0	// The maximum absolute current above which a fault is generated

 

So what are the MIN values for then? 

 

thanks

 

JamieJackHerer

hideo040401
Offline
Last seen: 3 years 7 months ago
Joined: 2020-10-10 13:16
Posts: 2

MCCONF_L_CURRENT_MAX its for the current going into the the motor 

and MIN is for the minimal current input but if the value below 0 it will be for the max current for the regenerative braking