1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 11:29:58 +03:00
Commit graph

368 commits

Author SHA1 Message Date
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
mikeller
489156602f Fixed unnecessarily long startup time due to gyro detection. 2020-04-07 22:20:04 +12:00
mikeller
7b845150af Parse and print custom defaults header data in CLI. 2020-04-02 01:51:33 +13:00
mikeller
d1ac12eccd Added 'disabled' motor protocol and made it the default. 2020-04-01 20:33:29 +13: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
mikeller
5eb890cb66 Improved styling of error messages in CLI. 2020-03-24 02:36:07 +13:00
mikeller
d2605975a1 Improved CLI error messages. 2020-03-23 15:18:51 +13:00
mikeller
db4bd1f186 Cleaned up the scheduler. 2020-03-16 08:35:58 +13:00
Bruce Luckcuck
ad0e7154a7 Split initialization from gyro.c for flash savings
Move low performance requirements initialization code into gyro_init.c and optimize that for size.
2020-03-13 10:08:11 -04:00
mikeller
d13e83b91b Cleaned up the RX handler some. 2020-03-10 00:55:52 +13:00
TheIsotopes
b895e91552
fixes wrong comparison operators
fixes #9553 made in #9546
2020-03-07 09:37:18 +01:00
Michael Keller
c002d04356
Merge pull request #9546 from etracer65/fix_cli_led_validation
Fix CLI LED command validation
2020-03-07 15:58:39 +13:00
Bruce Luckcuck
04836e4e93 Fix CLI LED command validation 2020-03-05 17:16:02 -05:00
mikeller
5f733da444 Show errors when resetting to custom defaults. 2020-03-02 00:24:28 +13:00
Mathias Rasmussen
ef488b0a84 CLI: Print range info for strings 2020-02-20 02:30:40 +01:00
jflyper
ff16686893 White space tidy 2020-02-17 23:54:57 +13:00
Michael Keller
82ed38a5dc
Merge pull request #9484 from mikeller/remove_legacy_timer_index
Removed legacy timer index notation from CLI.
2020-02-17 08:11:03 +13:00
mikeller
e785d6eaae Removed legacy timer index notation from CLI. 2020-02-15 14:56:28 +13:00
mikeller
214d378e82 Detect revisions of the STM32H743. 2020-02-15 12:35:57 +13:00
mikeller
39b62cb6c1 Added command to bind RX to MSP. 2020-02-06 13:36:27 +13:00
Bruce Luckcuck
f584780944 Gyro native rate sampling, filtering, and scheduler restructuring 2020-02-04 18:19:35 -05:00
Bruce Luckcuck
c2770087c3 Fix compile errors if USE_VTX_TABLE is not defined 2020-01-27 09:07:20 -05:00
Michael Keller
e5046e4089
Merge pull request #9402 from etracer65/tasks_checkfn_max_reset
Fix tasks check function max time not being reset along with other stats
2020-01-24 12:53:44 +13:00
Bruce Luckcuck
1b5f553d2e Fix tasks check function max time not being reset along with other stats
Each time the `tasks` CLI command is executed the task stats are reset to allow the max and average stats to represent the data since the last `tasks` command. However the task check function stats were not being reset so the "max" would represent the maximum value since boot.
2020-01-21 15:09:20 -05:00
jflyper
a58f55c840 [G4] DMA support 2020-01-21 11:47:33 +09:00
Michael Keller
099e0a6064 Added OSD status to CLI 'status' output. 2020-01-15 23:32:38 +13:00
Bruce Luckcuck
b471577a14 Fix "may be uninitialized" debug build warnings 2019-12-23 12:44:00 -05:00
Michael Keller
f3036221ea
Fix CLI rc_smoothing_info frame rate display formatting (#9289)
Fix CLI rc_smoothing_info frame rate display formatting
2019-12-22 14:34:51 +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
Bruce Luckcuck
564ebfc48d Fix CLI rc_smoothing_info frame rate display formatting
The formatting of the fractional part of the frame interval was not correct. For example 9004us would be displayed as 9.4ms instead of 9.004ms.
2019-12-14 16:33:53 -05:00
mikeller
3142d5ad70 Cleaned up CLI 'resource' implementation. 2019-12-09 01:26:57 +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
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
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
mikeller
99f77fa88d Moved configuration validation into 'config.c'. 2019-11-24 21:19:26 +13:00
markhermelinggt
8c47e3334b
Copy-paste error on line 2829 in cli.c
Found through static analysis (GrammaTech CodeSonar).

I am quite convinced that the VTX_TABLE_MAX_BANDS on line 2829 should be VTX_TABLE_MAX_CHANNELS.

Possible the same replacement should be done on Line 2834, but I am not 100%.
2019-11-19 09:46:09 -05:00
Michael Keller
e34ba7f534
vtxtable powerlevels with no parameters returns the vtxtable po… (#9122)
vtxtable powerlevels with no parameters returns the vtxtable power levels extract with SA2.1
2019-11-05 22:04:22 +13:00
SteveCEvans
938a39ac8f Display available dBm power levels from SA2.1 VTX along with corresponding power expressed in mW 2019-11-02 01:25:55 +00:00
mikeller
4a7904695e Moved 'config.[ch]' into the 'config/' directory. 2019-10-28 11:17:25 +13:00
Michael Keller
040724bacd
Fix CLI task output header alignment (#9081)
Fix CLI task output header alignment
2019-10-23 13:20:49 +13:00
Michael Keller
9e44cd3ca5
Renamed 'rxRuntimeConfig' to 'rxRuntimeState'. (#9072)
Renamed 'rxRuntimeConfig' to 'rxRuntimeState'.
2019-10-22 11:27:36 +13:00
Bruce Luckcuck
73a29e4ff6 Fix CLI task output header alignment 2019-10-21 12:16:42 -04:00
Michael Keller
2888bdd2b8
Revise feature logic to separate runtime and config settings (#9029)
Revise feature logic to separate runtime and config settings
2019-10-22 01:11:02 +13:00
mikeller
0a0d3631a7 Renamed 'rxRuntimeConfig' to 'rxRuntimeState'. 2019-10-22 00:12:51 +13:00
Bruce Luckcuck
e64703308b Revise feature logic to separate runtime and config settings
Isolates and prevents changes to runtime active features. Any changes to enabled features are deferred until after a save/reboot. Simplifies the previous logic.

Prevents potential failures when features are changed at runtime but the underlying code is not capabile of dynamic reconfiguration.
2019-10-21 20:25:03 +13:00