Skip to content

Commit

Permalink
Merge pull request #131 from husarion/ros1-fix-adc-node-exception
Browse files Browse the repository at this point in the history
Update adc_node.py
  • Loading branch information
KmakD authored Jun 23, 2023
2 parents 964e2bb + 62a5b3f commit 27140fb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions panther_battery/src/adc_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ def _check_battery_count(self) -> int:
f'[{rospy.get_name()}] Battery ADC measurement error excep. '
f'The number of batteries cannot be determined. The single battery was adopted.'
)
return 1

return 1 if V_temp_bat_2 > ADCNode.BAT02_DETECT_THRESH else 2

Expand Down

0 comments on commit 27140fb

Please sign in to comment.