1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 12:55:19 +03:00
Commit graph

15408 commits

Author SHA1 Message Date
Michael Keller
3345b56ad1
Fix CLI vtx command parsing, range checks, and output order in… (#9295)
Fix CLI vtx command parsing, range checks, and output order in diff
2019-12-22 13:51:34 +13:00
Bruce Luckcuck
682e989057 Fix CLI vtx command parsing, range checks, and output order in diff
Change to use vtxTableConfig PG settings for validation rather than the current runtime values for bands, channels and power levels. Fixes command parsing when restoring a `diff` as the `vtxtable` runtime values won't be available until after the reboot.

Fix "off by one" range check for power level that was preventing use of the highest power level configured in `vtxtable`.

Reverse the order of the `vtxtable` and `vtx` outputs in a `diff`/`dump` so that `vtxtable` settings will be applied first as the `vtx` settings are dependent on them.
2019-12-17 09:52:22 -05:00
Michael Keller
4c58889915
Move OSD elements into their own parameter group (#9278)
Move OSD elements into their own parameter group
2019-12-11 09:37:28 +13:00
Michael Keller
0dde6822c2
Fix ESC protocol startup after rearranging MSP/OSD/CMS init (#9277)
Fix ESC protocol startup after rearranging MSP/OSD/CMS init
2019-12-11 09:37:12 +13:00
Michael Keller
359ab46037
reduce antigravity gain default to 3.5 (#9128)
reduce antigravity gain default to 3.5
2019-12-11 09:35:36 +13:00
Bruce Luckcuck
afeb88850f Move OSD elements into their own parameter group
Separates the OSD elements position/visible/profile flags from the `osdConfig` PG and moves them to a new `osdElementConfig` PG. Allows new elements to be added without having to constantly update the PG version for `osdConfig`.
2019-12-09 19:13:08 -05:00
Michael Keller
dad2b244e9
Make CMS OSD menu max7456 settings have realtime effect (#9275)
Make CMS OSD menu max7456 settings have realtime effect
2019-12-10 12:41:03 +13:00
Michael Keller
ba3cf21be6
Add support for serial passthrough via MSP (#9274)
Add support for serial passthrough via MSP
2019-12-10 12:40:28 +13:00
Michael Keller
0418fdb541
Renaming 'featureEnable' / 'featureDisable' to make their use a… (#9272)
Renaming 'featureEnable' / 'featureDisable' to make their use a bit more obvious.
2019-12-10 12:38:03 +13:00
Bruce Luckcuck
7061ef0706 Fix ESC protocol startup after rearranging MSP/OSD/CMS init
Fixes double ESC initialization.
2019-12-09 16:59:29 -05:00
Alberto García Hierro
deeabdbca3 Add support for serial passthrough via MSP
- Rename MSP_SET_4WAY_IF to MSP_SET_PASSTHROUGH
- Keep backwards compatibility with existing uses of the command
- Add 2 new values for the passthrough mode: one that sets up
a serial port given its ID and another one that sets it up from
a function ID.
2019-12-09 15:58:27 +00:00
Michael Keller
7d215e8f84
Fixed 'back' command for CMS menus. (#9266)
Fixed 'back' command for CMS menus.
2019-12-10 01:48:23 +13:00
Michael Keller
457581a753
Inhibit 'Save & Exit' menu when in RC preview. (#9267)
Inhibit 'Save & Exit' menu when in RC preview.
2019-12-10 01:48:10 +13:00
Michael Keller
692765ade9
Cleaned up CLI 'resource' implementation. (#9271)
Cleaned up CLI 'resource' implementation.
2019-12-10 01:47:45 +13:00
mikeller
5f3d56cd2c Renaming 'featureEnable' / 'featureDisable' to make their use a bit more obvious. 2019-12-09 23:48:59 +13:00
Michael Keller
b3b43ab667
Fixed missing parameter group version increment for 'osdConfig'… (#9269)
Fixed missing parameter group version increment for 'osdConfig' after #9261.
2019-12-09 23:37:47 +13:00
Bruce Luckcuck
65aac98c1f Make CMS OSD menu max7456 settings have realtime effect
Makes the invert, black brightness, and white brightness update the display as the settings are changed rather than only taking effect once the menu is exited.
2019-12-08 18:01:14 -05:00
mikeller
3142d5ad70 Cleaned up CLI 'resource' implementation. 2019-12-09 01:26:57 +13:00
mikeller
be48054b5f Fixed missing parameter group version increment for 'osdConfig' after #9261. 2019-12-08 14:51:59 +13:00
mikeller
9a5e647b11 Inhibit 'Save & Exit' menu when in RC preview. 2019-12-08 12:57:55 +13:00
mikeller
cd061168ec Fixed 'back' command for CMS menus. 2019-12-08 09:47:26 +13:00
Michael Keller
18c485707e
Add camera frame OSD element (#9261)
Add camera frame OSD element
2019-12-07 19:11:28 +13:00
Michael Keller
b18478f43e
Move MSP/OSD/CMS initialization to be near the end of the init… (#9258)
Move MSP/OSD/CMS initialization to be near the end of the init process
2019-12-05 13:36:12 +13:00
Bruce Luckcuck
5c3b8c6eb6 Add camera frame OSD element
Adds an adjustable outline element designed to represent the field of view of the pilot's HD camera for visual framing. The width, height and position of the frame are adjustable.
2019-12-04 11:03:41 -05:00
Michael Keller
ef4da5ab3c
Fixed compiler warnings. (#9256)
Fixed compiler warnings.
2019-12-04 19:13:06 +13:00
Michael Keller
857144a6e6
SRXL2 failsafe fix for newer receivers (#9189)
SRXL2 failsafe fix for newer receivers
2019-12-04 15:49:38 +13:00
SpektrumRC
62322e9af9 SRXL2 failsafe tweaked failsafe handling
-Use channel mask instead of rssi for packet loss detection.
-Removed channel processing for FailsafeChannelData commands. Let betaflight do its thing
2019-12-03 17:50:06 -06:00
Bruce Luckcuck
7853782486 Move MSP/OSD/CMS initialization to be near the end of the init process
Helps prevent the USB VCP device from being initialized until the firmware is ready to accept connections. Previously the USB device would be initialized early in the process and the firmware still had lots of initialization following until it would be ready to accept connections. May help prevent connection failures if attempting to connect as soon as the serial port appears.
2019-12-03 09:33:58 -05:00
Michael Keller
ebdda3dec7
Refactor common USB MSC code and improve activity LED (#9255)
Refactor common USB MSC code and improve activity LED
2019-12-04 01:03:05 +13:00
Bruce Luckcuck
04844bd5a1 Refactor common USB MSC code and improve activity LED
Eliminated the duplicated MSC functions in the architecture specific files and moved to a shared common.

Improved the activity indicating LED and made it consistent between onboard flash and sd card mass storage mode.
2019-12-02 22:08:19 -05:00
Michael Keller
4ed9382b93
Fix compile errors if USE_FLASHFS is defined but USE_FLASH_CHIP… (#9253)
Fix compile errors if USE_FLASHFS is defined but USE_FLASH_CHIP is not
2019-12-03 13:57:47 +13:00
Michael Keller
5bd8bdcf02
Restructure flashfs MSC to prevent device timeout on MacOS (#9252)
Restructure flashfs MSC to prevent device timeout on MacOS
2019-12-03 13:53:52 +13:00
mikeller
56f725d6f3 Fixed compiler warnings. 2019-12-03 02:23:18 +13:00
Michael Keller
054bd66bc4
Update RC smoothing "auto" settings to consider interpolated fe… (#9249)
Update RC smoothing "auto" settings to consider interpolated feedforward
2019-12-02 11:31:05 +13:00
Michael Keller
00855c4bb7
Add optional search string support for CLI "help" command (#9250)
Add optional search string support for CLI "help" command
2019-12-02 11:30:48 +13:00
Bruce Luckcuck
be8a3b0801 Fix compile errors if USE_FLASHFS is defined but USE_FLASH_CHIP is not 2019-12-01 15:59:37 -05:00
Bruce Luckcuck
ee3c0e4f97 Restructure flashfs MSC to prevent device timeout on MacOS
For devices using the 1Gb NAND flash the scanning phase that discovers the individual logs was taking to long resulting in the operating system thinking the mass storage device had become unresponsive. It is simply a factor of the larger flash size and the amount of time needed to scan all 2K blocks.

Restructured to scan the flash before initializing and starting the USB device. That way the mass storage device can start quickly and bee immediately ready for operating system requests.
2019-12-01 10:43:08 -05:00
Michael Keller
9425831756
Refactored 'WAS_EVER_ARMED' arming flag to be only enabled on f… (#9248)
Refactored 'WAS_EVER_ARMED' arming flag to be only enabled on first disarm.
2019-12-01 15:14:02 +13:00
Michael Keller
76d9cc3e38
Add support for FrSky OSD (#9127)
Add support for FrSky OSD
2019-12-01 13:22:41 +13:00
mikeller
c7b16d2f3d Fixed seat-of-pants OSD unit tests. 2019-12-01 13:09:18 +13:00
Bruce Luckcuck
b2a50819a3 Update RC smoothing "auto" settings to consider interpolated feedforward
Allows default settings for RC smoothing to work seamlessly regardless of the feedforward type selected ("classic" vs. interpolated).

Adds a new "AUTO" setting for the derivative filter type that will select based on whether interpolated feedforward is enabled (use PT1) or not (use BIQUAD). The derivative filter cutoff if set to auto (0) will also use a fixed cutoff calculated from a 100hz base if interpolated feedforward is enabled. Otherwise if classic FF is active then it will default to the previous method of calculating the cutoff based on the RX frame rate.
2019-11-30 19:06:44 -05:00
Michael Keller
568ab7a430
Add protocol level receiver frame rate measurement for Jeti ExB… (#9245)
Add protocol level receiver frame rate measurement for Jeti ExBus
2019-12-01 11:32:00 +13:00
Michael Keller
fc9ac9f5d4
Update Building in Windows.md (#9246)
Update Building in Windows.md
2019-12-01 11:31:25 +13:00
Alberto García Hierro
37e66b3dda Add support for FrSky OSD
- Add displayWriteFontCharacter() for font writing, removing all max7456
specific code.
- Add displayIsReady() for asynchronous display initialization
- Add displayBeginTransaction()/displayCommitTransaction() for display
transactions, which allow performing complex drawing operations without
flickering
- Add displayGetCanvas(), which retrieves the canvas associated with a
display (if it has it)
- Add canvas implementation for pixel based access for a display
- Add FrSkyOSD driver and displayPort driver
- Enable FrSkyOSD driver for targets with flash > 256
- Rename max7456_symbols.h to osd_symbols.h
2019-11-30 22:06:36 +00:00
Bruce Luckcuck
749dd6c6d7 Add optional search string support for CLI "help" command
Helps users locate CLI commands by searching both the command name and description.
2019-11-30 13:04:31 -05:00
Michael Keller
cb538ea2ed
Fixed use of 'abs()' for floats. (#9242)
Fixed use of 'abs()' for floats.
2019-12-01 00:02:23 +13:00
mikeller
93c708f57d Refactored 'WAS_EVER_ARMED' arming flag to be only enabled on first disarm. 2019-11-30 15:01:55 +13:00
Michael Keller
938f46ccd1
Add option to display the OSD logo on arming (#9244)
Add option to display the OSD logo on arming
2019-11-30 13:46:33 +13:00
mikeller
935a684765 Fixed use of 'abs()' for floats. 2019-11-30 10:33:12 +13:00
Michael Keller
9637aba9d0
Un-ignore 'address-of-packed-member' warning. (#9241)
Un-ignore 'address-of-packed-member' warning.
2019-11-30 10:30:51 +13:00