Commit Graph

15893 Commits

Author SHA1 Message Date
Michael Keller f2ef33cbdd
Merge pull request #9642 from IllusionFpv/constrain-pidloop-for-bidir
Change pidloop constraint when dshot bidir is enabled
2020-03-28 13:51:01 +13:00
Bruce Luckcuck 3c1e8cb1c3 Fix division by zero in mixer crashflip 2020-03-26 19:45:07 -04:00
Bruce Luckcuck ae76defa56 Fix div by 0 risk in mixer vbat sag compensation
Fix division by zero if `batteryConfig()->vbatwarningcellvoltage` was set to 420 (4.2v).
2020-03-26 17:30:55 -04:00
Bruce Luckcuck 13f83ee4a4 Prevent division by 0 error in battery usage OSD element
If the `bat_capacity` was set to 0 (the default) then it would result in a division by 0.
2020-03-26 14:01:18 -04:00
Dominic Clifton 4084c9b3d5 Fix unable to change video system for FrSkyPixelOSD. 2020-03-26 17:34:37 +01:00
Nicola De Pasquale aa9e8bdbde change pidloop constraint when dshot bidir is enabled 2020-03-26 17:17:22 +01:00
Michael Keller 5b374c6fe0
Merge pull request #9635 from TonyBlit/sbas_none_2
SBAS_NONE part 2
2020-03-26 23:33:32 +13:00
Michael Keller 395a412b59
Merge pull request #9561 from ctzsnooze/vbat-motor-limit
Battery sag compensation by varying motor output
2020-03-26 13:58:16 +13:00
mikeller afe704bbd9 Fixes from review. 2020-03-26 01:54:42 +13:00
Tony Cabello d6ae1984a7 SBAS_NONE part 2 2020-03-24 14:24:16 +01:00
mikeller b020917c4b Prevent 0 in 'vbat_display_lpf_period' to avoid division by zero. 2020-03-25 00:41:50 +13:00
Michael Keller a4f9e42104
Merge pull request #9617 from TonyBlit/sbas_none
SBAS_NONE, gps_sbas_integrity
2020-03-24 08:43:39 +13:00
Tony Cabello ba335635ac cleanup 2020-03-23 15:45:24 +01:00
Michael Keller 5f5f469c2a
Merge pull request #9628 from jflyper/bfdev-f1-maintenance-415
[F1] Maintenance to keep F1 buildable
2020-03-24 02:34:09 +13:00
Michael Keller c2409cbd10
Merge pull request #9623 from mikeller/add_azure_build
Added Azure build for pull requests.
2020-03-24 02:32:58 +13:00
Michael Keller 70f7549847
Merge pull request #9620 from mikeller/updated_contributing_list
Updated the 'Contributing' list in README.md.
2020-03-24 02:32:10 +13:00
Michael Keller 9310323f2a
Merge pull request #9625 from jflyper/bfdev-fix-ADC5_DMA_OPT-def
[ADC] Fix ADC5_DMA_OPT def
2020-03-24 01:44:54 +13:00
Michael Keller 7f00659a88
Merge pull request #9626 from mikeller/improve_cli_error_messages
Improved CLI error messages.
2020-03-24 01:28:42 +13:00
mikeller d2605975a1 Improved CLI error messages. 2020-03-23 15:18:51 +13:00
jflyper 6dcb373257 [F1] Maintenance to keep F1 buildable 2020-03-23 10:30:33 +09:00
Michael Keller 0bbe52ba21
Merge pull request #9615 from TonyBlit/fix_ublox_dynamic
minor fix: missing ifdef and autoconfig check
2020-03-23 13:53:06 +13:00
Michael Keller 5c5011c6b7
Merge pull request #9616 from TonyBlit/fix_alt_before_arm
Absolute altitude before arming is now correct when using GPS and Baro
2020-03-23 13:50:10 +13:00
Tony Cabello 5932b01e6b SBAS_NONE, gps_sbas_integrity 2020-03-22 18:54:03 +01:00
jflyper 433bf792f8 [ADC] Fix ADC5_DMA_OPT def 2020-03-22 20:53:43 +09:00
mikeller e353b1a9f3 Added repository link. 2020-03-22 23:07:03 +13:00
mikeller 3aff913c83 Reformatted the release message. 2020-03-22 22:45:05 +13:00
mikeller 391c053382 Edit the release when re-publishing. 2020-03-22 22:14:25 +13:00
mikeller 3413bb0dce Improved repository link. 2020-03-22 21:55:34 +13:00
mikeller a77a8d4227 Added Azure build for pull requests. 2020-03-22 20:24:37 +13:00
ctzsnooze d63ba914c6 motor output scale
First draft

