ahmedsalah52
d244239f39
opticalflow mt sensor added ( #14038 )
...
* opticalflow mt sensor added
* set the processedFlow to raw when no rotation
* use sin and cos approximations
Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
* Update src/main/sensors/opticalflow.c
Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
* refactoring
* not needed anymore
* update
* Update src/main/sensors/opticalflow.c
Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
* Update src/main/sensors/opticalflow.c
Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
* Update src/main/drivers/rangefinder/rangefinder_lidarmt.c
Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
* update
* rm prototype
* clean up
* Update src/main/drivers/opticalflow/opticalflow.h
Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
* Update src/main/drivers/opticalflow/opticalflow.h
Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
* update flip_y
* Update src/main/drivers/opticalflow/opticalflow.h
Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
* Update src/main/drivers/rangefinder/rangefinder_lidarmt.c
Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
* Update src/main/drivers/rangefinder/rangefinder_lidarmt.h
Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
* Update src/main/sensors/opticalflow.c
Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
* Update src/main/sensors/opticalflow.c
Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
* Update src/main/sensors/opticalflow.c
Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
* rm casting
* update op rotation
---------
Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2024-12-21 05:47:36 +11:00
nerdCopter
ed6a4a4769
duplicate emptyline removal ( #14027 )
...
* trailing space removal
Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
* deduplicate empty lines
---------
Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
2024-11-15 23:07:25 +01:00
Mark Haslinghuis
6fe81a9445
Fix disabling sensor configuration (when device needs battery power) ( #13177 )
...
* Fix sensor config
* Encapsulate code
* Add new message for detectedSensors
* Add SENSOR_NOT_AVAILABLE
* Move comment
* Add gyro
2023-11-28 10:42:31 +01:00
ctzsnooze
1cd28a5eea
refactoring and smoother transition to return, thanks Karatebrot
2022-09-15 15:06:40 +10:00
ctzsnooze
b88e73d137
120hz altitude data used in GPS Rescue
...
Disarm on crash flip recovery or impact while in do nothing mode
add blackbox headers for new fields
rearrange altitude factors
fix ibus uint16 for estimatedVario
update GPS altitude at 120hz
get GPS derivative from error
PT2 filter on GPS derivative
remove acceleration element
move altitude filtering to position.c
calculate altitude derivative in position.c for vario
filter vario with PT1
update pg in position and baro
field and test tuning from field tests
land 3x faster from higher altitude
PT2 vario for checking GPS
2022-09-15 11:31:36 +10:00
ctzsnooze
b2241b32c3
Refactor Baro to floats, filter at position rate
...
convert pressure to altitude early
remove median filter
PT2 filtering upsampled to altitude function in position.c - thanks KarateBrot
baro task synced to position task - thanks Steve
PT2 implementation - thanks KarateBrot
ground altitude from filtered altitude
baro cali by average of calibration samples over cal period
adjust vario and smoothing defaults
don't say haveBaroAlt until cal is complete
reduce PIDs since Baro is faster
add baro smoothing values to blackbox header
Co-Authored-By: Jan Post <post@stud.tu-darmstadt.de>
Co-Authored-By: Steve Evans <SteveCEvans@users.noreply.github.com>
2022-09-02 14:38:40 +10:00
Bruce Luckcuck
ad0e7154a7
Split initialization from gyro.c for flash savings
...
Move low performance requirements initialization code into gyro_init.c and optimize that for size.
2020-03-13 10:08:11 -04:00
Bruce Luckcuck
f584780944
Gyro native rate sampling, filtering, and scheduler restructuring
2020-02-04 18:19:35 -05:00
mikeller
4a7904695e
Moved 'config.[ch]' into the 'config/' directory.
2019-10-28 11:17:25 +13:00
jflyper
cc0e689bb5
Add USE_ACC conditionals
2019-02-04 20:37:43 +09:00
jflyper
9ea1428d11
Introduce per device pin pre-init
2018-12-13 11:15:26 +09:00
blckmn
a9f74cd6df
Removed excess trailing spaces before new lines on licenses.
2018-04-25 20:58:00 +10:00
blckmn
46fe22b4bd
Direct license replacement
2018-04-22 09:22:46 +10:00
jflyper
a03b85025c
Internal ADC support, full task polling version
2018-01-10 11:49:56 +09:00
jflyper
11c47c631b
Port iNav's rangefinder
2017-12-20 12:54:19 +09:00
mikeller
b489d0ba9d
Renamed 'parameter_group' to 'pg'.
2017-12-19 23:36:31 +13:00
mikeller
4d30971e2d
Fixed permissions on files.
2017-11-28 23:31:55 +13:00
mikeller
a8d34dabb0
Changed defines for GYRO/ACC/MAG/BARO/GPS/SONAR/OSD/BLACKBOX/CMS to conform to the USE_ convention.
2017-11-05 10:15:24 +13:00
jflyper
65d74fd6a7
Run sensor detection to the end regardless of the gyro detection stataus
...
Is it harmful for drivers that handle mag inside the gyro chip?
2017-07-20 18:32:26 +09:00
Martin Budden
f2b423525d
Split gyro device out of gyro sensor struct
2017-02-06 00:00:32 +00:00
Martin Budden
5851b21e4a
Removed a number of static config pointers
2017-02-01 12:58:29 +00:00
Martin Budden
a3951a3340
Preparation for conversion to parameter groups 3
2017-02-01 12:24:58 +00:00
Martin Budden
17494840a5
Moved gyro and acc detection code into init functions
2016-12-13 10:00:43 +00:00
Martin Budden
d9a2f7f5d9
Moved EXTI into gyroDev_t
2016-12-13 09:01:32 +00:00
Martin Budden
7f4617b676
Renamed MPU functions to have mpu prefix
2016-12-11 11:32:34 +00:00
Martin Budden
4bb6820c42
Moved sensor detection into respective sensor modules
2016-12-05 15:26:14 +00:00
Martin Budden
4bee6193e8
Moved faked sensors into their own driver files
2016-12-05 11:03:49 +00:00
Martin Budden
f4cd683ecd
Renamed sensor detect functions from eg detectGyro to gyroDetect
2016-12-05 06:49:15 +00:00
Martin Budden
06e871406e
Moved xx_hardware out of sensorSelectionConfig into config for specific sensor
2016-12-05 06:49:14 +00:00
Martin Budden
60e2227396
Moved alignment from sensor into device
2016-12-05 06:49:14 +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
2d8d03e507
Fixup after rebase
2016-11-25 23:25:55 +00:00
Martin Budden
78e6130aab
Moved further gyro parameters into gyroConfig_t
2016-11-25 23:22:24 +00:00
Martin Budden
e9407f3065
Tidied initialisation, especially PID filters
2016-11-25 23:22:23 +00:00
Martin Budden
d85eed0933
Move freestanding masterConfig items into structs
2016-11-24 17:34:05 +00:00
Martin Budden
7c8cb3205d
Removed trailing spaces
2016-11-11 07:48:00 +00:00
Konstantin Sharlaimov (DigitalEntity)
b0b987c313
Fix missing baro support for AIRHEROF3 target
2016-10-04 00:04:17 +10:00
Martin Budden
9889b1db9c
Move master_t required #includes into config_master.h
2016-10-01 14:10:09 +01:00
kc10kevin
dc4b4ac986
ICM-20689 Gyro
2016-09-14 07:33:32 -05:00
kc10kevin
57c24c6ee1
ICM-20689 Gyro
2016-09-13 19:44:36 -05:00
borisbstyle
05908aad4d
Merge branch 'master' into development
2016-09-11 01:16:53 +02:00
André
7f325373d1
Change baro detect order
...
Probe BMP085/BMP180 before MS5611, because BMP085 can be misdetected as a MS5611.
2016-08-29 16:48:33 +02:00
Martin Budden
c077bacee6
Improved acc initialisation
2016-08-15 07:32:06 +01:00
Martin Budden
cd18004bf4
Fixed error in gyro detection
2016-08-11 16:15:16 +01:00
Anders Hoglund
1300952472
Added MPU9250 ACC detection.
2016-08-09 14:52:22 +02:00
Martin Budden
541f4d4018
Directory rearrangement to reflect cleanflight changes
2016-08-07 13:44:00 +01:00
Martin Budden
07adf66bbb
Optimisation of driver header files
2016-08-07 01:14:11 +02:00
Martin Budden
1c997abaaf
Moved function declarations out of main. Tidied drivers.
2016-08-02 15:11:35 +01:00
Martin Budden
141b369667
Removed trailing whitespace
2016-07-16 07:54:58 +01:00