Dominic Clifton
8402f4512a
Merge pull request #1276 from sherlockflight/3d-pid-at-min-throttle
...
Add support for pid_at_min_throttle = 0 for 3D flight
2015-10-12 20:27:53 +01:00
Dominic Clifton
a319394f6b
Merge branch 'blackbox-serial-budget' of https://github.com/sherlockflight/cleanflight-dev into sherlockflight-blackbox-serial-budget
...
Conflicts:
src/main/blackbox/blackbox.c
2015-10-12 20:14:20 +01:00
Petr Ledvina
8f3d9fae9a
unify typedef struct name_s {} name_t;
naming convention
2015-10-12 19:58:12 +01:00
Petr Ledvina
1613c2d572
use full declaration for ImuInit
2015-10-12 19:58:12 +01:00
Petr Ledvina
6999cf1742
Simplify #ifdef nesting
2015-10-12 19:58:11 +01:00
Petr Ledvina
8f6de3e553
Remove unnecessary floating-point calculation
2015-10-12 19:58:10 +01:00
Petr Ledvina
fba2c3d5cc
safety check in altitude code
...
Make sure altitude is in expected range
2015-10-12 19:58:09 +01:00
Petr Ledvina
b723f94c1f
improve code readability
...
it is possible to use traling comma, it does improve git diffs etc.
2015-10-12 19:58:08 +01:00
Petr Ledvina
e8f0e0d97c
use #defines
for ADC on stm32f10x
...
Make stm32f103 ADC more similar to stm32f30x
2015-10-12 19:58:07 +01:00
Petr Ledvina
48cdf650d9
improve container_of macro
2015-10-12 19:58:06 +01:00
Petr Ledvina
dc5a888633
cpm16 / cmp32 functions
...
used to compare timestamps with correct wrap. A bit more readable that typecasting in code. Only few uses replaced now
2015-10-12 19:58:05 +01:00
borisbstyle
5e87387e16
Code Cleanup // Defaults // Version Rename
...
No more version numbering. It's confusing.
Betaflight Bee Version
2015-10-09 23:33:00 +02:00
borisbstyle
4cbff888df
D scaling adjusted to match normal Cleanflight
2015-10-08 16:34:11 +02:00
borisbstyle
8d8d57a1f4
Set F1 target i2c to 800khz
...
Still 200us spare time left in luxfloat
2015-10-08 15:38:49 +02:00
borisbstyle
fa2ac7fe86
Merge remote-tracking branch 'prodrone/improved_rx_failsafe_detection' into betaflight
2015-10-08 14:53:07 +02:00
borisbstyle
476597ca5d
Enable GTUNE for NAZE32 target
2015-10-07 21:35:59 +02:00
borisbstyle
1fc4f8601f
Fix MPU6500 Detect
2015-10-07 21:35:58 +02:00
henn1001
dbcfa5dc43
hack for cc3d interrupt
2015-10-07 21:17:12 +02:00
borisbstyle
fb0b36158b
Fix MOTOLAB Target
...
Add Gtune to Motolab
2015-10-07 17:34:28 +02:00
borisbstyle
11c3f4dd76
Correct datatype
2015-10-07 17:16:28 +02:00
borisbstyle
12c9f65f43
Merge branch 'master' into betaflight
...
Conflicts:
Makefile
docs/Cli.md
src/main/config/config.c
src/main/drivers/accgyro_mpu3050.c
src/main/drivers/accgyro_mpu6050.c
src/main/drivers/accgyro_mpu6050.h
src/main/drivers/accgyro_spi_mpu6000.c
src/main/drivers/accgyro_spi_mpu6000.h
src/main/drivers/accgyro_spi_mpu6500.c
src/main/drivers/accgyro_spi_mpu6500.h
src/main/drivers/barometer_bmp280.c
src/main/drivers/sensor.h
src/main/flight/pid.c
src/main/mw.c
src/main/rx/rx.c
src/main/sensors/initialisation.c
src/main/target/CC3D/target.h
2015-10-07 17:12:54 +02:00
ProDrone
83a41565f6
Improved RX failsafe detection & handling
...
modified debug output (currently disabled)
To solve problem as indicated here:
https://github.com/cleanflight/cleanflight/issues/1266#issuecomment-135640133
and here:
https://github.com/cleanflight/cleanflight/pull/1340
and here:
https://github.com/cleanflight/cleanflight/pull/1342
Tested on FrSKY X4RSB with latest CPPM firmware (non-EU version).
Firmware filename: X4R-X4RSB_cppm_non-EU_150630
In both SBUS and CPPM mode.
2015-10-07 00:34:20 +02:00
Dominic Clifton
233753009b
Disable GTune on CC3D build (code size).
2015-10-06 21:25:53 +01:00
Dominic Clifton
57e5794ae1
Use the right mode (aka BOX) - replaces autotune mode. This will help
...
with migrations.
2015-10-06 21:25:40 +01:00
Dominic Clifton
123a4ccfc5
Merge branch 'GTune' of https://github.com/MJ666/cleanflight into
...
MJ666-Harakiri_PID_update
Conflicts:
Makefile
src/main/blackbox/blackbox_fielddefs.h
src/main/flight/pid.c
src/main/io/serial_msp.c
src/main/mw.c
src/main/target/ALIENWIIF3/target.h
src/main/target/CC3D/target.h
src/main/target/NAZE/target.h
src/main/target/NAZE32PRO/target.h
src/main/target/SPARKY/target.h
2015-10-06 20:16:37 +01:00
Dominic Clifton
d36da111b2
Delete autotune.
2015-10-06 19:38:02 +01:00
Dominic Clifton
6e59eb235d
Bump version to 1.11.0.
2015-10-06 19:30:13 +01:00
Dominic Clifton
ba2e22ab89
Add RMDO target.
2015-10-06 19:00:53 +01:00
Sean Vig
456396b25a
Use fixed point calculation for BMP280 barometer
...
Substitute the floating point calculation for the comparably much faster
64-bit calculation recommended for a Cortex-M3 (floating point is
recommended only in PC applications with FPU) [1]. Even if we have an
FPU, we round the temperature to the nearest 1/100th of a degree and the
pressure to the nearest 1 Pa, both of which are within the limits of the
fixed-point algorithm's accuracy.
Conflicts:
src/main/drivers/barometer_bmp280.c
2015-10-06 18:33:23 +01:00
Sean Vig
e5f3f1794f
Add tests for BMP280 barometer
...
Also get rid of the curved quotes for normal quotes (") and make
compensation computations static.
2015-10-06 18:25:59 +01:00
Michael Jakob
f15cedd057
Fixes after rebase
2015-10-04 18:37:24 +02:00
Michael Jakob
e42ed1ad70
Update to integrate with BorisB filters after rebase.
...
Documentation update
2015-10-04 18:37:23 +02:00
Michael Jakob
72ff296850
Enable G-Tune for CC3D (but not included in the OPBL version)
2015-10-04 18:37:23 +02:00
Michael Jakob
edf08648bc
Replace gyroData with gyroADC in gtune.c after rebase
2015-10-04 18:37:22 +02:00
Michael Jakob
4bed8bc78a
Add G-Tune for NAZE32PRO target
2015-10-04 18:37:22 +02:00
Michael Jakob
afed9a5bba
G-Tune fix for PID controller 2 (LuxFloat)
2015-10-04 18:37:21 +02:00
Michael Jakob
a8aad05c5a
Added additional yaw handling according to Spirre's PID2 testing.
...
Flight tested with PID3 and PID5 (still functional without negative side
effects)
Additional code style updates of gtune.c
2015-10-04 18:37:21 +02:00
Michael Jakob
53531224be
Make G-Tune more configurable
...
- add two new CLI paramaters "gtune_settle_time" and
"gtune_average_cycles"
- the settle time is not depending on looptime anymore
- updated default setting to cover e wider range of copters
- remove lower limit for P value for CLI (Zero P is now posible, but
schould be used with care)
- Documentation updates
2015-10-04 18:37:21 +02:00
Michael Jakob
ef5887856d
Enable G-Tune on Sparky
...
Fix code style
2015-10-04 18:37:20 +02:00
Michael Jakob
fe2f2f3053
Fix some BlackBox isues, remove redundant code from PID controllers.
2015-10-04 18:37:20 +02:00
Michael Jakob
e7e297ad53
Modified behavior of G-Tune switch and storing the tuned P values
...
G-Tune documentation update
G-Tune will only activated and deactivated when armed.
G-Tune should deactivated while the copter is airborne.
Tuned P values will only be stored when G-Tune is enabled while disarmed
and G-Tune was used before.
2015-10-04 18:37:19 +02:00
Michael Jakob
6c022455c5
Add BlackBox recording for G-Tune
2015-10-04 18:37:19 +02:00
Michael Jakob
daceb2db9a
Fix G-Tune for LuxFloat PID controller
...
G-Tune documentation fix
2015-10-04 18:37:18 +02:00
Michael Jakob
43f5792a61
G-Tune port from Harakiri
...
Enabled for NAZE, ALIENWWIIF1 and ALIENWIIF3 targets
Implement G-Tune for all PID controllers
The G-Tune tuning results will be save if G-Tune mode will be disabled
during copter is disarmed.
Update PID controller and G-Tune documentation
2015-10-04 18:37:18 +02:00
Michael Jakob
b20dc77a74
Harakiri PID controller make hardcoded parameters configurable
2015-10-04 18:37:17 +02:00
borisbstyle
5f3538d4d3
Change Default PID for starters
2015-10-04 14:36:13 +02:00
borisbstyle
5a871928af
Get targetLooptime from gyro_sync.h
2015-10-04 03:06:09 +02:00
Moto Moto
fe89535126
MSP LOOP_TIME commands for Configurator 0.66
2015-10-03 17:13:37 -05:00
borisbstyle
52172ef50f
Betaflight simplified Failsafe // Fixes failsafe issues
2015-10-02 23:32:45 +02:00
Dominic Clifton
07d985ba5c
More MPU cleanups.
2015-10-02 15:43:44 +01:00