1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 21:35:44 +03:00
Commit graph

135 commits

Author SHA1 Message Date
Martin Budden
8c7c72c5dc Tidy of main pid loop. 2016-05-04 10:40:56 +01:00
borisbstyle
f5de06c59e Enable Faster cycletimes (Sample Rates) on all targets // More automatic looptime calculations
cleanup
2016-02-24 23:17:21 +01:00
borisbstyle
57a3e59a38 Rework Acc filtering 2016-02-17 17:37:01 +01:00
borisbstyle
a105af1225 Filter Cleanup CF coding style// Remove Old pt1 for acc etc // F1 slower acc update 2016-01-18 00:51:20 +01:00
Konstantin Sharlaimov (DigitalEntity)
fa49931b43 Improved scheduling. Betaflight Port digitalentity/cf-scheduler
Disallow arming if system load > 100 (waiting task count > 1)

Dont show inactive tasks in CLI

Realtime priority task and guard interval implementation

Dynamic guard interval. Bugfix for realtime scheduling hickups

Optimisations

Compile out CLI command help and CLI tasks command for CJMCU

Naming fixes // re-Add Gyro Sync // Fix port issues
2015-12-23 00:05:34 +01:00
borisbstyle
b3f0bd1402 Split up imuUpdate for gyro and acc 2015-12-05 12:52:43 +01:00
borisbstyle
e3b77b2ee5 Fix some compile warnings 2015-11-24 15:27:01 +01:00
Konstantin Sharlaimov (DigitalEntity)
621008cffc Removed IMU kP gain scaling based on spin rate. Works better without it in real life 2015-11-07 21:56:23 +10:00
Konstantin Sharlaimov (DigitalEntity)
831ac83f2b Dynamic kP gain for IMU calculations 2015-11-06 20:25:17 +10:00
Konstantin Sharlaimov (DigitalEntity)
14b4c4a1e4 A possible fix to IMU level-off issue 2015-11-06 14:06:44 +10:00
borisbstyle
d076a60eb5 Cleanup // Reorganisation 2015-10-22 17:27:26 +02:00
Konstantin Sharlaimov (DigitalEntity)
5df8ca926c Quaternion-based DCM IMU (original code my S.Madgwick)
Restore binaries from merge
2015-10-22 10:45:36 +02:00
borisbstyle
4b3ba927e9 Merge branch 'master' into betaflight
Conflicts:
	src/main/blackbox/blackbox_io.c
	src/main/drivers/serial_usb_vcp.c
	src/main/flight/imu.c
	src/main/mw.c
	src/main/target/CC3D/target.h
2015-10-12 23:53:43 +02:00
Petr Ledvina
1613c2d572 use full declaration for ImuInit 2015-10-12 19:58:12 +01: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
f39ca7add6 Minimize latency in Acro modes with acc enabled 2015-09-25 15:23:04 +02:00
borisbstyle
4a492c611a More Jitter Enhancements for Naze target
remove debug

Anti Jitter Enhancements for Naze target

Jitter Optimalisation without emf avoidance
2015-09-24 00:40:42 +02:00
ProDrone
57fc0f0a57 Added debug IMU speed output 2015-09-22 23:21:27 +02:00
borisbstyle
8be859bb36 Yaw Inversion in quaternion_to_rpy 2015-09-22 11:15:49 +02:00
borisbstyle
0539abc649 Dterm scaling correction // Code cleanup 2015-09-21 00:19:06 +02:00
Konstantin Sharlaimov (DigitalEntity)
45a4f11f92 Added #define for imu debug output (+16 squashed commit)
Squashed local commits:

from       : e4265d4a13f63f82d5cf55eea2c091622f96660b
up to (inc): 72416dc74745fa8bae1aded79aa4b9ed0e389076
2015-09-19 14:50:53 +02:00
Echelon9
c6a3d3c2f6 imu: Replace MAGIC_NUMBER with proper array size reference. Consistent with GPS_angle[ANGLE_INDEX_COUNT]. 2015-08-16 00:21:23 +10:00
digitalentity
a3b57386c2 Ported fast trigonometry functions over from @Crashpilot1000 Harakiri code
Fixed maths_unittest.cc to correctly handle float-point numbers
2015-07-09 22:38:17 +10:00
Michael Hope
5c6760fd82 various: tidy up various things found when building with a C++ compiler.
Remove duplicate consts.
Pull in the include files where functions and variables are declared.
Mark file local but duplicated variables as static.
Mark some variable declarations as extern.
Remove duplicated variable definition.

