You are here

VESC Firmware

VESC not reporting ah charged or wh charged

Submitted by trevorjones on Sun, 2021-05-02 06:59

I am trying to collect some data from my VESC and for some reason it is always reporting that ah charged and wh charged are 0, despite the fact that I am able to use regen braking and both the motor and battery current are negative while I am doing so. Does anyone know why this might be the case? I am using firmware version 5.2, hardware version 4.12, and VESC tool version 3.00.

How to add offset Current on 4.10 FW

Submitted by hideo040401 on Mon, 2021-04-19 19:22

Hi, i just fixing some custom vesc that using 4.10 firmware, i little bit struggle on the current sensor calculation, when 0 amp, it has voltage output from sensor = 1.668V. where i should add the offset voltage (1.668 - 1.65 = 0.018V) on the firmware? i am looking on the hw_410.h code and mcpwm.h and still cant find it, Thank you

Why such an old ChibiOS?

Submitted by jackherer on Fri, 2021-04-16 17:03

I'm a very cutting edge kinda guy when it comes to software. I see we a e now on ChibiOS 20.3.3 bit vesc is still using 3.0.5!! That version is now 5 years old, and with 17 major versions released in that time, I reckon it might be an idea to upgrade the ChibiOS version. 

 

I'm only a basic C programmer though (I'm a python guy, meaning to learn C for the past ten years 🤣) 

Query regarding removing code that is not needed for my project

Submitted by jackherer on Thu, 2021-04-15 21:41

I am wanting to remove all the code from the VESC firmware that I will never need. So I will never use any kind of servo, and so I don't need all the encoder code then??

I will only be using hall sensors or sensorless.

As I'm going through the code and removing everything related to servos and encoders I came across the mc_interface_get_pid_pos_now function in mc_interface.c:

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

Submitted by jackherer on Thu, 2021-04-15 17:25

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. 

 

Need help understanding how VESC firmware works

Submitted by khojka on Sun, 2021-04-11 16:55

Hi,

I have a VESC and I'd like to see how it works. I tried reading the firmware source code but it isn't exactly clear for me how and where the motor is commutated, i.e. where the actual code that does that is. So, where can I find the thread (I'm assuming) that spins the motor?

Thanks

VESC Firmware Change, No Longer Connects

Submitted by wj311 on Wed, 2021-03-10 22:40

I am using a VESC 6 MK V from Trampaboards while following the build guidelines given by the F1Tenth competition procedures on Ubuntu 20.04. However, these instructions are seemingly out of date and I had no way to interface with servos, previously done by servoout.bin in the firmware configuration. After looking at multiple versions of the tool (2.03, 2.06, and 3.0) I still could not find a pre-made solution.

Pages

Subscribe to RSS - VESC Firmware