EFeru / hoverboard-firmware-hack-FOC

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

Can i INVERT_DIRECTION with USART variant? #498

Open OM-3kChcBjgFR2COfP opened 3 months ago

OM-3kChcBjgFR2COfP commented 3 months ago

Variant

USART

Control type

FOC

Control mode

Torque

Description

How i can change all weels direction in variant usart?

PuceBaboon commented 3 months ago

Hi,

The speed and steering values are -signed- integers. If you send a negative value (say -100) the wheel will turn backwards.

-John-

On Sun, 23 Jun 2024 at 00:05, OM-3kChcBjgFR2COfP @.***> wrote:

Variant

USART Control type

FOC Control mode

Torque Description

How i can change all weels direction in variant usart?

— Reply to this email directly, view it on GitHub https://github.com/EFeru/hoverboard-firmware-hack-FOC/issues/498, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACRO2WIM2O6TQ55BGJ5IIL3ZIWHCDAVCNFSM6AAAAABJXQDZTCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGM3DOOBWGY2TQNQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

OM-3kChcBjgFR2COfP commented 3 months ago

yea, i know about this 😅. But i think it's little wrong drive forward when press back direction. is it possible to change direction with software way?

Kambodia91 commented 3 months ago

copy this line to the USART variant you are currently using and try https://github.com/EFeru/hoverboard-firmware-hack-FOC/blob/efb438bf514c9f8c80471f79ab87d2f7099746ea/Inc/config.h#L594

I-hate-2FA commented 3 months ago

easy just *-1

OM-3kChcBjgFR2COfP commented 3 months ago

copy this line to the USART variant you are currently using and try

https://github.com/EFeru/hoverboard-firmware-hack-FOC/blob/efb438bf514c9f8c80471f79ab87d2f7099746ea/Inc/config.h#L594

ok, will try it

OM-3kChcBjgFR2COfP commented 3 months ago

easy just *-1

where *-1 ? I whant change weels direction, not a driving logic, i can change varible on RC controller, but rover still drive backward

Kambodia91 commented 3 months ago

copy this line to the USART variant you are currently using and try https://github.com/EFeru/hoverboard-firmware-hack-FOC/blob/efb438bf514c9f8c80471f79ab87d2f7099746ea/Inc/config.h#L594

ok, will try it

did it work?