daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest Aug 10th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (lb_fail == 00 and (lb_status == 2 or lb_status == 3 or lb_status == 6
  2. or lb_status ==7)) or voltage > 400 or voltage < 190 etc.
  3.    
  4. reason_bitA == 0001b when (lb_fail == 00 and (lb_status == 2))
  5. reason_bit == 0010b when (lb_fail == 00 and (lb_status == 3))
  6. reason_bit == 0011b when (lb_fail == 00 and (lb_status == 6)) and so on.
  7.    
  8. if(Fail_safe_A1 ==1)   // Fail_safe_A1 corresponds to battery pack 1
  9. {
  10.   if (lb_fail ==0 & lb_status == 2)
  11.      cout << "reason_bitA1 = 0001" << endl;
  12.   if (lb_fail ==0 & lb_status == 3)
  13.      cout << "reason_bitA1 = 0010" << endl;
  14.   if (lb_fail ==0 & lb_status == 2)
  15.      cout << "reason_bitA1 = 0001" << endl;
  16. }and so on.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top