Browse Source

battery: disable secondary module by default

Avoid a GCS showing 2 battery indicators.
Alternatively we could also check the 'connected' flag, but this is more
explicit.
sbg
Beat Küng 4 years ago
parent
commit
f776997a07
  1. 3
      src/lib/battery/module.yaml

3
src/lib/battery/module.yaml

@ -133,10 +133,11 @@ parameters: @@ -133,10 +133,11 @@ parameters:
This requires the ESC to provide both voltage as well as current.
type: enum
values:
-1: Disabled
0: Power Module
1: External
2: ESCs
reboot_required: true
num_instances: *max_num_config_instances
instance_start: 1
default: [0, 0]
default: [0, -1]

Loading…
Cancel
Save