Commit Graph

12027 Commits

Author SHA1 Message Date
flywoo 3fc506f0ad changer code add pwm5-pwm8,fcam,support mpu6000,modify scl-uart pin 2018-08-10 16:41:03 +08:00
flywoo 9494a26231 change_1 2018-08-10 15:07:03 +08:00
flywoo fdddaec4e8 Add new target FLYWOOF405 2018-08-07 17:30:40 +08:00
Michael Keller efb340f4c6
Merge pull request #6513 from mikeller/fix_crsf_altitude
Fixed altitude display with CRSF telemetry.
2018-08-06 23:01:49 +12:00
Michael Keller f305feb797
Merge pull request #6516 from mikeller/fix_extra_esc_sensors
Fixed reporting of extended ESC sensor data in SmartPort.
2018-08-06 22:46:16 +12:00
Michael Keller 1e8dc23efe
Merge pull request #6523 from loopur/baro_test
Modify the compile error from variable definition
2018-08-06 22:43:14 +12:00
loopur d8e373f823 Modify the compile error from variable definition 2018-08-06 16:22:36 +08:00
Michael Keller 348508ce9f Fixed syntax error. 2018-08-06 08:40:31 +12:00
Michael Keller 6e718b504a Fixed tests. 2018-08-06 08:37:26 +12:00
mikeller c54aba77f1 Fixed reporting of extended ESC sensor data in SmartPort. 2018-08-05 11:57:07 +12:00
mikeller 11bce91d88 Fixed altitude display with CRSF telemetry. 2018-08-04 19:28:34 +12:00
Michael Keller d0a9a0fd93
Merge pull request #6503 from McGiverGim/cms_throttle_boost
Fix CMS Throtle Boost
2018-08-02 13:12:23 +12:00
Michael Keller b979cb2ea4
Merge pull request #6485 from etracer65/dyn_filter_2k
Fix dynamic filter for gyro loop < 4K
2018-08-02 13:10:26 +12:00
Michael Keller 1f1dd981bd
Merge pull request #6484 from etracer65/disable_dynfilter_below_2k
Disable DYNAMIC_FILTER feature if gyro loop is less than 2KHz
2018-08-02 13:07:28 +12:00
Bruce Luckcuck 382ad2ad8f More changes from review & rebase
Simplified disable logic to only use the feature() check in the gyro loop.

Changed 2000hz loop time constant to a define.
2018-08-01 12:20:32 -04:00
Bruce Luckcuck 9ba89f6da0 Changes from review
Revise and simplify initialization logic and avoid unneeded code if USE_DUAL_GYRO is not defined.

Corrected double constant to float.

Split centerFreq filter apply and constrain into separate statements.
2018-08-01 12:12:44 -04:00
Miguel Angel Mulero Martinez db133032a6 Fix CMS Throtle Boost 2018-08-01 16:00:32 +02:00
Michael Keller bf1c5729cc
Merge pull request #6473 from mikeller/enable_nucleof722_sdio
Enabled SDIO on NUCLEOF722.
2018-08-01 19:08:10 +12:00
Michael Keller 0b9b9f07f4
Merge pull request #6501 from mikeller/remove_omnibus_feature
Removed feature LED_STRIP from OMNIBUS to make it fit into flash.
2018-08-01 19:07:29 +12:00
mikeller 5f6aaa3630 Removed feature LED_STRIP from OMNIBUS to make it fit into flash. 2018-08-01 18:28:12 +12:00
Bruce Luckcuck 25c6b038d9 Changes from review
Used HZ_TO_INTERVAL_US() instead of hardcoded 500us.

Moved tests into a dedicated function.
2018-07-31 10:37:01 -04:00
Bruce Luckcuck f411b82eb6 Disable DYNAMIC_FILTER feature if gyro loop is less than 2KHz
The dynamic filter is not usefull with gyro loop times less than 2KHz so disable the feature and prevent the code from running in this circumstance.

In `isDynamicFilterActive()` we can't just rely on the feature because the feature will be disabled after the gyro has initialized and is running - possibly running into the underflow/wedging problem. And unfortunately we can't disable the feature earlier because we need to know the `targetLooptime` which is determined during gyro init.
2018-07-31 10:37:01 -04:00
Bruce Luckcuck f252b09fdb Fix dynamic filter for gyro loop < 4K
For gyro loops from 2K to < 4K scale the FFT_SAMPLING_RATE_HZ to ensure we get 3 samples.

