1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 00:35:39 +03:00
Commit graph

69 commits

Author SHA1 Message Date
jflyper
b749d56d9e Ammend BMP085 driver for configurability of EOC and XCLR pin 2019-05-20 19:13:50 +02:00
Michael Keller
4b5948cbd3
Prevent 'system_hse_mhz' from showing in non-F4 'diff'/'dump'. (#8256)
Prevent 'system_hse_mhz' from showing in non-F4 'diff'/'dump'.
2019-05-18 23:33:28 +12:00
Michael Keller
f6e1dc892c
Add W25N01G 1Gb NAND flash support (#8263)
Add W25N01G 1Gb NAND flash support
2019-05-16 13:28:17 +12:00
jflyper
ee9022de1e Add Winbond W25N01G support 2019-05-14 22:42:47 +09:00
Dominic Clifton
64bbe6fa12 Disable MSC if BLACKBOX is disabled 2019-05-12 21:53:53 +09:00
mikeller
411467d9ef Prevent 'system_hse_mhz' from showing in non-F4 'diff'/'dump'. 2019-05-12 23:19:35 +12:00
laz2wiringpi
653618d0f6 USE_CRSF_LINK_STATISTICS Split from pr 8042 2019-05-04 22:08:14 -04:00
mikeller
33a956d123 Fixed USE_VARIO conditional.Also fixed some indentation. 2019-05-01 00:41:04 +12: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
laz2wiringpi
22485e3e6e GPS Rescue cms menu 2019-04-15 10:33:38 -04: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
f0b0537246 Added missing features to unified targets, centralised feature configuration. 2019-03-04 22:17:55 +13:00
mikeller
86a5a30267 Made CC2500 (FrSky, SFHSS) SPI RX runtime configurable. 2019-03-02 23:15:32 +13:00
mikeller
f8103b8c86 Added DMA mapping (readonly for now), and enabled timer management for all F4 boards.
Converting the universal target as well.

Simplified timer management some.

Added F722 support for good measuer.

Fixed SITL, tests.

Cleanup after rebase.

Added support for all timer consumers and F7.

Fixed 'USE_DMA_SPEC' for F3, some cleanups.
2019-02-28 00:25:43 +13:00
Michael Keller
40d6c44220
Merge pull request #7641 from etracer65/use_beeper_compile_warnings
Fix compile warnings when USE_BEEPER is not defined
2019-02-24 12:34:06 +13:00
Michael Keller
f2bbbdb8ca
Merge pull request #7636 from etracer65/use_esc_sensor_dependencies
Fix compilation errors if USE_ESC_SENSOR is not defined
2019-02-23 13:44:41 +13:00
Bruce Luckcuck
09b5adece4 Fix compile warnings when USE_BEEPER is not defined
If USE_BEEPER is undefined but the BEEPER_PIN or BEEPER_PWM_HZ are defined then there was a compile warning becasue they get redefined in beeper.c.
2019-02-22 16:54:41 -05:00
Bruce Luckcuck
a998b89a2a Fix compilation errors if USE_ESC_SENSOR is not defined 2019-02-21 09:54:55 -05:00
mikeller
735d48f2f5 Renamed 'GENERIC_TARGET' to 'USE_UNIFIED_TARGET'. 2019-02-22 01:44:49 +13:00
AJ Christensen
4fdee6ec1c Gyro Sensors: Remove 32kHz gyro sampling mode(s) and associated code 2019-02-13 22:41:21 +13:00
mikeller
858c55af74 Fixed USB MSC activation over MSP. Also fixed fallthrough in case of invalid reboot type. 2019-02-10 14:59:13 +13:00
mikeller
b5908f5bab Applied 'USE_ACC' consistently. 2019-02-08 09:51:48 +13:00
Michael Keller
3672bead17
Merge pull request #7542 from mikeller/add_mcu_type_msp
Added the MCU type to MSP.
2019-02-07 23:55:21 +13:00
mikeller
b93b345830 Added the MCU type to MSP. 2019-02-07 00:16:13 +13:00
mikeller
37d0d402c8 Added single colour mode to WS2811 driver for RAM savings. 2019-02-06 12:04:34 +13:00
mikeller
f7134580f8 Fixed missing conditional, incremented parameter group version, added
config reset.
2019-02-01 07:53:09 +13:00
Michael Keller
628fdb8adc
Merge pull request #7409 from mikeller/fix_4way_conditionals
Fixed conditionals for 4 way ESC boot loader.
2019-01-19 23:28:58 +13:00
Michael Keller
dfb438cc5b
Merge pull request #7303 from pkruger/4278-LED-profiles-switchable-via-OSD
Add LED strip profile feature
2019-01-19 23:18:41 +13:00
Pieter Kruger
4ec536a317 Add LED profile feature - 4278 2019-01-19 20:23:03 +10:00
mikeller
71216cd878 Fixed conditionals for 4 way ESC boot loader. 2019-01-19 10:56:16 +13:00
Bruce Luckcuck
4da9b75c8f Fix compilation errors if USE_BLACKBOX is not defined 2019-01-15 10:08:15 -05:00
Thorsten Laux
7859e6d540 Add dshot command queue and limit max notch filter frequency 2019-01-12 12:25:30 +01:00
Bruce Luckcuck
330d93eb5b Add CMS failsafe setup menu
Located under the Features top-level menu. Allows configuring the failsafe procedure (like selecting GPS-RESCUE if applicable).

Bounded with `#ifdef USE_CMS_FAILSAFE_MENU` so it can be disabled for space critical targets.
2019-01-10 15:22:36 -05:00
Thorsten Laux
8d4ed72e13 rpm telemetry based notch filter 2019-01-07 13:36:01 +01:00
mikeller
e4383b5a36 Simplified conditionals for using gyro data analysis. 2018-12-30 01:31:06 +13:00
jflyper
b950237962 Drop SimonK boot loader for from serial_4way for F3 2018-12-24 21:27:32 +09:00
mikeller
df8c25e9f6 Do not disable the vario feature if GPS is enabled. 2018-12-22 13:16:41 +13:00
Michael Keller
bb1e00c5b7
Merge pull request #7240 from mikeller/fix_stm32f3discovery_gyro
Update L3GD20 gyro to modern gyro API.
2018-12-20 01:40:52 +13:00
jflyper
feab0bcb81 Speed up the first boot on generic firmware 2018-12-19 16:56:31 +13:00
mikeller
fdd5869054 Update L3GD20 gyro to modern gyro API. 2018-12-19 01:25:39 +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
Michael Keller
6ad2575716
Merge pull request #7190 from jflyper/bfdev-per-device-preinit
[SPI] Introduce per device pin pre-init
2018-12-14 20:32:19 +13:00
jflyper
9ea1428d11 Introduce per device pin pre-init 2018-12-13 11:15:26 +09:00
Pieter Kruger
ef459cb161 Add OSD Stick Overlay feature - fix issue 3988 2018-12-09 21:42:45 +10:00
Pieter Kruger
8d981df1a9 Add OSD Profile feature - issue 4155 2018-12-01 17:51:38 +10: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