Skip to content

Commit

Permalink
Update adc_node.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Kotochleb authored Jun 23, 2023
1 parent 964e2bb commit 62a5b3f
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 62a5b3f

Please sign in to comment.