MCDRV_QdEncGet

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MCDRV_QdEncGet

3,283件の閲覧回数
FaustoPignatta
Contributor I

Hi,

in this function I find this piece of code

/* tracking observer calculation */
this->f16PosMeEst = (frac16_t)AMCLIB_TrackObsrv_A32af(this->a32PosErr, &this->sTo);

My question is: why use AMCLIB_TrackObsrv_A32af library function if we read the signal from encoder?

Also the speed seem to be "estimated"

/* speed estimation by the tracking observer */
this->fltSpdMeEst = this->sTo.fltSpeed;

Thanks,

Fausto

0 件の賞賛
返信
7 返答(返信)

3,150件の閲覧回数
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

The code located at <mcdrv_enc_qd.c> file MCDRV_QdEncGet() function, which is related driver for encoder.

The AN12659 provides the detailed info about hardware connections:

Hui_Ma_0-1651736400749.png

Hui_Ma_1-1651736473531.png

Hui_Ma_2-1651736586730.png

 

Thank you for the attention.

Mike

0 件の賞賛
返信

3,279件の閲覧回数
nxf45548
NXP Employee
NXP Employee

Thank you for contacting NXP technical support. 
To provide you with better support, can you please let us know the part number you are using?
Are you using an S32K, KE, LPC800, etc? 

0 件の賞賛
返信

3,274件の閲覧回数
FaustoPignatta
Contributor I

Hi,

I'm using ImxRt1050 with the quad motor control develpment platform.

The version of SDk is 2.11.0.

Thank you,

 

0 件の賞賛
返信

3,214件の閲覧回数
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

Could you help to provide the demo name or demo location at RT1050 SDK V2.11.0 package? Thanks.

Mike

 

0 件の賞賛
返信

3,201件の閲覧回数
FaustoPignatta
Contributor I

Hi,

it isn't a project from 2.11 sdk version. The project name is Quad-Motor-Control-FreeMASTER-Project-Sample-Project.

Thanks,

Fausto

0 件の賞賛
返信

3,184件の閲覧回数
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

Thank you for the info.
I am in progress to get related demo codes be downloaded and will check related project later.
Thank you for the patience.

Hui_Ma_0-1651222184244.png

Mike

0 件の賞賛
返信

3,268件の閲覧回数
nxf45548
NXP Employee
NXP Employee

Thank you for the clarification.
I'll redirect the inquiry to our product specialist and they could further assist you. 

0 件の賞賛
返信