Commit Graph

15887 Commits

Author SHA1 Message Date
Michael Keller 18cc54992d
Merge pull request #9716 from mikeller/add_translators_to_readme
Added instructions for new translators to README.md.
2020-04-20 01:03:01 +12:00
mikeller 17f9ba291a Added instructions for new translators to README.md. 2020-04-19 02:34:20 +12:00
Michael Keller 4f2a6103bb
Merge pull request #9703 from IllusionFpv/add-rates-type-to-blackbox-header
Add rates_type to blackbox header
2020-04-18 23:53:16 +12:00
Michael Keller 81dd5b28b0
Merge pull request #9696 from mikeller/fix_typo_in_readme
Fixed typo in README.md.
2020-04-18 23:36:46 +12:00
Michael Keller 7b0f4bde92
Merge pull request #9700 from jflyper/bfdev-h7-fix-timer-irq-handlers
[H7] Fix/add timer IRQ handlers
2020-04-18 18:30:32 +12:00
Nicola De Pasquale 05dc3045ae add rates_type to blackbox header 2020-04-14 01:18:31 +02:00
jflyper b291bc804c [H7] Fix/add timer IRQ handlers 2020-04-13 16:33:14 +09:00
Michael Keller fde6c680b3
Merge pull request #9694 from etracer65/pid_process_denom_default_v2
Revise pid_process_denom default logic - 2nd try
2020-04-13 15:25:17 +12:00
Michael Keller 568c31a4f2
Merge pull request #9689 from mikeller/fix_missing_linefeed
Added missing linefeed after version in CLI.
2020-04-13 13:10:50 +12:00
mikeller fa4275603e Fixed typo in README.md. 2020-04-13 01:27:31 +12:00
Michael Keller a2aa3f19f4
Merge pull request #9684 from etracer65/fix_cms_task_rate
Fix CMS task rate; correct cmsDeviceCount logic; coding style cleanup
2020-04-12 17:33:04 +12:00
mikeller 547f161d27 Added missing linefeed after version in CLI. 2020-04-12 15:18:45 +12:00
Bruce Luckcuck fb034c22e7 Revise pid_process_denom default logic - 2nd try
Now with the motor protocol defaulting to DISABLED we can reimplement this.

Remove dependence on gyro type and base on MCU type.

The previous logic was based on expecting an 8K sampling gyro and would set an inappropriate loop time for other gyro types.

Change the logic to be based on the capabilities of the MCU which is more appropriate. We set the pid_process_denom default to the maximum recommended value for a given MCU.

The `pid_process_denom` will be defaulted as follows (assuming a 8khz gyro) based on MCU type:

MCU	`pid_process_denom`
F1:	8 (1khz)
F3:	4 (2khz)
F411:	2 (4khz)
Others:	1 (8khz)

Of course the final PID loop rate will be based on the native sample rate of the gyro.
2020-04-11 20:23:43 -04:00
Michael Keller 2101326a1d
Merge pull request #9619 from mikeller/add_motor_protocol_disabled
Added 'disabled' motor protocol and made it the default.
2020-04-11 12:41:18 +12:00
Michael Keller 5be62ca162
Merge pull request #9653 from mikeller/cli_print_custom_defaults_data
Parse and print custom defaults header data in CLI.
2020-04-11 12:29:13 +12:00
Michael Keller 337f176a11
Merge pull request #9675 from mikeller/fix_gyro_detection_time
Fixed unnecessarily long startup time due to gyro detection.
2020-04-11 12:28:53 +12:00
Bruce Luckcuck 9fa0c3bb1e Fix CMS task rate; correct cmsDeviceCount logic; coding style cleanup
The CMS task was configured to run at 60hz but there was limiting logic in place to restrict it to every 50ms (20hz). Remove the extra logic and simply run the task at 20hz.

There was incorrect logic that checked if `(cmsDeviceCount < 0)` to not run the task. Firstly `cmsDeviceCount` can never be < 0, and secondly the task should not run when it is 0 as that means there are no registered `displayPort` devices. Generally fix the logic to used `unsigned` for `cmsDeviceCount`. It can only ever be increaded (new device registered) and there is no mechanism to "unregister" a device.

