Commit Graph

12934 Commits

Author SHA1 Message Date
jflyper 14bbc3ac07 Code cleanup, remove old code and debug artifacts 2018-12-04 23:03:44 +09:00
jflyper 06882b6a2c Turn on RTC bus clock for applicable MCUs, drop time clock init 2018-12-04 23:02:42 +09:00
Tony Cabello 93bf8b2186 OSD GPS indicator blinks when numSats is below 5 2018-12-04 09:19:45 +01:00
Michael Keller 46fa249f25
Merge pull request #7169 from jflyper/bfdev-fix-f411-clock-levels
[F411,SYSTEM] Delete bogus clock PLL parameter table entry
2018-12-04 20:46:23 +13:00
jflyper 2446dafffd Kludge to do additional reset for F722 if RTC is invisible 2018-12-04 12:25:02 +09:00
jflyper a539997ffb Change position of checkForBootloaderRequest (F745 working) 2018-12-04 10:09:11 +09:00
jflyper 6bacdc71ff Don't use variable initialization; it is referenced before it is initialized 2018-12-04 03:12:36 +09:00
Steffen Windoffer 1588a6a23d fix writeGpsPositionPrameToBST 2018-12-03 16:35:50 +01:00
jflyper c0d51a5f55 Convert F7s to use RTC backup register based persistent memory 2018-12-03 23:56:41 +09:00
jflyper ac02ee4cf2 Delete bogus clock pll entry 2018-12-03 22:52:23 +09:00
Michael Keller b6408b3a32
Merge pull request #6714 from pkruger/4155-feature-for-osd-elements-on-a-switch
4155 feature for osd elements on a switch
2018-12-04 02:25:57 +13:00
Michael Keller bb1e254d96
Merge pull request #7168 from mikeller/fix_arming_prevention_test
Fixed arming prevention unittest.
2018-12-04 02:24:38 +13:00
mikeller 1784910aa8 Fixed arming prevention unittest. 2018-12-04 01:34:06 +13:00
Michael Keller 76e3722a17
Merge pull request #7159 from TonyBlit/gps_rescue_prevent_arm
GPS Rescue: check failsafe procedure when preventing arming
2018-12-03 23:33:04 +13:00
Michael Keller 8eff13e8ab
Merge pull request #7160 from TonyBlit/gps_total_distance_speed
Calculate distance flown with a speed threshold
2018-12-03 23:32:43 +13:00
Michael Keller 8e9462e251
Merge pull request #7158 from TonyBlit/gps_rescue_armed_check
Arm prevention if Rescue is activated
2018-12-03 21:52:42 +13:00
Michael Keller 6566ec8ed6
Merge pull request #7151 from jflyper/bfdev-configurable--sdcard-spi-sdio
[SDCARD,MSC] Switch USBD storage fops table according to sdcard config
2018-12-03 21:39:22 +13:00
Michael Keller c119843785
Merge pull request #7162 from TonyBlit/gps_osd_blink
Blink GPS indicator on OSD when numsats is lower than minimum configu…
2018-12-03 21:37:31 +13:00
Michael Keller 55a56cd522
Merge pull request #7148 from TonyBlit/osd_warn_rcsmoothing
Added missing osd_warn_rc_smoothing in settings
2018-12-03 21:34:04 +13:00
Michael Keller ec7204e4a5
Merge pull request #7154 from mikeller/fix_bmi160_gyro
Fixed build dependency on EXTI for BMI160 driver.
2018-12-03 21:32:56 +13:00
jflyper 99fde1a0ff Use RTC backup register for persistent storage 2018-12-03 09:45:36 +09:00
E Thomas 1fbaca86b4 Fix 'looping' after vtx_freq in MHz set
Added 'saGetSettings()' to saDoDevSetFreq() fn
2018-12-02 14:06:00 -05:00
Tony Cabello 84d2bc2c83 Arm prevention if Rescue is activated 2018-12-02 19:17:52 +01:00
Kenneth Mitchell 233ac7fb3f
Allow width=0 to select single notch. Restore dyn lpf mins. 2018-12-02 10:01:51 -05:00
Kenneth Mitchell 011eae93c6
Cascaded notch filters. 2018-12-02 09:52:02 -05:00
jflyper 0cf8679b5c Switch USBD storage fops table according to sdcard config 2018-12-02 21:51:40 +09:00
Tony Cabello d87e40725e Calculate distance flown with a speed threshold 2018-12-02 06:49:46 +01:00
Tony Cabello bdd57a6ce4 GPS Rescue: check failsafe procedure when preventing arming 2018-12-02 04:47:47 +01:00
Tony Cabello 8a15b128dc Added missing osd_warn_rc_smoothing in settings 2018-12-02 04:37:18 +01:00
mikeller ca5da2fdbb Fixed build dependency on EXTI for BMI160 driver. 2018-12-02 10:50:15 +13:00
Michael Keller 3736a2486d
Merge pull request #7116 from jflyper/bfdev-status-command-refactor
[CLI] Refactor status command to print things in more sensible order
2018-12-02 10:41:07 +13:00
jflyper d4ac21cdc7 Refactor status command to print things in more sensible order 2018-12-01 22:21:58 +09:00
Pieter Kruger 8d981df1a9 Add OSD Profile feature - issue 4155 2018-12-01 17:51:38 +10:00
Tony Cabello eadddf90af Blink GPS indicator on OSD when numsats is lower than minimum configured for GPS Rescue 2018-11-30 05:54:34 +01:00
Michael Keller 8a4ea0785e
Merge pull request #7142 from mikeller/remove_use_multi_gyro
Removed USE_MULTI_GYRO from targets that have it defined by default.
2018-11-29 19:28:54 +13:00
Michael Keller ed86cd27e5
Merge pull request #7143 from etracer65/rc_smoothing_retraining_samples
RC Smoothing: reduce retraining sample count
2018-11-29 19:28:41 +13:00
Michael Keller d9da73a496
Merge pull request #7145 from etracer65/msc_osx
Fixes to allow the MSC command with on-board flash to work on MacOS.
2018-11-29 19:26:47 +13:00
Michael Keller 2fd4589106
Merge pull request #7127 from jflyper/bfdev-KROOZX-use-pinio-for-OSD-channel-switch
[KROOZX] Use pinio for OSD channel switch and move OSD_CH_SWITCH out of target.h
2018-11-28 23:52:35 +13:00
Michael Keller 4134c9c790
Merge pull request #7135 from jflyper/bfdev-move-hcsr04-default-pins-out-of-driver
[RANGEFINDER_HCSR04] Move default pin defs out of driver file
2018-11-28 23:52:15 +13:00
Michael Keller 8300203dcd
Merge pull request #7141 from mikeller/amend_parameter_group_doc_again
Amended parameter group documentation to include array length considerations.
2018-11-28 23:51:45 +13:00
jflyper 0f7d1ead97 Move default pin defs out of driver file 2018-11-28 14:07:49 +09:00
Bruce Luckcuck a1899d671b Fixes to allow the MSC command with on-board flash to work on MacOS.
Fixed a bug in the STM libraries to set the write protected bin in the device config for the mass storage SCSI sense code 6 and 10. Previously the `isWriteProtected()` result was only being examined during write attempts and they correctly failed and returned a `NOT_READY` response (we don't support writes for SPIFLASH). Unfortunately since the device was not flagged as write protected on MacOS the operating system would try to write to the device and this would fail causing the operating system to think the device wasn't ready and refuse to mount it.

General fixes:

Ensured that the filesystem appears to be at least 256MB so that the volume will be treated as FAT32 instead of FAT16. A hidden "padding.txt" file is created to represent the extra space.

Fix the directory structure to only create the "btfl_all.bbl" file if there were any logs found. Previously it would always be created and this would lead to directory corruption.

Fix the size calculation for the  "btfl_all.bbl" file. Previously it was being set to the total flash size rather than the used space.
2018-11-27 18:48:46 -05:00
Bruce Luckcuck 76e537cff7 RC Smoothing: reduce retraining sample count
Reduce the retraining sample count from 50 to 20. The initial training remains unchanged at 50 samples.

Speeds up the transition to a new detected frame rate and adjusts the filters to new optimal cutoffs quicker. As an example for CRSF: switching from 150hz to 50hz would take approximately 1 second (50 samples @ 20ms). After this change it will take approximately 0.4 seconds.
2018-11-27 10:48:53 -05:00
Michael Keller 39582667c2
Merge pull request #7131 from jflyper/bfdev-wormfc-remove-stale-def
[WORMFC] Remove stale BOARD_HAS_VOLTAGE_DIVIDER
2018-11-28 00:46:44 +13:00
Michael Keller 73fdb9fae4
Merge pull request #7133 from jflyper/bfdev-kroozx-remove-stale-config-address-def
[KROOZX] Remove stale config address def
2018-11-28 00:46:14 +13:00
Michael Keller 5cd29f6eb0
Merge pull request #7134 from jflyper/bfdev-max7456-default-instance-to-null
[MAX7456] SPI instance defaults to NULL
2018-11-28 00:45:57 +13:00
Michael Keller fa5716a20d
Merge pull request #7136 from mikeller/fix_gyro_dev_parameter_group
Fixed define dependency of gyro device parameter group, gyro EXTI CLI support.
2018-11-28 00:42:57 +13:00
mikeller 6d726f7d5f Removed USE_MULTI_GYRO from targets that have it defined by default. 2018-11-28 00:31:18 +13:00
Michael Keller 9ef4a118b7
Merge pull request #7100 from TonyBlit/gps_total_distance_fix
Total Distance is reset on re-arming
2018-11-27 23:36:52 +13:00
mikeller 27dd36590b Amended parameter group documentation to include array length considerations. 2018-11-27 23:33:40 +13:00