From c806046181b29ca54931fbd740b893ace8d2844d Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Wed, 26 Nov 2014 10:10:50 -0600 Subject: [PATCH 1/3] perms: Remove execute bit on source files * Remove the execute bit on source files. * No functional change. --- src/main/config/config.c | 0 src/main/drivers/accgyro_adxl345.c | 0 src/main/drivers/accgyro_adxl345.h | 0 src/main/drivers/accgyro_mpu3050.c | 0 src/main/drivers/accgyro_mpu3050.h | 0 src/main/drivers/adc.c | 0 src/main/drivers/adc.h | 0 src/main/drivers/barometer_bmp085.h | 0 src/main/drivers/bus_i2c.h | 0 src/main/drivers/compass_hmc5883l.c | 0 src/main/drivers/compass_hmc5883l.h | 0 src/main/drivers/pwm_mapping.c | 0 src/main/drivers/system.c | 0 src/main/drivers/system.h | 0 src/main/flight/imu.c | 0 src/main/flight/mixer.c | 0 src/main/io/serial_msp.c | 0 src/main/main.c | 0 src/main/mw.c | 0 src/main/sensors/initialisation.c | 0 20 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 src/main/config/config.c mode change 100755 => 100644 src/main/drivers/accgyro_adxl345.c mode change 100755 => 100644 src/main/drivers/accgyro_adxl345.h mode change 100755 => 100644 src/main/drivers/accgyro_mpu3050.c mode change 100755 => 100644 src/main/drivers/accgyro_mpu3050.h mode change 100755 => 100644 src/main/drivers/adc.c mode change 100755 => 100644 src/main/drivers/adc.h mode change 100755 => 100644 src/main/drivers/barometer_bmp085.h mode change 100755 => 100644 src/main/drivers/bus_i2c.h mode change 100755 => 100644 src/main/drivers/compass_hmc5883l.c mode change 100755 => 100644 src/main/drivers/compass_hmc5883l.h mode change 100755 => 100644 src/main/drivers/pwm_mapping.c mode change 100755 => 100644 src/main/drivers/system.c mode change 100755 => 100644 src/main/drivers/system.h mode change 100755 => 100644 src/main/flight/imu.c mode change 100755 => 100644 src/main/flight/mixer.c mode change 100755 => 100644 src/main/io/serial_msp.c mode change 100755 => 100644 src/main/main.c mode change 100755 => 100644 src/main/mw.c mode change 100755 => 100644 src/main/sensors/initialisation.c diff --git a/src/main/config/config.c b/src/main/config/config.c old mode 100755 new mode 100644 diff --git a/src/main/drivers/accgyro_adxl345.c b/src/main/drivers/accgyro_adxl345.c old mode 100755 new mode 100644 diff --git a/src/main/drivers/accgyro_adxl345.h b/src/main/drivers/accgyro_adxl345.h old mode 100755 new mode 100644 diff --git a/src/main/drivers/accgyro_mpu3050.c b/src/main/drivers/accgyro_mpu3050.c old mode 100755 new mode 100644 diff --git a/src/main/drivers/accgyro_mpu3050.h b/src/main/drivers/accgyro_mpu3050.h old mode 100755 new mode 100644 diff --git a/src/main/drivers/adc.c b/src/main/drivers/adc.c old mode 100755 new mode 100644 diff --git a/src/main/drivers/adc.h b/src/main/drivers/adc.h old mode 100755 new mode 100644 diff --git a/src/main/drivers/barometer_bmp085.h b/src/main/drivers/barometer_bmp085.h old mode 100755 new mode 100644 diff --git a/src/main/drivers/bus_i2c.h b/src/main/drivers/bus_i2c.h old mode 100755 new mode 100644 diff --git a/src/main/drivers/compass_hmc5883l.c b/src/main/drivers/compass_hmc5883l.c old mode 100755 new mode 100644 diff --git a/src/main/drivers/compass_hmc5883l.h b/src/main/drivers/compass_hmc5883l.h old mode 100755 new mode 100644 diff --git a/src/main/drivers/pwm_mapping.c b/src/main/drivers/pwm_mapping.c old mode 100755 new mode 100644 diff --git a/src/main/drivers/system.c b/src/main/drivers/system.c old mode 100755 new mode 100644 diff --git a/src/main/drivers/system.h b/src/main/drivers/system.h old mode 100755 new mode 100644 diff --git a/src/main/flight/imu.c b/src/main/flight/imu.c old mode 100755 new mode 100644 diff --git a/src/main/flight/mixer.c b/src/main/flight/mixer.c old mode 100755 new mode 100644 diff --git a/src/main/io/serial_msp.c b/src/main/io/serial_msp.c old mode 100755 new mode 100644 diff --git a/src/main/main.c b/src/main/main.c old mode 100755 new mode 100644 diff --git a/src/main/mw.c b/src/main/mw.c old mode 100755 new mode 100644 diff --git a/src/main/sensors/initialisation.c b/src/main/sensors/initialisation.c old mode 100755 new mode 100644 From b49bdcd16963adb20252c78b791be5b32eecea79 Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Wed, 26 Nov 2014 10:11:02 -0600 Subject: [PATCH 2/3] main: Remove duplicated includes * Remove duplicate includes from 50391f2c * No functional change. --- src/main/main.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/main.c b/src/main/main.c index 41e3c9ba0..e77d5b304 100644 --- a/src/main/main.c +++ b/src/main/main.c @@ -41,9 +41,6 @@ #include "drivers/adc.h" #include "drivers/bus_i2c.h" #include "drivers/bus_spi.h" -#include "drivers/gpio.h" -#include "drivers/light_led.h" -#include "drivers/sound_beeper.h" #include "drivers/inverter.h" #include "flight/flight.h" From 5f2e79d1c7d837a80a75d09f5fa9aa46fc01f8df Mon Sep 17 00:00:00 2001 From: Kyle Manna Date: Wed, 26 Nov 2014 10:11:09 -0600 Subject: [PATCH 3/3] autotune: Correct macro name in comments * Update the comments to reflect the code. * No functional change. --- src/main/flight/autotune.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/flight/autotune.c b/src/main/flight/autotune.c index 9d3135e29..5ba9664f6 100644 --- a/src/main/flight/autotune.c +++ b/src/main/flight/autotune.c @@ -66,10 +66,10 @@ extern int16_t debug[4]; * In the BradWii software, it alternates between doing the P and D step and doing the I step so you can quit whenever you * want without having to tell it specifically to do the I term. The sequence is actually P&D, P&D, I, P&D, P&D, I... * - * Note: The 4 degrees mentioned above is the value of AUTOTUNE_MAX_OSCILLATION. In the BradWii code at the time of writing + * Note: The 4 degrees mentioned above is the value of AUTOTUNE_MAX_OSCILLATION_ANGLE. In the BradWii code at the time of writing * the default value was 1.0f instead of 4.0f. * - * To adjust how aggressive the tuning is, adjust the AUTOTUNEMAXOSCILLATION value. A larger value will result in more + * To adjust how aggressive the tuning is, adjust the AUTOTUNE_MAX_OSCILLATION_ANGLE value. A larger value will result in more * aggressive tuning. A lower value will result in softer tuning. It will rock back and forth between -AUTOTUNE_TARGET_ANGLE * and AUTOTUNE_TARGET_ANGLE degrees * AUTOTUNE_D_MULTIPLIER is a multiplier that puts in a little extra D when autotuning is done. This helps damp the wobbles @@ -249,7 +249,7 @@ float autotune(angle_index_t angleIndex, const rollAndPitchInclination_t *inclin // stop looking for the 2nd peak if we time out or if we change direction again after moving by more than half the maximum oscillation if (timedOut || (oscillationAmplitude > AUTOTUNE_MAX_OSCILLATION_ANGLE / 2 && currentAngle > firstPeakAngle)) { // analyze the data - // Our goal is to have zero overshoot and to have AUTOTUNEMAXOSCILLATION amplitude + // Our goal is to have zero overshoot and to have AUTOTUNE_MAX_OSCILLATION_ANGLE amplitude if (secondPeakAngle > targetAngleAtPeak) { // overshot