Signed-off-by: Michael Hope <mlhx@google.com>
2015-06-04 22:32:31 +02:00
Steveis
6448b4b3d7 Replaced gyroData with gyroADC as they both contain the same value 2015-05-17 07:14:42 +01:00
Steveis
318592b063 Removed tricopter yaw gyro smoothing from imuUpdate 2015-05-10 11:02:44 +01:00
Dominic Clifton
f28158a5a7 Cleanup debug code. 2015-04-14 13:59:11 +01:00
Dominic Clifton
55cac2bdeb Finally rename flight.c/.h to pid.c/.h. Cleanup some dependencies.
Relocate more code.
2015-02-01 00:39:38 +01:00
Dominic Clifton
8cc9e8ca37 More relocation of variables. 2015-02-01 00:03:46 +01:00
Dominic Clifton
53406a7ac7 Relocate some structures and code to the right places.
This cleans up the include file order somewhat and fixes a couple of
dependencies.

The goal of this is to rename flight.c/flight.h to pid.c/pid.h.
2015-01-31 23:47:51 +01:00
Dominic Clifton
01b2ce0b36 IMU naming cleanup. 2015-01-31 22:23:38 +01:00
Dominic Clifton
7c2c5eb152 Removing TODOs.
If it needs to be done it will be done.
2015-01-31 22:08:03 +01:00
Dominic Clifton
22f80129f2 Update calculate heading comment (ledvinap). 2015-01-25 01:07:14 +01:00
Pierre Hugo
67a2d5cd75 Add test for calculate heading. 2015-01-23 23:31:43 -08:00
Pierre Hugo
f312636b9f Add comments suggesting moving throttle angle correction code into own module. 2015-01-23 23:31:43 -08:00
Pierre Hugo
8d994df457 Move code around to avoid forward declaration. 2015-01-23 23:31:43 -08:00
Pierre Hugo
d691f72849 Moved configuring of IMU all into one function call. 2015-01-23 23:31:43 -08:00
Pierre Hugo
616c40a827 Added clarifying comment and todo. 2015-01-21 19:44:01 -08:00
Pierre Hugo
29c5630957 Moved vectors, euler angles, rotation and normalization from imu to maths. 2015-01-21 19:42:06 -08:00
Pierre Hugo
919a8796e7 Switched configureIMU to consistant name. 2015-01-21 19:37:56 -08:00
Pierre Hugo
ab8b5efe2c Switched initIMU to consistant name. 2015-01-21 19:36:41 -08:00
Pierre Hugo
d6b08f22c1 Added clarifying comments to calculateHeading body. 2015-01-21 19:28:05 -08:00
Pierre Hugo
d1a1cc3f13 Added clarifying comment to calculateHeading method. 2015-01-21 19:27:46 -08:00
Pierre Hugo
fcdc0af218 Clarified comments around vector rotate method. 2015-01-21 19:26:28 -08:00
Pierre Hugo
6711c56dc5 Switched to explicitly using M_PI. 2015-01-21 19:20:19 -08:00
Pierre Hugo
3e6e8f44c2 Switched to using degreesToRadians from DEG2RAD macro. 2015-01-21 19:14:31 -08:00
Dominic Clifton
ee19c1f071 Rename multiType to mixerMode. Rename MULTITYPE_* to MIXER_*.
'Type' is a noise word.

'Multi' is a mis-nomer - there is nothing 'multi' about a gimbal or
fixed wing.
2014-12-24 11:58:57 +00:00
Dominic Clifton
183c5f8e16 Add MPU9150 mag support and mag autodetection. Add AK8975 mag driver.
Note: not working on the sparky, MPU9150 needs passthough enabling but
when enabled the mag and gyro won't ack on the default addresses.  Needs
further investigation.
2014-12-21 23:40:48 +00:00
Kyle Manna
c806046181 perms: Remove execute bit on source files
* Remove the execute bit on source files.
* No functional change.
2014-11-26 10:13:29 -06:00
Dominic Clifton
503e7a0817 Decouple altitudehold.c from config.c. Update flight_imu_unittest and
altitude_hold_unittest.
2014-11-03 20:03:21 +01:00