Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (lb_fail == 00 and (lb_status == 2 or lb_status == 3 or lb_status == 6
- or lb_status ==7)) or voltage > 400 or voltage < 190 etc.
- reason_bitA == 0001b when (lb_fail == 00 and (lb_status == 2))
- reason_bit == 0010b when (lb_fail == 00 and (lb_status == 3))
- reason_bit == 0011b when (lb_fail == 00 and (lb_status == 6)) and so on.
- if(Fail_safe_A1 ==1) // Fail_safe_A1 corresponds to battery pack 1
- {
- if (lb_fail ==0 & lb_status == 2)
- cout << "reason_bitA1 = 0001" << endl;
- if (lb_fail ==0 & lb_status == 3)
- cout << "reason_bitA1 = 0010" << endl;
- if (lb_fail ==0 & lb_status == 2)
- cout << "reason_bitA1 = 0001" << endl;
- }and so on.
Add Comment
Please, Sign In to add comment