That being said, here's my ABS engagement channels. It might be helpful to compile everyone's custom channels in one place (that they're willing to share). Feel free to use this format:
Ch:ABS_ENGAGE
Desc: Shows ABS events based off of brake line pressure and wheel speed rate of change
Ch. Req:OBD2, dFrontWheelSpeed, dRearWheelSpeed
Notes: Accuracy restricted by low refresh rate (10Hz) across OBD network.
Code:
bit_or(bit_and(IF(GT(TOYO_BRAKE_PREX,800),1,0),IF(GT(dFrontWheelSpeed,0),1,0)),bit_and(IF(GT(TOYO_BRAKE_PREX,800),1,0),IF(GT(dRearWheelSpeed,0),1,0)))
Ch:ABS_Front
Desc: Shows front axle ABS events based off of brake line pressure and wheel speed rate of change
Ch. Req:OBD2, dFrontWheelSpeed
Notes: Accuracy restricted by low refresh rate (10Hz) across OBD network.
Code:
bit_and(IF(GT(TOYO_BRAKE_PREX,800),1,0),IF(GT(dFrontWheelSpeed,0),1,0))
Ch:ABS_Rear
Desc: Shows rear axle ABS events based off of brake line pressure and wheel speed rate of change
Ch. Req:OBD2, dRearWheelSpeed
Notes: Accuracy restricted by low refresh rate (10Hz) across OBD network.
Code:
bit_and(IF(GT(TOYO_BRAKE_PREX,800),1,0),IF(GT(dRearWheelSpeed,0),1,0))
Ch:dFrontWheelSpeed
Desc: Shows rate of change of average front wheel speed with respect to time.
Ch. Req:OBD2
Notes: Accuracy restricted by low refresh rate (10Hz) across OBD network.
Code:
deriv((TOYO_WHE_FL+TOYO_WHE_FR)/2)
Ch:dRearWheelSpeed
Desc: Shows rate of change of average rear wheel speed with respect to time.
Ch. Req:OBD2
Notes: Accuracy restricted by low refresh rate (10Hz) across OBD network.
Code:
deriv((TOYO_WHE_RL+TOYO_WHE_RR)/2)