MCDRV_QdEncGet

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MCDRV_QdEncGet

2,029 Views
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 Kudos
7 Replies

1,896 Views
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 Kudos

2,025 Views
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 Kudos

2,020 Views
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 Kudos

1,960 Views
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 Kudos

1,947 Views
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 Kudos

1,930 Views
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 Kudos

2,014 Views
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 Kudos