Lots of coding style cleanup.
2020-04-10 10:01:51 -04:00
Michael Keller 04bbaa8590
Merge pull request #9678 from mikeller/fix_angle_mode_inconsistency
Fixed inconsistency in ANGLE mode naming.
2020-04-10 00:57:07 +12:00
mikeller b9462c386f Fixed inconsistency in ANGLE mode naming. 2020-04-08 13:24:34 +12:00
Michael Keller 1dee491370
Merge pull request #9674 from ctzsnooze/increase-dMin-default
increase dMin values 20,22 to 23,25
2020-04-07 22:29:10 +12:00
mikeller 489156602f Fixed unnecessarily long startup time due to gyro detection. 2020-04-07 22:20:04 +12:00
ctzsnooze 8f7db49515 increase dMin values 20,22 to 23,25 2020-04-06 18:07:59 +10:00
Michael Keller 00f2e2a772
Merge pull request #9672 from tstibor/fix_out_of_bounds
Fix buffer is accessed out of bounds
2020-04-06 08:29:41 +12:00
Thomas Stibor b9ccc67f1d Fix buffer is accessed out of bounds
Fix out of bounds buffer problems caused by employing incorrect sizes
VOL_LABEL_LEN != 12 in bs->volume_label
FILE_NAME_SHRT_LEN + FILE_NAME_EXTN_LEN != 8 in entry->name
2020-04-05 07:22:52 +02:00
Michael Keller cb8ab75475
Merge pull request #9654 from mikeller/add_4_2_release_freeze_announcement
Added announcement of the feature freeze for 4.2.
2020-04-05 00:41:08 +13:00
mikeller 4b1ec391a9 Added announcement of the feature freeze for 4.2. 2020-04-04 12:34:09 +13:00
Michael Keller 4859e466f3
Merge pull request #9666 from ctzsnooze/Reduce-default-iterm_relax_cutoff-to-15
Reduce default iterm_relax_cutoff to 15 from 20
2020-04-02 13:44:03 +13:00
Michael Keller 98e3d291bf
Merge pull request #9663 from fgiudice98/fix-vbat-digits
Fix osd vbat digits
2020-04-02 13:40:56 +13:00
Michael Keller eefb27818d
Merge pull request #9665 from ctzsnooze/Increase-default-D_Min-Gain
Increase D_Min gain to improve D behaviour on most quads
2020-04-02 13:40:45 +13:00
mikeller 7b845150af Parse and print custom defaults header data in CLI. 2020-04-02 01:51:33 +13:00
Michael Keller 1b5b06197b
Merge pull request #9657 from MadQ/CliFix
Fixed inconsistent CR/LF
2020-04-02 00:38:04 +13:00
Michael Keller b1ddfc2e76
Merge pull request #9662 from jflyper/bfdev-f446-add-missing-i2c-pin
Add missing I2C2 pin for F446
2020-04-02 00:35:47 +13:00
mikeller d1ac12eccd Added 'disabled' motor protocol and made it the default. 2020-04-01 20:33:29 +13:00
ctzsnooze ba7dc48732 Reduce default iterm_relax_cutoff to 15 from 20 2020-04-01 10:41:14 +11:00
ctzsnooze 6f198b84ab Increase D_Min gain to improve D behaviour on most quads 2020-04-01 10:33:54 +11:00
fgiudice98 9093c46456 Fix osd vbat digits
IE was showing 4.9 instead of 4.09
2020-03-31 21:41:06 +02:00
jflyper 4892d7092c Add missing I2C2 pin for F446 2020-03-31 20:33:17 +09:00
MadQ 6de521fe21 Fixed inconsistent CR/LF so that the Configurator CLI code can be simplified. 2020-03-30 09:27:00 -04:00
MadQ d49390da22 Revert "Corrected inconsistent use of CR/LF."
This reverts commit 61b4a6b189.
2020-03-30 09:19:10 -04:00
MadQ 61b4a6b189 Corrected inconsistent use of CR/LF. 2020-03-29 23:22:18 -04:00
Michael Keller 5f8fc1e6f9
Merge pull request #9647 from etracer65/mixer_crashflip_div0
Fix division by zero in mixer crashflip
2020-03-28 14:02:13 +13:00
Michael Keller 9c248b1dcf
Merge pull request #9645 from etracer65/mixer_vbat_comp_div0
Fix division by 0 risk in mixer vbat sag compensation
2020-03-28 14:01:58 +13:00
Michael Keller fee4f6f9f0
Merge pull request #9644 from etracer65/osd_battery_usage_div0
Prevent division by 0 error in battery usage OSD element
2020-03-28 14:00:32 +13:00
Michael Keller d494d215a9
Merge pull request #9643 from hydra/bf-fix-video-configuration-for-frskyosd
Fix unable to change video system for FrSkyPixelOSD.
2020-03-28 13:51:19 +13:00
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