Commit Graph

12374 Commits

Author SHA1 Message Date
Bruce Luckcuck 9cf671b817 Change dterm_notch_cutoff default to 0
The dterm notch is disabled and dterm_notch_hz is already 0 by default. When the Configurator saves changes from the PID Tuning tab and the notch is disabled it sets both dterm_notch_hz and dterm_notch_cutoff to 0.  Since the default was left at 160, this makes dterm_notch_cutoff appear in diff outputs.  Ultimately it's just cosmetic since the dterm notch is disabled if either value is zero.  But there's no reason for the dterm_notch_cutoff to remain set to the legacy 160 value.
2018-09-10 08:07:27 -04:00
jflyper 59db3f69f7 OMNINXT Fix orientation of gyro 2 2018-09-10 18:08:44 +09:00
jflyper 3e89a313bd Handle more targets 2018-09-10 17:55:55 +09:00
jflyper 017c20226f Convert new targets 2018-09-10 17:55:55 +09:00
jflyper 9ef9f98310 Various fixes based on mikeller's comment. 2018-09-10 17:55:55 +09:00
jflyper fc6c24c38e Configurable acc/gyro 2018-09-10 17:55:52 +09:00
Michael Keller c71b1cb0df
Merge pull request #6721 from betaflight/anti_windup_fix
Fix bug with antiwindup inversion
2018-09-10 20:51:15 +12:00
Michael Keller 56b181a235
Merge pull request #6726 from ctzsnooze/iterm-relax-threshold-minor-fix
use the defined value in both places
2018-09-10 20:49:50 +12:00
Andrey Mironov 241458e1e0 Added KAKUTEF7V2 target 2018-09-10 10:54:45 +03:00
Michael Keller 5ef68ef6a3
Merge pull request #6669 from DieHertz/bfdev-f76x-support
Added support for STM32F765xx
2018-09-10 19:42:38 +12:00
Michael Keller be3cd4f5c4
Merge pull request #6720 from Faduf/YUPIF7_Mag_orientation
add specific orientation for mag of the YupiF7 extension board
2018-09-10 19:15:42 +12:00
borisbstyle 864a2d6a2b Fix bug with antiwindup inversion 2018-09-10 09:08:36 +02:00
ctzsnooze acbc041259 use the defined value in both places 2018-09-10 16:52:27 +10:00
Faduf 5361dd0d66 add specific orientation for mag of the YupiF7 extension board 2018-09-09 22:05:15 +02:00
Andrey Mironov 600b854850 Reordered F7 chip types 2018-09-09 13:36:46 +03:00
Andrey Mironov 501f4a1345 Removed redundant preprocessor defs for UART AF 2018-09-09 13:36:25 +03:00
Michael Keller 39ced6bbfe
Merge pull request #6668 from mikeller/add_fno_common
Added '-fno-common' build option, fixed resulting problems.
2018-09-08 16:51:22 +12:00
Michael Keller 0c265773dd
Merge pull request #6688 from mikeller/dont_skip_serial_frames
Remove skipping of frames after suspension for serial RX.
2018-09-08 16:37:33 +12:00
Michael Keller aa9e421068
Merge pull request #6680 from mikeller/add_vtx_control_disable_mode
Added 'VTX CONTROL DISABLE' mode.
2018-09-08 15:37:11 +12:00
Andrey Mironov d6861b0842 Refactored UART pin config similarly to SPI to accomodate F765 2018-09-07 23:22:49 +03:00
Andrey Mironov 8073cb8665 Added UART alternative functions for F765 2018-09-07 22:53:19 +03:00
Andrey Mironov 7a331d03f4 Added preliminary support for STM32F765xx 2018-09-07 22:47:20 +03:00
Michael Keller 93cd8341f3
Merge pull request #6702 from jflyper/bfdev-accgyro-remove-reset-facility
Accgyro: Remove soft reset facility
2018-09-07 18:13:56 +12:00
jflyper 58647e678f Remove reset facility 2018-09-06 20:07:09 +09:00
jflyper 9caeceb2dd Resolve upward inclusion 2018-09-06 18:43:58 +09:00
Bruce Luckcuck a76d22bf60 Add CLI validation of parameters and print a corrupted value message
Validates the index for lookup values to prevent referencing random memory.  Also validates the range of numeric parameters.

