simplefoc / Arduino-FOC

Arduino FOC for BLDC and Stepper motors - Arduino Based Field Oriented Control Algorithm Library
https://docs.simplefoc.com
MIT License
1.95k stars 511 forks source link

[BUG] incorrect pins used in DRV8302 6-PWM example #345

Closed Abi-64 closed 7 months ago

Abi-64 commented 7 months ago

in this example: examples/hardware_specific_examples/DRV8302_driver/6pwm_example/encoder/full_control_serial/full_control_serial.ino Line 32: BLDCDriver6PWM driver = BLDCDriver6PWM(INH_A,INH_A, INH_B,INH_B, INH_C,INL_C, EN_GATE);

Should be: BLDCDriver6PWM driver = BLDCDriver6PWM(INH_A,INL_A, INH_B,INL_B, INH_C,INL_C, EN_GATE);

Right?

runger1101001 commented 7 months ago

Yes, it most definately should. Thanks for spotting it! I will fix it right away.

runger1101001 commented 7 months ago

Fixed in https://github.com/simplefoc/Arduino-FOC/pull/350