EFeru / hoverboard-firmware-hack-FOC

With Field Oriented Control (FOC)
GNU General Public License v3.0
1.05k stars 876 forks source link

Torque curve #465

Closed Amitkor12 closed 5 months ago

Amitkor12 commented 5 months ago

Variant

USART

Control type

FOC

Control mode

Torque

Description

I need to get current values of both motor during runtime. I tried to get the value on serial terminal from the adc buffer dc_l and dc_r. Than from this I need to map a time vs current graph. Not only this but I need to have a torque curve on which I have no idea how to achieve it. Any hint or idea will be appreciated. Thank You.

Candas1 commented 5 months ago

As always the answer is already in the wiki

The webtool has a specific option to read that version of the protocol. image

you could also use a tool like stmviewer to trace any variable, I described in another forum how to use it.

Amitkor12 commented 5 months ago

OK, I will try this tomorrow.

Edit:: I was trying to use Teamviewer to trace the variable, I am using the platform build settings, as discussed in the forum. But the address is not getting updated (NOT FOUND). Any idea what I may do wrong? For the gdb part, I have it in my path. Apart from this anything I am missing?

Edit : I also updated the gdb version to 14.1 . Still no luck!!!

Edit : This issue is solved, issue was in the path where .elf file was located.

Amitkor12 commented 5 months ago

What do these values indicate