diff output will clearly show any corrupted parameters.
2018-09-05 07:36:42 -04:00
Michael Keller 1217893676
Merge pull request #6696 from etracer65/msp_usb_hid_fix
Fix USB HID parameter support in MSP_SET_RX_CONFIG msp message
2018-09-05 09:54:37 +12:00
Bruce Luckcuck a39f9480d9 Fix USB HID parameter support in MSP_SET_RX_CONFIG msp message
Workaround to make the firmware tolerant of missing Configurator support in versions 10.4.1 or less. Will still work properly when Configurator support is added.
2018-09-04 16:44:44 -04:00
Michael Keller ad16f2db0f
Merge pull request #6402 from ianrmurphy/3.4.0-rate-limit
CLI configurable limits for rates
2018-09-05 08:33:30 +12:00
Michael Keller baaaaf9d8f
Merge pull request #6681 from jflyper/bfdev-refactor-timerInit
Remove IOConfigGPIOAF from timerInit
2018-09-05 00:35:08 +12:00
mikeller 04379715cb Fixed warning. 2018-09-05 00:34:43 +12:00
Michael Keller 6797d5dd2b
Merge pull request #6692 from si618/f1_gone
Remove F1 from list of supported processors.
2018-09-05 00:32:20 +12:00
si 319d6034cf Remove F1 from list of supported processors. 2018-09-04 12:52:15 +09:30
ianrmurphy 2c1988f1f3 Integer SETPOINT_RATE_LIMIT for STATIC_ASSERT(). 2018-09-03 21:30:01 +01:00
ianrmurphy e4cdb077b2 Added rate_limit feature to rateprofiles.
Updated to conform to style guide.

Fixed issue with statement ordering. Minimum rates of 200deg/s.

Added rate limits to MSP for use in Configurator.

Refactoring to improve efficiency.

Revert 'msp.c' changes.

Added BUILD_BUG_ON(CONTROL_RATE_CONFIG_RATE_LIMIT_MAX > SETPOINT_RATE_LIMIT).

Added rate_limits to log header to faciliate support for blackbox-log-viewer to correctly handle the rate calculation.

Use STATIC_ASSERT() for build protection.
2018-09-03 21:23:49 +01:00
mikeller 2ecfb1d183 Completely drop suspension for serial RX - there is no point since we do not use preemptive multitasking. 2018-09-04 01:09:57 +12:00
Michael Keller e2b91ae0f1
Merge pull request #6670 from mikeller/fix_spektrum_rx
Fixed Spektrum implementation inconsistency.
2018-09-03 23:17:32 +12:00
Michael Keller d9ac128b0d
Merge pull request #6686 from ctzsnooze/master-fix-dividebyzero-iterm
to prevent divide by zero possibility in pid.c
2018-09-03 23:06:32 +12:00
Michael Keller 5c8d08889d
Merge pull request #6682 from etracer65/crash_recovery_term_relax_fix
Fix iterm relax interfering with crash recovery
2018-09-03 23:04:52 +12:00
mikeller 295550c921 Remove skipping of frames after suspension for serial RX. 2018-09-03 22:49:38 +12:00
Blaine 2e552841f1 Enables Vario on targets that support barometers
OSD and telemetry output of vario data is enabled on F4 and up targets
that have
USE_BARO defined.  Settings and telem elements are removed from all
other targets.

F3 targets are not supported to free memory.
2018-09-02 23:20:07 -07:00
ctzsnooze ec3ed476fa to prevent divide by zero possibility in pid.c 2018-09-03 12:43:18 +10:00
Michael Keller adc965327f
Merge pull request #6622 from mikeller/fix_gps_rescue_interface
Cleaned up the GPS rescue interface.
2018-09-03 10:23:45 +12:00
Michael Keller a8b92ea920
Merge pull request #6662 from awolf78/master
GPS over MSP related fixes
2018-09-03 10:12:24 +12:00
Bruce Luckcuck 960442e917 Fix iterm relax interfering with crash recovery
Iterm Relax was inserted before crash recovery and this was causing the recovery to be ineffective or fail completely. The problem was that the subsequent iterm calculation was not using the calculated recovery error and instead was using the setpoint error. As such I ended up accumulating and opposing P based on recovery error. This prevented the efforts of crash recovery to level the quad and since it couldn't reach the level state crash recovery wouldn't shut off. This resulted in the pilot only having control over yaw and throttle while crash recovery was still ineffectually trying to control roll/pitch.

The fix is to move crash recovery handling ahead of the iterm relax calculations and make sure that iterm relax uses the error calculated from crash recovery if active.  This also allows crash recovery to reset the iterm accumulation as originally designed.
2018-09-02 09:58:16 -04:00
jflyper 7665a424c7 Remove IOConfigGPIOAF from timerInit 2018-09-02 15:42:50 +09:00
mikeller 2fffaac3df Added 'VTX CONTROL DISABLE' mode. 2018-09-02 16:19:12 +12:00
Michael Keller 09b52975fb
Merge pull request #6679 from jflyper/bfdev-fix-servoDevInit
Initialize timers assigned to servos appropriately
2018-09-02 14:30:52 +12:00
Michael Keller 3d5a3a1798
Merge pull request #6673 from etracer65/level_mode_param_rename
Rename level mode parameters to match their function
2018-09-02 13:30:31 +12:00
timman2er b38afdb7db Fix building guide (rebase because weird things happened 2018-09-02 02:54:46 +02:00