1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-14 20:10:18 +03:00
Commit graph

134 commits

Author SHA1 Message Date
Michael Keller
40fc353f9f
Fixed printing of reset DMA options in 'diff'. (#8303)
Fixed printing of reset DMA options in 'diff'.
2019-05-20 20:02:04 +12:00
Michael Keller
1c98fc58d6
Merge pull request #8302 from mikeller/fix_uint32_t_printing
Fixed setting / printing of VAR_UINT32 values.
2019-05-20 19:59:10 +12:00
Michael Keller
70215cc758
Really fixed flash erasing. (#8300)
Really fixed flash erasing.
2019-05-20 19:57:13 +12:00
mikeller
f169176022 Add timer info to CLI 'timer' command. 2019-05-20 01:10:29 +12:00
mikeller
d4cd3d8227 Added selection by alternate function to CLI 'timer'. 2019-05-20 00:54:06 +12:00
jflyper
f5084a59bd Partitions are now accessed by types rather than indices 2019-05-19 20:32:52 +09:00
mikeller
ab9b7ff366 Fixed printing of reset DMA options in 'diff'. 2019-05-19 18:55:29 +12:00
mikeller
8233e4d7a3 Fixed printing of VAR_UINT32 values. 2019-05-19 16:19:18 +12:00
mikeller
babad40dcb Really fixed flash erasing. 2019-05-19 12:30:37 +12:00
Dominic Clifton
92999681e3 Add flash partitioning system 2019-05-18 21:39:08 +09:00
Dominic Clifton
0e4cc5c3cf Add flash_scan to cli 2019-05-17 01:05:43 +09:00
Bruce Luckcuck
3cee0c99cc Use RC Smoothing initialized settings rather than current PG values
Prevents possibility of changing paramaters after initializing affecting runtime operation of RC smoothing. Parameter values are loaded during initialization instead of relying on the current PG values.
2019-05-16 09:37:26 -04:00
Michael Keller
31a059d4d5
[FLASHFS] Reinitialise flashFs after erasing flash chip. (#8237)
[FLASHFS] Reinitialise flashFs after erasing flash chip.
2019-05-11 23:41:10 +12:00
Michael Keller
a27a695fa1
Revise PID/Rate profile names to use get/set and eliminate extra PG's (#8231)
Revise PID/Rate profile names to use get/set and eliminate extra PG's
2019-05-10 09:30:55 +12:00
Dominic Clifton
e9b666421a Reinitialise flashFs after erasing flash chip.
Ensures erase actually worked rather than assuming it did.
2019-05-09 14:18:25 +09:00
Michael Keller
f085dad6bf
Fix MODE_STRING blank value output and improve validation messages (#8219)
Fix MODE_STRING blank value output and improve validation messages
2019-05-09 14:50:59 +12:00
Bruce Luckcuck
f5bc673ada Revise PID/Rate profile names to use get/set and eliminate extra PG's
Removes the custom CLI commands to update or display the PID and Rate profile names. Moves the storage into the pidProfile and controlRateProfile PG's.

Names can now be set with:
set profile_name = NAME
set rate_profile_name = NAME

Also added profile name display to the profile and rate CMS menus.
2019-05-08 09:03:31 -04:00
Bruce Luckcuck
f5722273aa Fix MODE_STRING blank value output and improve validation messages
Emptry MODE_STRING paramaters would produce CLI output that would then generate errors if reapplied using a `diff` or `dump`. Fixed the output for blank values to be compatible with setting an empty string (clearing a previous value).

Also improve the length validation to report the allowed character range.
2019-05-07 16:39:00 -04:00
Bruce Luckcuck
a1135dbbc4 Improve CLI diff output to only include non-empty sections
Eliminates the empty blocks for sections that have no changes from defaults.
2019-05-07 09:48:45 -04:00
Michael Keller
a8f6ea0b72
Add PID and Rate profile names, osd elements and cli config (#7696)
Add PID and Rate profile names, osd elements and cli config
2019-05-07 20:04:39 +12:00
Michael Keller
d3677b79aa
Remove CLI "display_name" and notify that "name" will be removed (#8190)
Remove CLI "display_name" and notify that "name" will be removed
2019-05-07 12:13:50 +12:00
Pieter Kruger
de5a54a19a Add PID and Rate Profile names 2019-05-06 22:02:33 +10:00
Bruce Luckcuck
884ad3193e Remove CLI "display_name" and notify that "name" will be removed
These parameters can now be configured directly with the set/get commands.

The "name" command will still function but presents a warning that it will be removed and to use "set name = " instead.
2019-05-06 07:01:06 -04:00
Dominic Clifton
8e5c1dd7a3 RTC6705 resource cleanup. 2019-05-06 01:23:43 +02:00
mikeller
c1ac8c4eb4 Fixed feedback when changing timer from 'NONE' in CLI. 2019-05-04 23:00:05 +12:00
root
ad43631a8b clean up some spaces before newlines 2019-05-02 23:24:36 +00:00
MJ666
1729255eca CC2500 resoure configuration fix 2019-04-28 14:17:47 +02:00
c3n
66f5c6e5db
Merge branch 'master' into master 2019-04-20 15:22:28 +02:00
Michael Keller
55a5d70cc8
Merge pull request #7841 from etracer65/dshot_bidir_quality_stats
Add DSHOT telemetry motor level packet stats
2019-04-17 06:38:45 +12:00
Bruce Luckcuck
644d5713df Add DSHOT telemetry motor level packet stats
Captures packet quality statistics per motor to provide a platform for troubleshooting and in-flight alarms or warnings.

Continuously monitors and captures packet stats over the past second to be used to determine DSHOT telemetry link quality.

Update the CLI to move the DSHOT telemetry data/stats out of the `status` command and into a dedicated `dshot_telemetry_info` command. Reformatted the motor data to include the invalid packet percentages. Will aid in debugging by identifying ESC's that may be misconfigured (not supplying data), or those with problems generating high invalid packet percentages.

Data can later be used to generate OSD and beeper-based warnings if invalid packet percentages exceed thresholds.

Included a blackbox logging debug mode (`set debug_mode = DSHOT_RPM_ERRORS`) to record the per-motor invalid packet percentages in hundredths of a percent (so 123 is 1.23%).
2019-04-16 08:47:50 -04:00
mikeller
9dbe140d28 Fixed CLI help for 'feature'. 2019-04-16 00:25:15 +12:00
blckmn
4cb1f6509c Adding ability to specify a string as an option in the SET / GET setup 2019-04-15 14:52:10 +10:00
Michael Keller
65603e49a2
Merge pull request #7621 from betaflight/bf-allow-compilation-with-no-serial-ports
Allow compilation of the printf code when no serial ports are used.
2019-04-14 21:31:31 +12:00
Bruce Luckcuck
2634d75528 Add missing help text for CLI vtx command 2019-04-07 09:27:57 -04:00
74aa50705b Merge remote-tracking branch 'upstream/master' 2019-04-02 16:38:32 +02:00
056535e498 changes to vtx cli command:
- add option for power
 - set band, channel or power to 0 to leave it unchanged
 - added short help text to cli
2019-04-02 16:37:29 +02:00
Bruce Luckcuck
4caa20bab2 Revise ESCSERIAL to work with unified targets
Remove dependencies on timer definition order and base on the pins assigned as motor resources.
2019-03-30 23:38:43 -04:00
mikeller
ec9dcde93d Fixed CLI 'timer' output. 2019-03-28 14:07:52 +13:00
mikeller
d5e7f90629 Added range checking. 2019-03-22 07:52:07 +13:00
mikeller
cf18d21ae6 Added command feedback. 2019-03-22 06:40:44 +13:00
mikeller
3974df6798 Added missing 'timer <pin>' command. 2019-03-22 06:40:44 +13:00
mikeller
eed54680d2 Moved things around to make them more consistent and capture all error states. 2019-03-11 13:32:15 +13:00
mikeller
2ce19e89a1 Added the 'bare' modifier to CLI 'diff' / 'dump' commands. 2019-03-11 13:32:15 +13:00
Michael Keller
b1a63a0253
Merge pull request #7747 from etracer65/fix_beacon_dump
Fix CLI beacon dump output
2019-03-11 13:25:17 +13:00
Bruce Luckcuck
607bb64855 Fix CLI beacon dump output
Previously the `beacon` portion of a `dump` would display the flags associated with `beeper` rather then only the limited set for `beacon`. This would result in output that would cause errors if copy/pasted back in as commands.
2019-03-09 15:27:16 -05:00
mikeller
afc8952ea3 Fixed 'diff'/'dump' for 'profile' and 'rates'. 2019-03-09 22:41:15 +13:00
Bruce Luckcuck
8c1e6fa017 Add CLI batch support for presenting warnings when pasting configs
Adds a new `batch` command used to delineate a group of commands as a related batch. The primary purpose is to group commands sent from the Configurator resulting from a copy/pasted config. Currently the output of the `diff all` command appends a `save` at the end of its output. So when a user pastes in their config to restore they may not see any errors because the `save` command causes the flight controller to reboot before they can review. When commands are wrapped inside of a batch, any errors will set a flag that will issue a warning when the `save` command is executed. This allows the user ro review and correct there configuration.
2019-03-07 11:10:38 -05:00
mikeller
fb5c468f92 Added default value processing for , . 2019-03-07 18:34:52 +13:00
mikeller
f7f3504671 Consolidate the CLI for resource management. 2019-03-07 04:05:07 +13:00
Michael Keller
747963a139
Merge pull request #7721 from mikeller/add_hardware_diff_dump
Added 'hardware' selector to CLI 'diff' / 'dump'.
2019-03-07 03:53:15 +13:00