From 7054078bf783d680df610bf43eec76091196b590 Mon Sep 17 00:00:00 2001 From: NightHawk32 Date: Thu, 18 Aug 2016 18:51:33 -0400 Subject: [PATCH 1/2] intorduced correct current scaling for KOMBINI in PikoBLX target --- src/main/target/PIKOBLX/config.c | 80 ++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 src/main/target/PIKOBLX/config.c diff --git a/src/main/target/PIKOBLX/config.c b/src/main/target/PIKOBLX/config.c new file mode 100644 index 000000000..cfb31bd4d --- /dev/null +++ b/src/main/target/PIKOBLX/config.c @@ -0,0 +1,80 @@ +/* + * This file is part of Cleanflight. + * + * Cleanflight is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Cleanflight is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Cleanflight. If not, see . + */ + +#include + +#include + +#include "build_config.h" + +#include "blackbox/blackbox_io.h" + +#include "common/color.h" +#include "common/axis.h" +#include "common/filter.h" + +#include "drivers/sensor.h" +#include "drivers/accgyro.h" +#include "drivers/compass.h" +#include "drivers/system.h" +#include "drivers/timer.h" +#include "drivers/pwm_rx.h" +#include "drivers/serial.h" +#include "drivers/pwm_output.h" +#include "drivers/max7456.h" +#include "drivers/io.h" +#include "drivers/pwm_mapping.h" + +#include "sensors/sensors.h" +#include "sensors/gyro.h" +#include "sensors/compass.h" +#include "sensors/acceleration.h" +#include "sensors/barometer.h" +#include "sensors/boardalignment.h" +#include "sensors/battery.h" + +#include "io/beeper.h" +#include "io/serial.h" +#include "io/gimbal.h" +#include "io/escservo.h" +#include "io/rc_controls.h" +#include "io/rc_curves.h" +#include "io/ledstrip.h" +#include "io/gps.h" +#include "io/osd.h" +#include "io/vtx.h" + +#include "rx/rx.h" + +#include "telemetry/telemetry.h" + +#include "flight/mixer.h" +#include "flight/pid.h" +#include "flight/imu.h" +#include "flight/failsafe.h" +#include "flight/altitudehold.h" +#include "flight/navigation.h" + +#include "config/runtime_config.h" +#include "config/config.h" + +#include "config/config_profile.h" +#include "config/config_master.h" + +void targetConfiguration(master_t *config) { + config->batteryConfig.currentMeterScale = 125; +} From 6b52a225b6247dca32bc0f2bfade237c7177cd95 Mon Sep 17 00:00:00 2001 From: NightHawk32 Date: Thu, 18 Aug 2016 18:54:12 -0400 Subject: [PATCH 2/2] intorduced correct current scaling for KOMBINI in PikoBLX target --- src/main/target/PIKOBLX/target.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/target/PIKOBLX/target.h b/src/main/target/PIKOBLX/target.h index 279a17a9f..efb8f5513 100644 --- a/src/main/target/PIKOBLX/target.h +++ b/src/main/target/PIKOBLX/target.h @@ -21,6 +21,7 @@ #define USE_CLI #define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT +#define TARGET_CONFIG #define LED0 PB9 #define LED1 PB5