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

102 commits

Author SHA1 Message Date
cs8425
120fa21693 implement SITL in gazebosim with ArduCopterPlugin
need implement fake eeprom & fake IO

need implement fake system function

can compile, stuck in isEEPROMContentValid()

EEPROM in memory work

EEPROM as file should work

fix some complie warning

MSP over TCP work (add dyad.c)

a little clean up

fix FLASH_CONFIG_Size in ld script & implement some pwmout

IO to simulator work!! need to check direction & scale!!

can fly but Gyro buggy

move dyad.c

fix busy-loop (limit to max 20kHz)

can simulatie in different speed now! (hard code)

add option for IMU calculation

add README.md

move dyad.c and fix F3 overrun the flash size

explanation SITL in README.md and reuse CFLAGS, ASFLAGS
2017-04-05 18:22:59 +08:00
Martin Budden
18145c9d47 Fixed compiler warnings 2017-03-03 16:36:40 +00:00
Martin Budden
c92679f454 Added PG config definitions 4 2017-02-25 18:19:56 +00:00
Martin Budden
4c435fccae Preparation for conversion to parameter groups 6 2017-02-15 08:05:37 +00:00
Martin Budden
3d1e42d1aa Tidy of IMU header 2017-02-06 00:27:08 +00:00
Martin Budden
79d4b2146d Preparation for conversion to parameter groups 2017-02-01 08:46:19 +00:00
Martin Budden
ee8a1676c4 Moved accelerometerTrims into accelerometerConfig() 2016-12-17 22:30:03 +00:00
Martin Budden
8d3c825646 Converted currentTime to currentTimeUs 2016-12-01 20:00:44 +00:00
Martin Budden
b8b9c95f57 Moved sensor global data into sensor_s structs 2016-12-01 17:47:17 +00:00
Martin Budden
590e569375 Changed gyro init and read functions to take a gyro_t* parameter.
Scaled gyro values to degrees per second in gyroUpdate.
2016-11-30 16:59:55 +00:00
Martin Budden
6ff265ec62 Moved masterConfig imu items into a struct 2016-11-29 22:28:11 +00:00
Martin Budden
58c85029d6 Removed unnecessary #includes 2016-10-26 05:15:26 +01:00
Martin Budden
2f9ca4355c currentTime passed in scheduler task call 2016-09-17 16:01:37 +01:00
Martin Budden
541f4d4018 Directory rearrangement to reflect cleanflight changes 2016-08-07 13:44:00 +01:00
Martin Budden
ea283ab98c Converted tabs to spaces 2016-07-09 14:39:39 +01:00
Martin Budden
74d20a276f Made filter naming, parameters and state consistent 2016-07-03 06:45:11 +01:00
Martin Budden
e9a46c6ebb Cleanup of acc device drivers extern usage CF PR#2117 2016-06-16 18:09:05 +01:00
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