1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-13 19:40:31 +03:00
Commit graph

180 commits

Author SHA1 Message Date
mikeller
38e1ce04df Reorganised interfaces, putting them where they are used. 2019-01-27 13:38:22 +13:00
SteveCEvans
faf33d1130 Use averageDeltaTime when calculating CPU load 2019-01-26 03:34:35 +00:00
Bruce Luckcuck
b68717a03b Add FEATURE_CUT_LEVEL to the cli version command output 2019-01-19 11:42:08 -05:00
Pieter Kruger
4ec536a317 Add LED profile feature - 4278 2019-01-19 20:23:03 +10:00
Thorsten Laux
33741dce75 Add option for scheduling policy targeting constant average task rates 2019-01-15 22:10:34 +13:00
Bruce Luckcuck
cb268c726b Allow "set" option on all channels for stage 1 failsafe (rxfail)
Previously the "set" option was only available for aux channels and roll/pitch/yaw/throttle only allowed "auto" (R/P/Y centered, throttle min) and "hold" (hold all channels at previous values). The problem with this is that many pilots wil set the throttle channel to "hold" to avoid a complete drop (and possible motor _stop if configured). This could lead to undesirable behavior if the throttle happened to be at a high value when the signal drop occurred.

With this change the user can set the control channels to a preset value as appropriate during a stage 1 failsafe. For example it may make sense to set the throttle channel to an approximate "hover" value appropriate for that quad to avoid gaining/losing altitude during the initial stage 1 portion of a failsafe.

No changes are made to stage 2 and the existing behavior of DROP, AUTO-LAND, or GPS-RESCUE (if configured) still apply.
2019-01-10 17:05:40 -05:00
Michael Keller
ec083dfa9e
Merge pull request #7339 from phobos-/frsky-x-lbt
Implemented FRSKY X EU LBT
2019-01-09 23:02:43 +13:00
phobos-
dfe1e8d3aa Implemented FRSKY X EU LBT 2019-01-07 13:15:49 +01:00
Michael Keller
00e0248988
Merge pull request #7264 from joelucid/dshot_telemetry
Dshot telemetry
2019-01-08 01:04:22 +13:00
Thorsten Laux
816da6cbf5 Dshot erpm telemetry on the signal line 2019-01-03 14:42:52 +01:00
jflyper
4b77b05730 Use DMA_CODE_CHANNEL instead of channel value 2019-01-01 23:47:10 +09:00
Michael Keller
be797d1027
Merge pull request #6837 from jflyper/bfdev-poc-dma-channel-spec
Introduce per peripheral dma channel spec option
2018-12-30 16:53:00 +13:00
jflyper
fe182bb2fb Introduce dma_reqmap 2018-12-30 09:40:37 +09:00
Michael Keller
78ab31f31f
Merge pull request #7255 from fgiudice98/master
Increased Vbat precision
2018-12-29 20:10:25 +13:00
fgiudice98
9d5fb85474 Increased vbat precision 2018-12-25 12:00:45 +01:00
Bruce Luckcuck
9be40351c5 Fix CLI allowed range display for VAR_UINT32 type 2018-12-24 11:30:49 -05:00
jflyper
cfaabac125
Merge pull request #7232 from mikeller/fix_print_resource
Fixed NULL dereference in 'printResource'.
2018-12-21 14:34:21 +09:00
Michael Keller
dcf5652773
Merge pull request #7242 from mikeller/fix_gyro_cs_pin_count
Fixed gyro CS pin count in CLI.
2018-12-20 01:41:28 +13:00
mikeller
cb1bb48587 Fixed gyro CS pin count in CLI. 2018-12-19 01:34:27 +13:00
Bruce Luckcuck
b8085b170e MSC on-board flash: Persist RTC across reboot and use as file timestamp
Adds support to persist the RTC (if set) across the reboot if entering mass storage mode for on-board flash. The value is then used as the timestamp for the files exposed in the virtual FAT32 filesystem. The files will then have reasonable creation dates when copied to the host computer.

If the RTC is not set (or supported), then the default timestamp of 2018-01-01 will be used (unchanged from previous).

Included some improvements to the RTC functions and exposed the `tz_offsetMinutes` in the `timeConfig` PG. Support already existed for timezone offsets but the parameter wasn't exposed to the user and couldn't be set.

Move timezone offset up a layer as a parameter to systemResetToMsc()
Adds support for specifying a custom timezone offset from both the CLI and MSP calls to enter mass storage mode.

Added an option timezone offset minutes to the CLI `msc` command. If no parameter is specified then the default as specified by `timezone_offset_minutes` will be used. So to reboot into mass storage mode and force the file timestamps to be in UTC, use `msc 0`.

