Skip to main content
Mohan1
Associate III
January 17, 2020
Question

Integration of real time data.

  • January 17, 2020
  • 2 replies
  • 739 views

Hello,

I am trying to estimate soc by coulomb counting method.In coulomb counting we required integration of discharge current.I am getting accurate discharge current but unable to add them by using array. I tried using array :

float buffer[50];
float current[50];
int i;
int k;
buffer[0]=0;
 
 
buffer[i]=buffer[i]+current[k]*1.1; //Addition of current.

Please give me any suggestion.

Thanks.

    This topic has been closed for replies.

    2 replies

    Tesla DeLorean
    Guru
    January 17, 2020

    This again? https://community.st.com/s/question/0D50X0000BvkAQjSQM/how-can-we-integrate-continuous-datareal-time-data

    You really should get with your teachers/professors and get some clear instruction on C programming and arrays. Challenge them to do a better job.

    I'm not a fan of paint-by-numbers, or rote learning methods, they lack any critical thinking and creativity.

    There is a real need to understand the underlying programming methods here. If the method I outlined before can't be translated into C, you need to go back to the C / logic side of your knowledge, and fix or fill that out. Lacking effective instruction by your teachers, I'd suggest K&R's book on the C language as a good foundation.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    Mohan1
    Mohan1Author
    Associate III
    January 17, 2020

    @Community member​ sorry sir,i posted it bymistakely.