Commit Graph

15167 Commits

Author SHA1 Message Date
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
Michael Keller 58e3f90567
Remove rc is duplicate frame (#9075)
Remove rc is duplicate frame
2019-10-22 00:15:45 +13:00
Michael Keller 3e0943bf0c
Cleaned up W25N01G code. (#9074)
Cleaned up W25N01G code.
2019-10-22 00:15:34 +13:00
Michael Keller a48d1239fd
Made 'cliProcessCustomDefaults' static. (#9071)
Made 'cliProcessCustomDefaults' static.
2019-10-22 00:09:18 +13:00
Michael Keller cd8c2c8edc
Renamed 'fcTasksInit' to 'tasksInit'. (#9070)
Renamed 'fcTasksInit' to 'tasksInit'.
2019-10-22 00:09:08 +13:00
Michael Keller e37f82bb34
Add OSD distance from home alarm (#8862)
Add OSD distance from home alarm
2019-10-22 00:07:42 +13:00
Michael Keller 776c4f7388
Use `DMA_OPT_UNUSED` in `common_defaults_post.h`. (#8799)
Use `DMA_OPT_UNUSED` in `common_defaults_post.h`.
2019-10-22 00:07:03 +13:00
Michael Keller 46bfda2038
Fix F3 DMA request mapping when using `USE_DMA_SPEC`. (#8774)
Fix F3 DMA request mapping when using `USE_DMA_SPEC`.
2019-10-22 00:06:52 +13:00
Michael Keller bd135fff74
Added documentation for limitation on EXF722DUAL. (#9067)
Added documentation for limitation on EXF722DUAL.
2019-10-21 20:38:25 +13:00
Michael Keller 55984bd3ce
Replace individual CMS vtx menus with a single entry that redir… (#9066)
Replace individual CMS vtx menus with a single entry that redirects to the correct protocol menu
2019-10-21 20:37:57 +13:00
Michael Keller cd0ad28a44
Stamp out use of box 39 for pinio, use 40 USER1 instead (#9062)
Stamp out use of box 39 for pinio, use 40 USER1 instead
2019-10-21 20:35:25 +13:00
Michael Keller cee2d43d84
Added flash tools support to Unified Targets. (#9064)
Added flash tools support to Unified Targets.
2019-10-21 20:33:52 +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
Bruce Luckcuck a021cc7c14 Add OSD distance from home alarm
Adds `osd_distance_alarm` (defaulting to 0 for OFF) which behaves similarly to `osd_alt_alarm`. Causes the OSD distance to home element to blink if the alarm setting is exceeded.

Also added to the CMS menu for consistency with the altitude alarm.
2019-10-21 20:17:12 +13:00
Dominic Clifton 5fbb0674c5 Fix missing ADC4 dma mapping for F3.
Fix incorrect count of dma options for F3.

Value was hardcoded to 3, but the F3 has 4 ADCs.

Fix dmaPeripheralMapping for F3.

The dmaPeripheralMapping table was using index numbers and not device
numbers.

This meant all the dma mappings were out by one, eg.

```

```

ADC 1 is on DMA1, channel 1, but the output from dma ADC 2 list shows
the possibilities for ADC 1, not ADC 2 and shows no possibilities for
dma ADC 1 list

Ensure there are defaults for ADC4 on F3.

Always use 4 ADC instances for the ADC PG.

* PG should not be target dependant.
* Add a static assert which will fail if anything is changed.

Fix dmaopt in ADC PG, it should be a int8_t, not uint8_t

Fix occurrences of -1 that should be `DMA_OPT_UNUSED`.

Fixing this meant that dma_reqmap.h needed to be included in a few
places.  When this was done there were errors because dma_reqmap.h was
included more than once and it's `#pragma once` was commented out.

Including dma_reqmap.h from every PG that uses `dmaopt` also caused
other compilation issues, fixed by this commit.
2019-10-21 20:10:50 +13:00
Dominic Clifton 13095343e7 Fix missing ADC4 dma mapping for F3.
Fix incorrect count of dma options for F3.

Value was hardcoded to 3, but the F3 has 4 ADCs.

Fix dmaPeripheralMapping for F3.

The dmaPeripheralMapping table was using index numbers and not device
numbers.

This meant all the dma mappings were out by one, eg.

```

```

ADC 1 is on DMA1, channel 1, but the output from dma ADC 2 list shows
the possibilities for ADC 1, not ADC 2 and shows no possibilities for
dma ADC 1 list

Ensure there are defaults for ADC4 on F3.

Always use 4 ADC instances for the ADC PG.

* PG should not be target dependant.
* Add a static assert which will fail if anything is changed.

Fix dmaopt in ADC PG, it should be a int8_t, not uint8_t
2019-10-21 20:07:43 +13:00
Michael Keller 692bf9c56e
Add deprecated checking for CAMERA_CONTROL_PIN (#8981)
Add deprecated checking for CAMERA_CONTROL_PIN
2019-10-21 17:04:09 +13:00
jflyper 8776e5ab17 Add deprecated checking for CAMERA_CONTROL_PIN
Handle targets that currently define CAMERA_CONTROL_PIN

- Targets with a valid timer entry for the pin: Def is just deleted.

- Targets without a valid timer entry for the pin: Def is commented out and additional comment is added. The camera control function must have not being working for a long timer for the target anyway.
2019-10-20 22:04:11 +09:00
mikeller 0e74e3698e Removed unused 'rcIsDuplicateFrame()'. 2019-10-20 23:50:55 +13:00
mikeller a7e48eadd4 Cleaned up W25N01G code. 2019-10-20 23:45:17 +13:00
mikeller 43feeb8196 Made 'cliProcessCustomDefaults' static. 2019-10-20 23:23:16 +13:00
mikeller 0565d1df1a Renamed 'fcTasksInit' to 'tasksInit'. 2019-10-20 23:18:17 +13:00
Michael Keller 564f3031b2
Add NUCLEOF303RE target (#8938)
Add NUCLEOF303RE target
2019-10-20 22:50:18 +13:00
Michael Keller 9f5bbf6e5c
DSHOT telemetry optimizations (#8772)
DSHOT telemetry optimizations
2019-10-20 22:39:32 +13:00
Michael Keller 1f85928ea3
F3 - Fix type conversion warning in ADC code. (#8764)
F3 - Fix type conversion warning in ADC code.
2019-10-20 22:36:31 +13:00
Michael Keller feff516c90
Update target flywoof411 config (#9051)
Update target flywoof411 config
2019-10-20 15:14:25 +13:00
mikeller 86544ea180 Added documentation for limitation on EXF722DUAL. 2019-10-20 14:46:10 +13:00
Kyle K ead84908f4 Stamp out use of box 39 for pinio, use 40 USER1 instead
Effects legacy targets: CLRACINGF4 CLRACINGF7
2019-10-20 00:24:37 +00:00
Bruce Luckcuck 5c98726318 Replace individual CMS vtx menus with a single entry that redirects to the correct protocol menu
Instead of having individual menus for RTC6705, SmartAudio, and Tramp, Now there is a single VTX menu that detects the type of active device and redirects to the appropriate protocol menu.

Reduces confusion and chances of erroneously using the wrong VTX menu.

Fixes a problem where the Tramp menu could be used to change band/channel/power even though the VTX was a SmartAudio device.

If the VTX is not configured or not communicating, a more informative message will be presented rather than a partially populated protocol menu. For example:
```
  VTX NOT RESPONDING
  OR NOT CONFIGURED

> BACK
```

Extends the CMS menu capabilities by adding an optional `redirectCheck` function that can conditionally return a menu that should be redirected to instead of the current menu. This redirect happens before any processing happens for the original menu. Adds flexibility to make the CMS menus have a more dynamic aspect.
2019-10-19 20:17:43 -04:00
Michael Keller 90163f4c4a
Update W25N01G driver to work with floating /WP pin in SPI mode (#9056)
Update W25N01G driver to work with floating /WP pin in SPI mode
2019-10-20 13:04:59 +13:00
Michael Keller cb9481b137
MSP DisplayPort support improvement (#9013)
MSP DisplayPort support improvement
2019-10-20 12:43:03 +13:00
Michael Keller b169d36014
Merge pull request #9053 from AlienWiiBF/Flash_Test
Add W25N01G driver to AlienFlightNG F7 target
2019-10-20 12:03:06 +13:00
mikeller cc8aaffb22 Added flash tools support to Unified Targets. 2019-10-20 12:01:00 +13:00
Michael Keller 648c48ffbb
Removed pins not available in LPQFP-100 or 144 packages. (#8921)
Removed pins not available in LPQFP-100 or 144 packages.
2019-10-20 11:34:25 +13:00
MJ666 8cc5fb951c Update W25N01G driver to work with floating /WP pin in SPI mode 2019-10-19 18:42:46 +02:00
MJ666 05bd6358df Add W25N01G driver to AlienFlightNG F7 target 2019-10-18 21:28:24 +02:00
jflyper f9ac769af6 Enable USE_OSD_OVER_MSP_DISPLAYPORT for large flash targets 2019-10-18 14:56:21 +09:00
jflyper 6a8dfa75c2 Restrict MSP DisplayPort output to the MSP port that is marked 2019-10-18 14:56:21 +09:00
jflyper 8494d6e634 Add OSD displayPort device configurability 2019-10-18 14:56:19 +09:00
jflyper e821fec341 Detect MAX/AT7456 chip existence 2019-10-18 14:54:40 +09:00
Michael Keller 1c8d41b952
Clarified the name of the 'clear to send' function in SmartPort. (#9011)
Clarified the name of the 'clear to send' function in SmartPort.
2019-10-18 08:26:06 +13:00
jflyper cb1bdfe204 Add Nucleo-F303RE support 2019-10-18 00:19:52 +09:00
Michael Keller 429f684378
add gps_ublox_use_galileo and gps_set_home_point_once to MSP (#9027)
add gps_ublox_use_galileo and gps_set_home_point_once to MSP
2019-10-18 03:40:02 +13:00
Michael Keller 20306a6440
Fix W25M (stacked die SPI flash) support (#9021)
Fix W25M (stacked die SPI flash) support
2019-10-18 03:39:28 +13:00
mikeller 0ff58a84da Clarified the name of the 'clear to send' function in SmartPort. 2019-10-18 03:36:14 +13:00
Michael Keller dd949472f9
Fix flash filesystem mass storage support for > 128MB flash (#9007)
Fix flash filesystem mass storage support for > 128MB flash
2019-10-18 03:33:24 +13:00
Michael Keller d5c858e5b1
UART DMA code refactor (#8980)
UART DMA code refactor
2019-10-18 03:32:56 +13:00
Michael Keller 50ed636e8d
Add ascend and descend rate to MSP (#8977)
Add ascend and descend rate to MSP
2019-10-18 03:32:44 +13:00
Michael Keller 5824bd4d93
Removed unused feature 'SOFTSPI'. (#8931)
Removed unused feature 'SOFTSPI'.
2019-10-18 03:32:07 +13:00
Michael Keller a404674e7e
Add NUCLEOF103RG target (#8929)
Add NUCLEOF103RG target
2019-10-18 03:31:53 +13:00