You are here

VESC Firmware

[Contributing][FOC] injected ADC and code clarity

Submitted by Guillaume227 on Fri, 2017-12-15 18:00

in the FOC code (mcpwm_foc.c), there is a variable called last_inj_adc_isr_duration.

My understanding, looking at the mcpwm_foc_init method is that injected ADC are not used (they are used in BLDC mode). Only regular conversion is used.

Also, that variable is updated in mcpwm_foc_adc_int_handler whereas the corresponding bldc variable is updated in mcpwm_adc_inj_int_handler, so it's all a bit misleading.

To make things more complicated, there is an interface method that blends the two concepts (mc_interface_get_last_inj_adc_isr_duration).

Calculation of Current and Voltage

Submitted by Christian on Tue, 2017-12-12 10:12

Hi,

I'm new to the VESC and want to make a position control with the vesc via NRF. Now I am facing the problem that my Motorcurrent is measured wrong all the time. So my question so far is,

how is the 4095.0 calculated or where does it come from? All V_REG are divided by this number.

 

Tanks for your help in advance,

Christian

VESC for Multirotor / Betaflight flight controller SBUS input

Submitted by Autek-Xracing on Sun, 2017-11-26 01:39

Hi,

I'm developing a fairly large experimental racing drone and have bought a set of 4 VESC's to use on this monster.

Yes it may seem excessive, however I've come to this after testing quite a few large multirotor ESC's - none up them are up to the toque loads and voltage spikes created by a system of this size. I'm not an electronics or firmware expert, more of a frame designer so not really sure how to get the flight controller to communicate to the VESC.

Upgraded from 2.18 to 3.33 - Lost Telemetry

Submitted by ervinelin on Thu, 2017-11-23 09:09

Hi guys,

I was running my old VESC on 2.18 and I upgraded to 3.33 and now I can't get my telemetry to work again, I was using RollingGecko's VescUartControl library and I suspect the library has not been updated to reflect the latest changes to 3.33...

Any ideas how I can fix this?

Thanks!
Ervine

Adding support for three phase shunts...

Submitted by Roger Wolff on Wed, 2017-11-08 16:03

Hi, My hardware has always had three phase shunts. I'm only now getting to the point where I'm starting to enable that in the firmware. 

Now I have arranged for the ADC vector to hold the extra current sample and defined its index. That's just fine. But when I enable HW_HAS_3_SHUNTS and command the motor to run at 1.5A, the motor jolts  as if it gets a 50 or 100A current spike. Doing a "sample when the motor starts" shows a 50 to 100A current spike. 

set current with custom app

Submitted by sirAnton on Thu, 2017-10-12 12:42

Hello, i have tried to write a custom app to set the max batt current (or better wattage) in runtime. My custom app started and can debug writes in the VESC Terminal.
Which function should i used to do that?   mc_interface_set_current_rel(10); does not work.

Edit: I used hw 4.12, und start the ADC app for speed control + My custom app

Help with Focbox firmware / bootloader upgrade [VESC TOOL]

Submitted by Enigmacpl03 on Thu, 2017-10-05 17:21

Hey guys,

So I installed new motors on my build and when I hooked up my vesc's to vesc tools, I received the error that my firmware was old and I needed to update. (FW3.26) ( HW410)

On my master vesc, everything worked out fine it is now running 3.29. My slave foc seems to show signs of a missing bootloader. I go to update the firmware it shows complete, the vesc shuts off but does not restart.

how update from 2.18 to the latest firmware

Submitted by aysubscriber@ic... on Tue, 2017-10-03 07:39

Hi, for a couple days I try to figure out how to upgrade the firmware. I have 4.12 vesc with 2.18 fw. 

Could you give me clear direction how to upgrade to latest fw?

This question is rized becouse the latest bldc-tool I uploaded from benjamin git-hub (don't know how to see the version of the bldc-tool ) can upgrade to 2.18 fw. 

The latest vesc-tool from vesc-project.com show message it can work properly only with 3.x version of the fw.

Pages

Subscribe to RSS - VESC Firmware