Change method to percentage compensation

fast sag filter with fast battery updates

Renaming, moving factors to init where possible

Names changed, display update frequency reverted to 50hz as it was

50Hz ESC Voltage sampling, battery sag lowpass for PID compensation.

increment PG_PID_PROFILE, element added to end of batteryConfig_t

all HZ_TO_INTERVALs set back to 200 to match battery task frequency of 200hz.

Add a flag to control vbat comp

Flag vbat_sag_comp_enabled allows battery compensation to be enabled or
disabled from the CLI. When disabled the battery voltage task is run at
50Hz and the battery compensation code is not run. When enabled the
voltage task is run at 200Hz and the compensation code runs. Constants
for the fast and slow rates are added to tasks.h. The default value for
vbat_sag_compensation is changed to 100 as we no longer need to use it
to disable the feature.

Fixed variable task frequency setting.

Added config validation to disable sag compensation unless ADC is used as the voltage data source.

Added conditionals, fixed naming.

Fixed build.
2020-03-22 17:15:08 +13:00
mikeller 34d58a4f5e Updated the 'Contributing' list in README.md. 2020-03-22 15:44:43 +13:00
Tony Cabello 720d994a90 minor fix: missing ifdef and autoconfig check 2020-03-21 16:27:02 +01:00
Tony Cabello 5209a83e6a Bug fix: absolute altitude before arming is now correct when using GPS and Baro 2020-03-21 16:26:30 +01:00
Michael Keller 9c3d4603b7
Merge pull request #9613 from etracer65/cc2500_register_init_array
cc2500: Use array-based register initialization
2020-03-21 14:57:41 +13:00
Michael Keller 5bbb238fd8
Merge pull request #9612 from etracer65/cms_osd_elements_update
Add RC channels, camera frame, efficiency elements to CMS OSD menu
2020-03-21 11:21:15 +13:00
Michael Keller 04dd72969f
Merge pull request #9610 from jflyper/bfdev-h7-add-missing-SPI1_MOSI-pin
[H7] Add missing SPI1_MOSI pin
2020-03-21 01:14:13 +13:00
Michael Keller 02c92a034c
Merge pull request #9608 from etracer65/fix_mixer_profile_init
Fix initialization of mixer related pidProfile settings
2020-03-21 01:09:06 +13:00
Bruce Luckcuck 6f7318cd2d Add RC channels, camera frame, efficiency elements to CMS OSD menu 2020-03-20 07:58:59 -04:00
Bruce Luckcuck c298076bb3 cc2500: Use array-based register initialization
Store and process the register initializations in a `const` array and process iteratively instead of individual register write calls.

Saves 712 bytes for STM32F7X2 target.
2020-03-19 19:17:04 -04:00
jflyper cdd635849d [H7] Add missing SPI1_MOSI pin 2020-03-19 14:08:39 +09:00
Bruce Luckcuck 37069ba267 Fix initialization of mixer related pidProfile settings
Previously the variables were only initialized at boot and were not updated when the pidProfile changed.
2020-03-18 10:38:31 -04:00
Michael Keller 21aef61230
Merge pull request #7601 from brycedjohnson/redpine_rebase2
Redpine protocol with cc2500 chip - Low Latency/fast
2020-03-19 00:07:49 +13:00
Michael Keller 792090e37f
Merge branch 'master' into redpine_rebase2 2020-03-18 23:46:02 +13:00
Michael Keller 95e4087641
Merge pull request #9601 from DavidBoone/efficiency-osd
Efficiency OSD element in mAh/km or mAh/mi
2020-03-18 23:24:27 +13:00
Michael Keller 23fba0d33d
Merge pull request #9606 from Linjieqiang/fix_IFLIGHT_H7_bugs
[IF_H7_TWING] Fix timer assignment error, adjust sensor orientation.
2020-03-18 23:14:01 +13:00
LinJieqiang 39b7c15f70 [IF_H7_TWING] Fix timer assignment error, adjust sensor orientation. 2020-03-18 17:17:20 +08:00
brycedjohnson 97c8952921 Redpine fast and slow protocols for cc2500 2020-03-17 19:17:21 -06:00
David Boone 93635f62aa Efficiency OSD element in mAh/km or mAh/mi 2020-03-17 15:51:46 -07:00
Michael Keller bbdc1bd586
Merge pull request #9489 from mikeller/move_targets_into_legacy_for_4_1_6
Move targets into legacy targets for 4.1.6.
2020-03-17 22:05:11 +13:00
Michael Keller ed6175b22c
Merge pull request #9597 from etracer65/iterm_windup_yaw_only
Change iterm_windup to only apply to yaw
2020-03-17 22:05:02 +13:00