Also constrain the `centerFreq` result from the lowpass to ensure it doesn't overshoot beyond the min/max notch center cutoff.
2018-07-31 08:59:27 -04:00
Michael Keller 45002a803e
Merge pull request #6496 from McGiverGim/cms_throttle_boost
Add Throttle Boost to CMS
2018-07-31 23:59:21 +12:00
Michael Keller a8b3ad9745
Merge pull request #6497 from mikeller/remove_target_features
Removed more features from F3 to make it fit.
2018-07-31 22:04:54 +12:00
mikeller 4cb0c54827 Removed more features from F3 to make it fit. 2018-07-31 21:04:30 +12:00
Miguel Angel Mulero Martinez e0d17a5e2f Hide LPF2 and Throttle Boost from CMS if not available 2018-07-31 10:15:25 +02:00
Miguel Angel Mulero Martinez df4b893d61 Add Throttle Boost to CMS 2018-07-31 09:18:06 +02:00
Michael Keller 5a045f2246
Merge pull request #6486 from DieHertz/bfdev-fix-omnibusf4-target-definition
Fixed occurrence of OMNIBUSF4 in target.h
2018-07-30 22:34:49 +12:00
Michael Keller 17ec736a4b
Merge pull request #6475 from DieHertz/icm-20601-4000dps-support
Make gyro driver more aware of ICM-20601
2018-07-30 22:34:26 +12:00
Michael Keller fda79ddaed
Merge pull request #6483 from etracer65/i2c_gyro_loop_denom
Change default gyro loop to 2.67KHz for I2C gyro targets
2018-07-30 22:01:37 +12:00
Michael Keller d751a4f674
Merge pull request #6489 from nyway/master
add new target DALRCF722DUAL
2018-07-30 21:53:31 +12:00
Michael Keller b08b2e94c0
Merge pull request #6481 from etracer65/gyro_32k_looptime_fix
Fix 32KHz gyro targetLooptime calculation
2018-07-30 21:23:48 +12:00
ZhengNingwei ad0a1ae7ac Add new target DALRCF722DUAL
This board use the STM32F722RET6 microcontroller and have the following features:
 High-performance and DSP with FPU, ARM Cortex-M7 MCU with 512 Kbytes Flash
 216 MHz CPU,462 DMIPS/2.14 DMIPS/MHz (Dhrystone 2.1) and DSP instructions, Art Accelerator, L1 cache, SDRAM
 DUAL gyro MPU6000 and ICM20602,could choose mpu6000,more stable and smooth.Or choose ICM20602,higher rate(32K/32K).Choose on CLI mode,experience different feature gyro on same board
 OSD on board
 The 16M byte SPI flash on board for data logging
 USB VCP and boot select button on board(for DFU)
 Stable voltage regulation,DUAL BEC  5v/2.5A and 10v/2A for VTX/camera etc.And could select 5v/10v with pad
 Serial LED interface(LED_STRIP)
 VBAT/CURR/RSSI sensors input
 Suppose IRC Tramp/smart audio/FPV Camera Control/FPORT/telemetry
 Supports SBus(built-in inverters), Spektrum1024/2048, PPM
 Supports I2C device extend(baro/compass/OLED etc)(socket)
 Supports GPS (socket)
2018-07-30 09:44:09 +03:00
Andrey Mironov 96762b0cb9 Fixed occurrence of OMNIBUSF4 in target.h 2018-07-29 23:01:39 +03:00
Bruce Luckcuck 0fcfb95120 Change default gyro loop to 2.67KHz for I2C gyro targets
Improves dynamic filter operation by providing a wider sampling window due to the higher gyro loop rate.

Makes the dynamic more useful by default on targets like SPRACINGF3.
2018-07-29 10:45:42 -04:00
Bruce Luckcuck 359290d1df Fix 32KHz gyro targetLooptime calculation
The target loop time was being calculated incorrectly for 32KHz gyros. Constant shoud be 31.25 rather than 31.5.
2018-07-29 10:12:24 -04:00
Andrey Mironov c2243c7fd8 Added 4K DPS awareness for ICM-20601 2018-07-29 10:17:16 +03:00
Michael Keller 9e04196047
Merge pull request #6466 from jirif/fix_6452
Fix voltage filer frequency
2018-07-29 18:17:29 +12:00
Michael Keller af69e525ce
Merge pull request #6459 from mikeller/fix_kissfcv2f7_leds
Fixed LED pins for KISSFCV2F7.
2018-07-29 18:16:12 +12:00
mikeller 688ad82c98 Enabled SDIO on NUCLEOF722. 2018-07-29 17:56:40 +12:00
Michael Keller f4011b3dc3
Merge pull request #6468 from mikeller/fix_skyzonef405_file_name
Fixed typo in SKYZONEF405 file name.
2018-07-28 16:16:56 +12:00
mikeller ea0ff42acb Added manufacturer id. 2018-07-28 13:23:32 +12:00
mikeller c8f71e97d8 Fixed typo in SKYZONEF405 file name. 2018-07-28 12:22:19 +12:00
Michael Keller c00ddb2152
Merge pull request #6458 from mikeller/rename_skyf405_skyzonef405
Renamed SKYF405 to SKYZONEF405.
2018-07-28 12:11:33 +12:00
Michael Keller 8666a5365b
Merge pull request #6464 from jflyper/bfdev-doc-rx-add-ibus-resistor-note
Added a note on alternative resister value for IBUS
2018-07-28 11:45:40 +12:00
Michael Keller b609a33bcc
Merge pull request #6465 from jflyper/bfdev-atail-mixer-fix
Fix A-Tail mixer typo (again)
2018-07-28 11:36:00 +12:00
jirif 0111949c63 Define macro HZ_TO_INTERVAL_US() and remove unneeded comments 2018-07-27 20:59:19 +02:00
jirif 2c4659c7cd Fix voltage filer frequency 2018-07-27 19:49:24 +02:00
jflyper da05e4e7f7 Fix A-Tail mixer typo (again) 2018-07-28 01:59:27 +09:00