Guest User

Untitled

a guest
Aug 10th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  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.
Add Comment
Please, Sign In to add comment