Skip to content

[BUG] <title>foc feedforward #3047

@binsruby

Description

@binsruby

Description / Steps to reproduce the issue

the function foc_feedforward_pmsm_b16 in foc_feedforward.c, vdq_comp->q should use idq->d, not idq->q

/* NOTE: vdq_comp is substracted from vdq_ref in foc_current_control()

  • so vq compensation must be negative here.
    */

vdq_comp->q = -b16mulb16(vel_now,
(phy->flux_link + b16mulb16(phy->ind,
idq->q)));
vdq_comp->d = b16mulb16(b16mulb16(vel_now, phy->ind), idq->q);

On which OS does this issue occur?

[OS: Windows]

What is the version of your OS?

WIN10

NuttX Version

master

Issue Architecture

[Arch: all]

Issue Area

[Area: Industry]

Verification

  • I have verified before submitting the report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions