Part Number: TMS320F28035
Other Parts Discussed in Thread: SFRA, C2000WARE,
Tool/software:
Hi,
I am following a tutorial from SFRA fixed-point step by step, why do I have the incompatibility error (Description Resource Path Location Type
declaration is incompatible with "SFRA_IQ SFRA1" (declared at line 68) ) when I get to the line below?
//SFRA Object Initialization //Specify the injection amplitude
SFRA1.amplitude=_IQ26(0.01);
the header file of SFRA_IQ_INCLUDE.h defines amplitude as int32_t?
// FILE: SFRA_IQ_Include.h
//
// TITLE: Prototypes and Definitions for the C28x FPU IQ Library
//
// AUTHOR: Manish Bhardwaj (C2000 Systems Solutions, Houston , TX)
//
// DATE: August 11, 2014
//
//###########################################################################
#ifndef SFRA_IQ_INCLUDE_H
#define SFRA_IQ_INCLUDE_H
#define MATH_TYPE 0 //IQ_MATH
#include "IQmathlib.h"
#include <stdint.h>
typedef struct{
int32_t *H_MagVect; //Plant Mag SFRA Vector
int32_t *H_PhaseVect; //Plant Phase SFRA Vector
int32_t *GH_MagVect; //Open Loop Mag SFRA Vector
int32_t *GH_PhaseVect; //Open Loop Phase SFRA Vector
float *FreqVect; //Frequency Vector
int32_t amplitude; //Injection Amplitude
...
Should I go ahead and change the header file?