From fa321849737fb7e5423e118bbbcd28a014e1d0a8 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Tue, 28 Aug 2012 13:56:39 +0200 Subject: params debugging --- apps/commander/commander.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'apps/commander/commander.c') diff --git a/apps/commander/commander.c b/apps/commander/commander.c index 07958032e..09da50480 100644 --- a/apps/commander/commander.c +++ b/apps/commander/commander.c @@ -746,12 +746,12 @@ float battery_remaining_estimate_voltage(int cells, int chemistry, float voltage initialized = true; } - float chemistry_voltage_empty[1]; - float chemistry_voltage_full[1]; + float chemistry_voltage_empty[1] = { 3.2f }; + float chemistry_voltage_full[1] = { 4.05f }; if (counter % 100 == 0) { - param_get(bat_volt_empty, chemistry_voltage_empty+0); - param_get(bat_volt_full, chemistry_voltage_full+0); + param_get(bat_volt_empty, &(chemistry_voltage_empty[0])); + param_get(bat_volt_full, &(chemistry_voltage_full[0])); } counter++; -- cgit v1.2.3