Skip to content

Commit

Permalink
lib: battery allow for 3 instances
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKlimaj authored and dagar committed Jan 23, 2024
1 parent 736a730 commit d075956
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/lib/battery/module.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__max_num_config_instances: &max_num_config_instances 2
__max_num_config_instances: &max_num_config_instances 3

module_name: battery

Expand All @@ -21,7 +21,7 @@ parameters:
reboot_required: true
num_instances: *max_num_config_instances
instance_start: 1
default: [3.6, 3.6]
default: [3.6, 3.6, 3.6]

BAT${i}_V_CHARGED:
description:
Expand All @@ -37,7 +37,7 @@ parameters:
reboot_required: true
num_instances: *max_num_config_instances
instance_start: 1
default: [4.05, 4.05]
default: [4.05, 4.05, 4.05]

BAT${i}_V_LOAD_DROP:
description:
Expand All @@ -58,7 +58,7 @@ parameters:
reboot_required: true
num_instances: *max_num_config_instances
instance_start: 1
default: [0.1, 0.1]
default: [0.1, 0.1, 0.1]

BAT${i}_R_INTERNAL:
description:
Expand All @@ -76,7 +76,7 @@ parameters:
reboot_required: true
num_instances: *max_num_config_instances
instance_start: 1
default: [0.005, 0.005]
default: [0.005, 0.005, 0.005]

BAT${i}_N_CELLS:
description:
Expand Down Expand Up @@ -106,7 +106,7 @@ parameters:
reboot_required: true
num_instances: *max_num_config_instances
instance_start: 1
default: [0, 0]
default: [0, 0, 0]

BAT${i}_CAPACITY:
description:
Expand All @@ -122,7 +122,7 @@ parameters:
reboot_required: true
num_instances: *max_num_config_instances
instance_start: 1
default: [-1.0, -1.0]
default: [-1.0, -1.0, -1.0]

BAT${i}_SOURCE:
description:
Expand All @@ -142,4 +142,4 @@ parameters:
reboot_required: true
num_instances: *max_num_config_instances
instance_start: 1
default: [0, -1]
default: [0, -1, -1]

0 comments on commit d075956

Please sign in to comment.