Tool/software: Code Composer Studio
Hi,
There is a function called arrangeTracksByAge in kalman filtering algorithm of the MRR demo.
void arrangeTracksByAge(KFstate_t * restrict TrackList, const uint32_t numTracksTotal)
{
KFstate_t * currTrackFwd = &TrackList[0];
KFstate_t * currTrackRev = &TrackList[numTracksTotal-1];
KFstate_t temp;
uint32_t numTracks = numTracksTotal;
uint32_t i, j;
/* For each track, assign the newer tracks to the bottom of the list. Copy the older tracks
* to the beginning. */
for (i = 0; i < numTracksTotal; i++)
{
.....
}
}
In this function the variable j is uninitialized. Is the default value for the uninitialized variable zero in the DSP system?If not, whether the variable j should be initialized as 0.
Thanks,
Regards,
Rata