Jegosh
Hi, 
 
I am willing to create a math channel that detects all the quick variations in the data.
For example, this could be used to detect the snap oversteer on the steering angle channel.
 
It means that I need to compare the values of the channel at different times, and have a condition such as :
if SteerAngle [T+Δ] - SteerAngle [T] > 10 ..... (Δ being a little delta of time)
 
This is where I need help ?
 
How to compare values of the same channel at different times ?
 
Thanks
Reply 0 0
littleozfella
I am no expert on this. You could maybe use derivative, derivative([channel],Reset)  this would make an indication of a sudden change in the channel such as steering angle, then make an event to occur at what you wish to view.. say cond([deriv_channel]>x,1,1,0)  probably need to make 2 events second one being cond([deriv_channel]<-x,1,1,0)????   There is good help in creating events in F1 or help.  OR if you wanted to display when the derivative rate your specify occurs in graphic form on your time/distance chart you could create the same maths channels in Maths instead of Events.   Help for maths functions is under Operators  
  I hope that helps.

Reply 1 0
rvmorrow
Littleozfella it right, the derivative function is a nice way to show quick variations in a channel like steering.
You can also add a filter in here to smooth out the steering signal being used in the calculation.

Here is an example for steering angle derivative with a 0.2 second moving average filter:
 
derivative(
movAverage( [STEER],0.2,Ignore)
,Ignore )
 

Rob

Cosworth

 

Reply 0 0
Jegosh
Alright this is a good help !
 
Thanks !
Reply 0 0
MarioB.
Hello,
I wrote a channel similar to what you described. I used the timeOffset function in Toolbox which calls on a channel value as a function of time. This math channel was meant to go to a value of 1 when a dropout in a sensor was detected that could not be easily seen by looking at raw channel data. You will need to adjust the delta t or time offset (-0.1) depending on your application. This channel simply compares channel values of the next time step to the current, much like a differential but it works better for specific dropouts in a sensor. I also made another simple channel that counts up every time this channel goes to 1, so that I can quickly analyze if there is a problem. 
 
/* Channel output is 1 when [Your Channel] channel dropouts occur. Dropouts are changes in channel value greater then 3. MAB */

choose(
fabs(timeOffset([Your Channel],-0.1)-[Your Channel])>3,1,0);
 
Below is the syntax
[178729%2F8425418%2Fmceclip0]
Hope this helps
Reply 0 0
Jegosh
Didn't know this TimeOffset function.
 
Thank you so much, great help !!
Reply 0 0
Reply