Added reboot message `MSP_REBOOT_MSC_UTC` to support rebooting into mass storage mode and forcing the timestamps to use UTC time (0 offset). The Configurator will need to be modified to use this message for operating systems that expect UTC times for FAT file systems (like Linux).
2018-12-17 19:40:51 -05:00
mikeller
266a7085d9 Fixed casts. 2018-12-18 02:18:08 +13:00
mikeller
60950dd032 Fixed NULL dereference in 'printResource'. 2018-12-18 01:38:01 +13:00
phobos-
6651baa7d8 Implemented SPI SPEKTRUM protocol 2018-12-16 11:15:35 +01:00
jflyper
9ea1428d11 Introduce per device pin pre-init 2018-12-13 11:15:26 +09:00
Michael Keller
3736a2486d
Merge pull request #7116 from jflyper/bfdev-status-command-refactor
[CLI] Refactor status command to print things in more sensible order
2018-12-02 10:41:07 +13:00
jflyper
d4ac21cdc7 Refactor status command to print things in more sensible order 2018-12-01 22:21:58 +09:00
mikeller
c927a65024 Fixed define dependency of gyro device parameter group, gyro EXTI CLI support. 2018-11-27 22:20:04 +13:00
Michael Keller
02c7ac8c93
Merge pull request #7124 from mikeller/rename_use_flash
Renamed USE_FLASH to USE_FLASH_CHIP for clarity.
2018-11-26 21:51:27 +13:00
phobos-
c88a5a3a22 Refactored SPI RX led blink and bind plug functionality to rx_spi_common 2018-11-25 10:37:18 +01:00
mikeller
c8e484df94 Renamed USE_FLASH to USE_FLASH_CHIP for clarity. 2018-11-25 13:47:31 +13:00
jflyper
569f0bae62 Implement configurable system clock generation
PLL-HSE working

PLL-HSI working

Move SystemCoreClockUpdate in SystemInit to end

Switching from HSI-PLL to HSE-PLL (and back) is working

It works during various levels of overclocking.

Renamed CLI variable hse_mhz to system_hse_mhz

Restored the original position of the spectrum bind code

The internal logic of the spectrum bind code will prevent binding
process to fire if executed after soft reset.

Remove stale call to delay

Add a comment about call to spektrumBind placement

Declared SystemXXXSource functions, handled sign-ness warning.

Cleaned up commented out sections

USB clock generation for F446

Default HSE value for backward compatibility

Cleaned up more unused stuff

Handle non-F4 targets

Added comment about PLL_M selection

Removed fake gyro/acc from test target
2018-11-23 15:36:10 +13:00
Michael Keller
233a68c9c1
Merge pull request #6163 from RicoKirstein/pll_osd_clock
added the USEMCO2ASOSDCLOCK define for the F7 cpus.
2018-11-22 20:58:25 +13:00
Michael Keller
68eaf9e1aa
Merge pull request #7068 from mikeller/eliminate_adjustment_range_dependency
Removed issue with sparse 'defaultAdjustmentConfigs' in adjustment ranges.
2018-11-13 12:49:38 +13:00
mikeller
bc09e929b5 Removed issue with sparse 'defaultAdjustmentConfigs' in adjustment ranges. 2018-11-13 01:29:02 +13:00
Michael Keller
3259abfbc0
Merge pull request #7061 from pulquero/support_uint32_set_vars
Support for setting uint32 vars.
2018-11-12 01:10:55 +13:00
Mark Hale
0ace402ea3 Support for setting uint32 vars.
Signed-off-by: Mark Hale <mark.hale@physics.org>
2018-11-09 18:10:27 +00:00
Bruce Luckcuck
13a365dd35 Fix missing string terminator for CLI map command defaults output 2018-10-31 16:16:38 -04:00
mikeller
b10737a9fd Added option to reset serial passthrough on drop of DTR. 2018-10-29 22:16:44 +13:00
jflyper
9f47d130b9 Adds the MCO driver facility for F7 targets
MCO2 output as run time configurable option
Add sanity check for MCO2 pin
changed output mode to AF from OUTPUT in mco driver
MCO for F4 is not implemented yet
Reinstate original OMNIBUSF7 target.h
Add config variable mco2_on_pc9
Make MCO2 pin hardcoded with mco2_on_pin control variable
fixed mco2 clock config corruption
removed unused pin definitions
2018-10-26 19:51:19 +02:00
mikeller
a03f30efa0 Converted 'SKIP_' defines to 'USE_'. 2018-10-25 00:38:05 +13:00
jflyper
00dab4288f More strict application of USE_UART and USE_INVERTER 2018-10-08 15:06:42 +09:00
Michael Keller
cc820d99de
Merge pull request #6865 from chibaron/add_sfhss
Add SFHSS-SPI-RX
2018-10-08 01:01:13 +13:00
jflyper
57a6060005 Prevent sdcard_getMetadata from being called when card is not inserted or not ready 2018-10-05 03:41:53 +09:00
Michael Keller
29015af2e2
Merge pull request #6872 from AlienWiiBF/GYRO_GENERIC
Update Gyro driver for generic target
2018-10-03 23:44:01 +13:00
chibaron
f04f2f7cbb Fix unit test 2018-10-03 14:29:11 +09:00
MJ666
9e36354c45 Update Gyro driver for generic target 2018-10-03 00:26:55 +02:00
Chris
bc95da4259 Fixes SD_DET for SDIO 2018-10-02 21:56:16 +02:00
chibaron
9a452f4a1e Change SFHSS bind parameter rxSfhssSpiConfig to rxFrSkySpiConfig 2018-10-03 00:32:18 +09:00
chibaron
95d3200c92 fix coding style 2018-10-02 01:51:25 +09:00
chibaron
cb5fc4fd63 Add SFHSS-SPI-RX 2018-10-01 23:27:40 +09:00