From 5faf8bd52c01b743e83c78ac0ec21842c5f41a27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beat=20K=C3=BCng?= Date: Fri, 16 Oct 2020 15:11:10 +0200 Subject: [PATCH] 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. --- src/lib/battery/module.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/battery/module.yaml b/src/lib/battery/module.yaml index 1cf212f80a..a1369b0df0 100644 --- a/src/lib/battery/module.yaml +++ b/src/lib/battery/module.yaml @@ -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]