Other Parts Discussed in Thread: MOTORWARE, CONTROLSUITE
Hi all:
I want add DATA_DLOG to watch some EST values. I saw Chris had posted document follow:
- in the GUI project we do this:
//init
int16_t DlogCh1 = 0;
DLOG_4CH dlog = DLOG_4CH_DEFAULTS;
int16_t *dlogptr1;
int16_t DLOG_4CH_buff1[ANGLE_BUFFER_SIZE];
int16_t gGraphPrescaler = 1;
dlog.iptr1 = &DlogCh1;
dlog.trig_value = 0x5;
dlog.size = ANGLE_BUFFER_SIZE;
dlog.prescalar = gGraphPrescaler;
dlog.init(&dlog);
//background
if(Gui.gDirection>0)
{
dlog.trig_value = 0x5;
}
else
{
dlog.trig_value = -0x5;
}
if(gGraphPrescaler<1)
{
gGraphPrescaler = 1;
}
dlog.prescalar = gGraphPrescaler;
//inside main ISR
Gui.gRotorFluxAngle = EST_getAngle_pu(obj->estHandle);
DlogCh1 = (int16_t)_IQtoIQ15(Gui.gRotorFluxAngle);
dlog.update(&dlog);
I move these coder into lab5e,but there is a wrong appear,like this:
I have add this sentence:
there is a error on" EST_Obj *obj = (Est_Obj *) estHandle."
I don't know why , please help .
Best regard!
thanks !

