Skip to content

Commit

Permalink
battery: disable secondary module by default
Browse files Browse the repository at this point in the history
Avoid a GCS showing 2 battery indicators.
Alternatively we could also check the 'connected' flag, but this is more
explicit.
  • Loading branch information
bkueng authored and dagar committed Oct 20, 2020
1 parent 977479c commit 5faf8bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/battery/module.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]

0 comments on commit 5faf8bd

Please sign in to comment.