Commit Graph

12805 Commits

Author SHA1 Message Date
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
jflyper c0d51a5f55 Convert F7s to use RTC backup register based persistent memory 2018-12-03 23:56:41 +09:00
jflyper 99fde1a0ff Use RTC backup register for persistent storage 2018-12-03 09:45:36 +09: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
mikeller c927a65024 Fixed define dependency of gyro device parameter group, gyro EXTI CLI support. 2018-11-27 22:20:04 +13:00
Michael Keller 32068e3830
Merge pull request #7126 from jflyper/bfdev-generic-handling-of-target-default-mixer
Remove (literal) target dependency from "TARGET_DEFAULT_MIXER"
2018-11-26 21:52:04 +13:00
Michael Keller 06d931e245
Merge pull request #7125 from jflyper/bfdev-move-BEEPER_OPT-out-of-target.h
[BLUEJAYF4,YUPIF4] Move BEEPER_OPT out of target.h
2018-11-26 21:51:49 +13:00
Michael Keller 02c7ac8c93
Merge pull request #7124 from mikeller/rename_use_flash
Renamed USE_FLASH to USE_FLASH_CHIP for clarity.
2018-11-26 21:51:27 +13:00
Michael Keller 5a8ada0020
Merge pull request #7123 from mikeller/amend_parameter_group_documentation
Amended parameter group documentation to contain uniformity / atomicity constraints.
2018-11-26 21:51:09 +13:00
Michael Keller 5c594a5562
Merge pull request #7122 from etracer65/throttle_limit_msp
Add throttle_limit settings to MSP
2018-11-26 21:50:31 +13:00
borisbstyle 9d94619c39
Merge pull request #7130 from etracer65/increase_dshot_idle
Increase DSHOT digital idle default value
2018-11-26 08:53:50 +01:00
jflyper 58692b9009 Set MAX7456 SPI instance to default NULL 2018-11-26 11:10:42 +09:00
Tony Cabello 3199c48ee9 GPS Rescue no longer forces a reset home position when disarmed
Home position is deinitialized on disarm at gpsUpdate, so it can't be missed
DistanceFlown is reset inside GPS_calculateDistanceFlown
DistanceFlown was not calculated properly
2018-11-26 00:32:22 +01:00
jflyper 444bf882b8 Remove stale config address def 2018-11-26 02:21:51 +09:00
jflyper ba5938c5c8 Remove stale MPU_INT_EXTI def 2018-11-26 01:47:14 +09:00
jflyper eb3533e0be Remove stale BOARD_HAS_VOLTAGE_DIVIDER 2018-11-26 01:32:04 +09:00
Bruce Luckcuck b777c6f853 Increase DSHOT digital idle default value
The DSHOT digital idle value is quite low (4.5%) and is often the cause of support issues as users are unaware that they may have to adjust this based on their motor/ESC requirements - leading to de-syncs and "death rolls" or other flip-outs.

While DSHOT capable ESC's (BLHeli_S & BLHeli32) have faster MCU's and are often capable of smoother low speed idling, 4.5% is still quite low. For comparison the `min_throttle` default is 1070 equating to a 7% idle.

I propose raising the digital idle to 5.5% to reduce occurrences of de-syncs from too low idle speed.
2018-11-25 10:34:05 -05:00
Michael Keller 68402e6571
Merge pull request #7109 from phobos-/spi_rx_led
Unified SPI RX led and bind functionality
2018-11-26 00:31:49 +13:00
phobos- c88a5a3a22 Refactored SPI RX led blink and bind plug functionality to rx_spi_common 2018-11-25 10:37:18 +01:00
mikeller e4bd905f70 Added clarification about new parameters if 0 is an invalid value. 2018-11-25 15:51:26 +13:00
jflyper 3c58522d5e Use pinio for OSD channel switch and move OSD_CH_SWITCH out of target.h 2018-11-25 11:03:53 +09:00
jflyper 68da794db8 Remove (literal) target dependency 2018-11-25 10:44:13 +09:00
jflyper 3b0a32e5b5 Move BEEPER_OPT out of target.h 2018-11-25 10:32:16 +09:00
mikeller c8e484df94 Renamed USE_FLASH to USE_FLASH_CHIP for clarity. 2018-11-25 13:47:31 +13:00
mikeller cad702b4f7 Amended parameter group documentation to contain uniformity / atomicity constraints. 2018-11-25 13:40:17 +13:00
Michael Keller 4246f06529
Merge pull request #7073 from ctzsnooze/Update-D-defaults
Set TPA default to D only, increase D about 10%
2018-11-25 13:31:29 +13:00
Michael Keller befd913e23
Merge pull request #7115 from jflyper/bfdev-protect-baro-and-mag-from-null-instance
[BARO,MAG,SPI] Protect mag and baro against NULL instance
2018-11-25 13:23:17 +13:00
Michael Keller 68eadcf6f3
Merge pull request #7117 from etracer65/add_throttle_limit_to_cms
Add throttle limit settings to CMS
2018-11-25 12:57:08 +13:00
Michael Keller 4b60befd83
Merge pull request #6965 from jflyper/bfdev-fix-bad-conditional-in-flash-pg
FLASH: Use USE_FLASH instead of USE_FLASHFS to protect flash pg
2018-11-25 12:48:17 +13:00
Bruce Luckcuck 78ecccd724 Add throttle_limit settings to MSP
The feature has been in place and stable since 3.4 so it seems reasonable to add it to MSP so it can be added to the configurator.
2018-11-24 17:58:54 -05:00
Michael Keller e24a4fe4de
Merge pull request #7113 from TonyBlit/gps_total_distance_hdop
Total Distance calculation fixes & cleanup
2018-11-24 12:17:42 +13:00
Bruce Luckcuck 9830681158 Add throttle limit settings to CMS
There have been a number of requests for this as it seems to be common for racers to tune these values and adjust the settings as they become more comfortable with a track. Previously the settings could only be adjusted in the CLI and required a computer. Adding them to the CMS makes it easy to adjust in the field.
2018-11-23 09:25:00 -05:00
Michael Keller 9486789204
Merge pull request #7098 from flywoo/master
Add new target FLYWOOF7DUAL
2018-11-23 20:28:45 +13:00