1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-23 00:05:28 +03:00
Commit graph

86 commits

Author SHA1 Message Date
Pawel Spychalski (DzikuVx)
c538e2eb58 Cleanup debugs and USE_ defines that are always on 2019-10-31 21:04:05 +01:00
Konstantin Sharlaimov
e4391d5b46
Refactor pwm motor/servo output to be mixer-driven (#4705)
* [PWM] Refactor pwm motor/servo output to be mixer-driven. Don't initialise more motor/servo outputs than necessary
* [PWM] Add logging and arming blocking flag (ci skip)
* [PWM] Remove bootlog; Create a warning message in CLI when PWM out has problems
* [PWM] Refactor servo driver and init code; Fix OSD message
2019-05-18 15:10:54 +02:00
Michel Pastor
706420ba89
g-force OSD items and stats (#4696) 2019-05-12 17:27:32 +02:00
Konstantin Sharlaimov (DigitalEntity)
7598f222e7 [INAV] Initial cut on ignoring acceleromer in estimation when clipping 2019-05-06 17:18:34 +02:00
giacomo892
94420e3867 implement PT1 filter option for accelerometer 2019-05-04 15:33:42 +02:00
Konstantin Sharlaimov (DigitalEntity)
9e7297a77d [ACC] Accept up to 5% variance in accelerometer readings when calibrating 2019-02-22 17:11:45 +01:00
Konstantin Sharlaimov (DigitalEntity)
f8017b9d35 [CALIBRATION] Separate library for zero calibration with variance calculation (time based, with retry); Migrate GYRO and ACC to new calibration; Implement movement threshold for acc calibration to discard shaky measurements 2019-01-27 13:10:47 +01:00
Alberto García Hierro
0f4e74cd04 Replace ABS(float) with fabsf(float)
Disregarding loads and stores, fabfs() compiles to a single vabs.f32
instruction, which completes in 1 cycle. ABS(float), however, compiles
to vcmpe.f32, a branch and vneg.f32, which needs 2 cycles + branching.
The compiler is not able to perform this transformation because
(f < 0 ? -f : f) doesn't always yield the absolute value for
floats (e.g. ABS(-0) will yield -0).
2019-01-19 17:33:33 +00:00
giacomo892
80e7094457 add raw accelerometer debug_mode 2018-11-29 15:03:22 +01:00
Pawel Spychalski (DzikuVx)
aac9e485c0 async processing removed 2018-10-16 15:02:46 +02:00
Michel Pastor
49a4d514be Add KAKUTEF7 target 2018-09-16 23:01:55 +02:00
Konstantin Sharlaimov (DigitalEntity)
c74905cbfd Debug vibration 2018-06-15 22:30:41 +02:00
Konstantin Sharlaimov (DigitalEntity)
ce3abc0ad3 Measure accelerometer vibration and clipping 2018-06-15 22:29:12 +02:00
Konstantin Sharlaimov
5227273833
Merge pull request #2951 from iNavFlight/de_radixfc
Bosch BMI160 gyro support + BrainFPV Radix
2018-05-13 20:03:22 +10:00
Konstantin Sharlaimov (DigitalEntity)
3163f4283d Force accel configuration reset 2018-05-12 22:13:00 +10:00
Konstantin Sharlaimov (DigitalEntity)
a2ba4c1d91 Initial cut on BrainFPV RADIX 2018-05-09 13:13:17 +10:00
Pawel Spychalski (DzikuVx)
bf3d4ac3d0 Naze and all it traces removed 2018-04-23 16:21:23 +02:00
Konstantin Sharlaimov (DigitalEntity)
6ce5940e75 Deprecate gyro_sync_denom, gyro driver will make a decision about sampling rate at init 2018-03-23 00:57:08 +10:00
Konstantin Sharlaimov
e174e5a48d
Initial cut on full quaternion IMU conversion (#2894)
* Initial cut on full quaternion/vector IMU conversion
* More accurate quaternion integration
* Refactor vector struct per @ledvinap suggection
* Implement rotation matrix from axis/angle; Refactor mag declination to have orientation correspond to RPY angles
* Use magnetic North vector as a reference
2018-03-15 00:19:53 +10:00
Konstantin Sharlaimov (DigitalEntity)
2aee58777e Fix broken 6-point calibration 2018-02-22 15:05:25 +10:00
Konstantin Sharlaimov (DigitalEntity)
c7e06c453a Refactor board alignment 2017-12-31 17:55:03 +10:00
Konstantin Sharlaimov (DigitalEntity)
1c68e9b720 Make accelerometer position calculation aligned with Configurator 2017-12-30 22:05:36 +10:00
Konstantin Sharlaimov (DigitalEntity)
ca1e0ab05a Fix bug in accGetCalibrationAxisFlags() 2017-12-29 16:41:03 +10:00
Alberto García Hierro
d5ba9c4eec Rename a few more flags
NAV -> USE_NAV
FIXED_WING_LANDING -> NAV_FIXED_WING_LANDING
ASYNC_GYRO_PROCESSING -> USE_ASYNC_GYRO_PROCESSING
BOOTLOG -> USE_BOOTLOG
STATS -> USE_STATS
2017-12-04 15:28:31 +00:00
Konstantin Sharlaimov (DigitalEntity)
f81d5b2f4d Fix integer division in accelerometer scaling to 1G; Optimize accumulated acceleration calculation 2017-11-29 12:25:29 +10:00
Martin Budden
76efc482d3 Moved acc accumulation code out of IMU into acc sensor 2017-11-28 11:52:05 +00:00
Martin Budden
089680ffce Scale acc value in acc sensor code 2017-11-28 07:22:31 +00:00
Konstantin Sharlaimov (DigitalEntity)
8d9f68cd9e busDevice migration (acc/gyro/baro/compass/rangefinder) 2017-11-23 01:25:48 +10:00
Konstantin Sharlaimov
8d6fb67f1a Merge pull request #2085 from iNavFlight/jh_gcc7_janitorial_updates
Jh gcc7 janitorial updates
2017-09-10 16:47:13 +10:00
Konstantin Sharlaimov (DigitalEntity)
bbabf5589e Migrate ACC/GYRO to fastram 2017-09-10 00:04:53 +10:00
Jonathan Hudson
559a085744 more gcc7 specific warning fixes 2017-09-08 22:07:34 +01:00
Martin Budden
b870c1a8a2 accgyro betaflight catchup 2017-08-30 05:56:25 +01:00
Pawel Spychalski (DzikuVx)
fbe3b05363 PG acc config version bump 2017-07-08 15:20:44 +02:00
Pawel Spychalski (DzikuVx)
6e1988500d notch filter method pointer 2017-07-05 09:21:27 +02:00
Pawel Spychalski (DzikuVx)
888fd3f76c updated default 2017-07-05 09:21:27 +02:00
Pawel Spychalski (DzikuVx)
878360e33e configurable Acc notch filter 2017-07-05 09:21:27 +02:00
Pawel Spychalski (DzikuVx)
a19cdefd11 Acc notch filter hardcoded to 75Hz 2017-07-05 09:21:27 +02:00
Martin Budden
83aa2c56b9 Code tidy 2017-05-14 07:38:36 +01:00
Martin Budden
5874f92f87 Moved accgyro, barometer and compass drivers into subdirectories 2017-04-29 06:45:42 +01:00
Martin Budden
5b66844cbb Removed gyroDev_t from gyro_t 2017-03-14 07:45:30 +00:00
Martin Budden
b3ee1409e8 Added runtime setting of gyro SPI pin 2017-03-14 07:45:30 +00:00
Martin Budden
74fe97dde6 Added direct support for MPU9250 gyro 2017-01-30 08:16:32 +00:00
Martin Budden
78350e829b Rationalisation of sensor function names 2017-01-25 09:17:59 +00:00
Konstantin Sharlaimov (DigitalEntity)
375a6f5d71 Report individual 6-axis calibration orientations in MSP_STATUS_EX 2017-01-16 20:34:09 +10:00
Martin Budden
b1fb59c464 Made PG config() functions const 2017-01-07 12:08:12 +00:00
Martin Budden
dd4d137fbc Fix to acc parameter group reset 2017-01-04 11:09:10 +00:00
Martin Budden
edee51cd2a Added accelerometerConfig parameter group 2017-01-03 15:30:29 +00:00
Martin Budden
0d2d74a259 Renamed config/config.* to fc/config.* 2017-01-01 15:59:45 +00:00
Konstantin Sharlaimov (DigitalEntity)
11b31b0762 Remove a duplicate MPU9250 driver; Fixed a bug when board hangs when acc_hardware is set to a non-existent sensor 2016-12-17 23:09:38 +10:00
Konstantin Sharlaimov (DigitalEntity)
8909cd8374 Add back sensor autodetection; Autodetection is used to update and save config 2016-12-17 21:04:36 +10:00