syedkhyzeraliabidi
Member
Hell Experts,
I need sugestions on calculation of time period for different parameters of my motion sensor like ROLL, PItch, Heave etc. Currently I am using method of zero crossing for calculating the period of signals. Period is calculated using number of zero crossings. I am using timer and counters for that purpose, once the signal value cross zero and enters negative region counter increments again when it crosses zero crossing to go into positive region counter increments. But now I am looking at a case when my signal waveform never crosses zero value and remains in positive region always or negative region then in that case how can I calulate the period of my signals' waveform. Any ideas will be appreciated, if someone has implemented such scenario then please help me with this!
I have attached another function that is outputting the period of signal after each complete cycle.
Please suggest how can I do the above two scenarios when there is no zero crossings. Hope now you have a clearer picture of what I intend to achieve.
Please suggest asap!
Thanks in advance!
I need sugestions on calculation of time period for different parameters of my motion sensor like ROLL, PItch, Heave etc. Currently I am using method of zero crossing for calculating the period of signals. Period is calculated using number of zero crossings. I am using timer and counters for that purpose, once the signal value cross zero and enters negative region counter increments again when it crosses zero crossing to go into positive region counter increments. But now I am looking at a case when my signal waveform never crosses zero value and remains in positive region always or negative region then in that case how can I calulate the period of my signals' waveform. Any ideas will be appreciated, if someone has implemented such scenario then please help me with this!
I have attached another function that is outputting the period of signal after each complete cycle.
Please suggest how can I do the above two scenarios when there is no zero crossings. Hope now you have a clearer picture of what I intend to achieve.
Please suggest asap!
Thanks in advance!