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

14599 commits

Author SHA1 Message Date
Michael Keller
f7f0c67808
Changed define for hyphen from SYM_COLON to SYM_HYPHEN. (#8424)
Changed define for hyphen from SYM_COLON to SYM_HYPHEN.
2019-06-16 12:40:51 +12:00
mikeller
0ee3768c2f Changed define for hyphen from SYM_COLON to SYM_HYPHEN. 2019-06-15 19:57:52 +12:00
Michael Keller
de60402840
Add units symbol to the vario OSD element (#8419)
Add units symbol to the vario OSD element
2019-06-15 17:10:36 +12:00
Michael Keller
b5a6b543a9
Support 'EEPROM' in file on SD card. (#8379)
Support 'EEPROM' in file on SD card.
2019-06-14 09:28:57 +12:00
Dominic Clifton
58f43634bd Declare eepromData for all builds that require it, rather than having
the target.c define it.
2019-06-14 07:58:33 +12:00
Dominic Clifton
9c274240d8 Allow SDCARD to be used for config/eeprom storage.
* On boot SPI or SDIO is initialised.
* Filesystem is initialised (including creation of blackbox freespace
file)
* Empty config file is created if it doesn't exist, or read if it does.
* If config is invalid/empty then config file is written to, then read
back and verified.

Enable as follows.

target.h:

target.c:
uint8_t eepromData[EEPROM_SIZE];

Changes:
- Replace boolean init flags with single initFlags variables.
- Avoid unused variable warnings.
2019-06-14 07:58:33 +12:00
Michael Keller
576a1a2817
Update to OSD font documentation (#8414)
Update to OSD font documentation
2019-06-14 07:46:44 +12:00
root
91744f29ef Add SYM_HYPHEN to docs 2019-06-13 19:15:50 +00:00
Miguel Angel Mulero Martinez
06878b1265 Change arrows to small at the vario OSD element 2019-06-13 15:09:31 +02:00
Miguel Angel Mulero Martinez
ef74357faf Add units symbol to the vario OSD element 2019-06-13 15:09:30 +02:00
Michael Keller
ee564432f6
add left side choosable for passthrough (#8395)
add left side choosable for passthrough
2019-06-14 00:40:19 +12:00
Michael Keller
7b2bdf304e
Remove blank overwrite in the OSD (#8416)
Remove blank overwrite in the OSD
2019-06-14 00:31:29 +12:00
Michael Keller
7b7250a811
Refactor of OSD fonts (#8390)
Refactor of OSD fonts
2019-06-14 00:31:11 +12:00
Michael Keller
9872dcd529
Remove unused nav_mode and related from GPS code (#8413)
Remove unused nav_mode and related from GPS code
2019-06-13 23:40:07 +12:00
Michael Keller
996f4acf14
Support 'EEPROM' in external flash partition. (#8378)
Support 'EEPROM' in external flash partition.
2019-06-13 23:08:04 +12:00
azolyoung
568dc62087 use array to store the port1&port2 config 2019-06-13 16:17:11 +08:00
Dominic Clifton
45f8168b60 Prevent the system from booting when EEPROM_IN_FLASH is used and the
flash chip is not detected.

This will ensure that the flash config partition will always be present
when requested.
2019-06-13 09:16:29 +02:00
Dominic Clifton
720132b2af Improve robustness of reading config from flash. 2019-06-13 09:16:29 +02:00
Dominic Clifton
cf1ce1a67b Support load/save configuration to external flash
Fixes to 6a3e7d8e6 as the flash partition code had changed during
the merge to master.
2019-06-13 09:16:29 +02:00
Michael Keller
a6c07b046b
Allow the use of EEPROM_IN_RAM on MCUs. (#8376)
Allow the use of EEPROM_IN_RAM on MCUs.
2019-06-13 13:08:47 +12:00
Michael Keller
dfaa3ed43f
Fixed stray file with wrong CRLF. (#8418)
Fixed stray file with wrong CRLF.
2019-06-13 12:17:50 +12:00
mikeller
30608ca1b8 Fixed stray file with wrong CRLF. 2019-06-13 09:04:01 +12:00
root
af8d31c4ea more tweak to OSD font documentation 2019-06-12 16:01:02 +00:00
Michael Keller
7f767a30d8
Fix F1/F3 OPBL targets using wrong linker script. (#8402)
Fix F1/F3 OPBL targets using wrong linker script.
2019-06-13 00:17:40 +12:00
Miguel Angel Mulero Martinez
fdc6aab7a9 Remove remaining blank overwrite in OSD warnings 2019-06-12 14:07:57 +02:00
Dominic Clifton
cf5e75bed4 Improve the code gating for the EEPROM_IN_FLASH and EEPROM_IN_FILE
cases.
2019-06-12 13:47:49 +02:00
Michael Keller
b3b535724e
Fix Flash API timeout issues. (#8401)
Fix Flash API timeout issues.
2019-06-12 23:24:16 +12:00
Dominic Clifton
bc19915bc1 Remove TARGET_EEPROM_INIT/targetEEPROMInit.
Since the only target specific code was for SITL, and really it wasn't
target specific but EEPROM_IN_FILE specific the code is just gated by
the EEPROM_IN_FILE define.
2019-06-12 12:58:52 +02:00
Dominic Clifton
2c4b8eaec3 Cleanup defaults for alternative config storage.
* Provide defaults for EEPROM_SIZE.
* __config_start/end.
2019-06-12 12:47:51 +02:00
Dominic Clifton
e83ba0db0e Allow the use of EEPROM_IN_RAM on MCUs.
If the MCU also supports PERSISTENT ram (not erased on a warm boot) it
allows testing of config changes without wearing out your flash.

e.g.

linker script
-------------
comment out __config_start/__config_end

target.c
--------
PERSISTENT uint8_t eepromData[EEPROM_SIZE]; // persistent, so it
survives warm boots.

target.h
--------
extern uint8_t eepromData[EEPROM_SIZE];

SITL actually keeps the EEPROM in a FILE, loaded into RAM using
alternate FLASH_* implementation.
2019-06-12 12:47:51 +02:00
Dominic Clifton
b09012621b Update default flash bulk-erase timeout and improve developer
documentation regarding timeouts.
2019-06-12 12:22:07 +02:00
Michael Keller
300421e9ae
Set line endings for the .config files for unified targets (#8411)
Set line endings for the .config files for unified targets
2019-06-12 22:07:26 +12:00
Miguel Angel Mulero Martinez
f759ba75d7 Remove remaining blank overwrite in OSD elements 2019-06-12 08:48:29 +02:00
azolyoung
b7270917c8 add left side choosable for passthrough 2019-06-12 09:51:00 +08:00
Michael Keller
13389970c4
Some fixes for persistent stats. (#8408)
Some fixes for persistent stats.
2019-06-12 13:23:22 +12:00
Michael Keller
f8c8b002f0
Merge pull request #8407 from mikeller/update_adjrange_docs_for_slot_removal
Updated the adjustment range documentation for the removal of slots.
2019-06-12 13:23:04 +12:00
Michael Keller
d11a46c682
Fixed Unified Target Configuration for DYSF4PRO. (#8406)
Fixed Unified Target Configuration for DYSF4PRO.
2019-06-12 13:22:49 +12:00
Michael Keller
6b80fe83e1
Add missing CLI parm for ESC RPM Frequency OSD element (#8404)
Add missing CLI parm for ESC RPM Frequency OSD element
2019-06-12 13:21:56 +12:00
Michael Keller
0ea4a09850
Fix compile error if USE_ESC_SENSOR is not defined (#8403)
Fix compile error if USE_ESC_SENSOR is not defined
2019-06-12 13:18:31 +12:00
root
123c0a053f Update OSD font documentation 2019-06-11 20:15:44 +00:00
Bruce Luckcuck
9d2cda0b97 Remove unused nav_mode and related from GPS code
Eliminates some unused and unnecessary averaging calculations as well.
2019-06-11 13:35:40 -04:00
root
edd0685c2b Set line endings for the .config files for unified targets 2019-06-11 04:33:17 +00:00
jflyper
a6ae050f9b
Merge pull request #8400 from jflyper/bfdev-h7-add-timer-mgmt
[H7] Add USE_TIMER_MGMT
2019-06-11 09:21:42 +09:00
mikeller
1920a61226 Some fixes for persistent stats. 2019-06-11 02:05:19 +12:00
mikeller
960b2a1465 Updated the adjustment range documentation for the removal of slots. 2019-06-10 22:19:32 +12:00
Bruce Luckcuck
778df74729 Add missing CLI parm for ESC RPM Frequency OSD element 2019-06-09 18:42:24 -04:00
Bruce Luckcuck
a1d5df0530 Fix compile error if USE_ESC_SENSOR is not defined
Also correct dependencies to USE_DSHOT_TELEMETRY instead of USE_RPM_FILTER.
2019-06-09 18:16:09 -04:00
Dominic Clifton
6189d6bdc5 Fix Flash API timeout issues.
Flash operations can specify how long to wait before the next operation
is issued.

Prior to this the amount of time waited, and when, was wrong.

e.g.
m25p16_eraseCompletely - possibly waits ages TO START, starts, exit.
m25p16_pageProgramContinue - waits DEFAULT_TIMEOUT_MILLIS to START,
starts, exits.

m25p16_pageProgramContinue would fail to write to the flash as the
device was still busy erasing and didn't wait long enough.


what happens now is:
m25p16_eraseCompletely - waits using the current timeout, starts, sets
timeout to be `now + BULK_ERASE_TIMEOUT_MILLIS`, exits.
m25p16_pageProgramContinue - waits using the current
`BULK_ERASE_TIMEOUT_MILLIS`, starts, exists, sets timeout to be `now +
DEFAULT_TIMEOUT_MILLIS`.

Since the timeout is stored in the flashDevice_t the solution also works
for multi-die devices which use an instance of flashDevice_t for each
die.
2019-06-09 20:31:24 +02:00
Dominic Clifton
e81d11049f Fix F1/F3 OPBL targets using wrong linker script. 2019-06-09 19:04:39 +02:00
jflyper
22d046c879 [H7] Add USE_TIMER_MGMT to H7 2019-06-10 00:00:16 +09:00