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

15445 commits

Author SHA1 Message Date
LinJieqiang
31e951570f Add compass support for EXF722DUAL board. 2019-10-23 21:58:59 +08:00
jflyper
a183213ca3 Check TX buffer space before calling serialWrite
- Check TX buffer space before calling serialWrite (which
unconditionally manipulates buffer management variables).
- Added available TX buffer space as one of debug variables.
- Use blackboxWrite() instead of serialWrite in blackboxWriteString().
2019-10-23 11:14:59 +09:00
Michael Keller
040724bacd
Fix CLI task output header alignment (#9081)
Fix CLI task output header alignment
2019-10-23 13:20:49 +13:00
Michael Keller
b704e753b9
Cleanup unused accResetFlightDynamicsTrims() function (#9080)
Cleanup unused accResetFlightDynamicsTrims() function
2019-10-23 13:20:40 +13:00
Bruce Luckcuck
781412022f Fix ESC_SENSOR blackbox debug overflow for more than 4 motors
Would cause an array index overflow if more than 4 motors and debug_mode ESC_SENSOR_RPM or ESC_SENSOR_TMP were used.
2019-10-22 18:45:33 -04:00
Michael Keller
ca9005de66
Add MSP allowArmingWithoutFix (#9026)
Add MSP allowArmingWithoutFix
2019-10-22 11:44:58 +13:00
Michael Keller
b45fe41d8d
Update CreatingAUnifiedTarget.md to make process clearer, step… (#9076)
Update CreatingAUnifiedTarget.md to make process clearer, step by step
2019-10-22 11:43:15 +13:00
Michael Keller
2503bff3a1
Add ACC_CALIB arming disabled reason if ACC is required but not… (#9031)
Add ACC_CALIB arming disabled reason if ACC is required but not calibrated
2019-10-22 11:42:52 +13:00
Michael Keller
bb92da061e
Add debug code for blackbox output bandwidth measurement (#9060)
Add debug code for blackbox output bandwidth measurement
2019-10-22 11:28:46 +13:00
Michael Keller
e853636080
Cleaned up 'taskUpdateRxMain'. (#9073)
Cleaned up 'taskUpdateRxMain'.
2019-10-22 11:27:51 +13:00
Michael Keller
9e44cd3ca5
Renamed 'rxRuntimeConfig' to 'rxRuntimeState'. (#9072)
Renamed 'rxRuntimeConfig' to 'rxRuntimeState'.
2019-10-22 11:27:36 +13:00
Bruce Luckcuck
73a29e4ff6 Fix CLI task output header alignment 2019-10-21 12:16:42 -04:00
Bruce Luckcuck
ba73f4add1 Cleanup unused accResetFlightDynamicsTrims() function 2019-10-21 12:05:27 -04:00
Bruce Luckcuck
365c6cb1f6 Move calibrationCompleted flag to a 4th element in the accZero structure
Allows the flag indicating that calibration was completed to be output in the values for `acc_calibration`.
2019-10-21 11:49:11 -04:00
Bruce Luckcuck
565f1f4db5 Add ACC_CALIB arming disabled reason if ACC is required but not calibrated
Checks various features, modes, and OSD elements to determine if ACC is needed. Generates an arming disabled warning if ACC calibration has never been completed.
2019-10-21 11:13:55 -04:00
jflyper
0b392a9d6e Modify blackbox_unitest.cc for inclusion of debug.h 2019-10-21 23:10:53 +09:00
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
mikeller
0a0d3631a7 Renamed 'rxRuntimeConfig' to 'rxRuntimeState'. 2019-10-22 00:12:51 +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
kaweksl
861d38a83f combining buffer check 2019-10-21 13:08:11 +02: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
kaweksl
3b8d37e96d MSP Add allowArmingWithoutFix
fixed compatibility and comments
2019-10-21 12:14:29 +02: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
Reinhard
72153399dd
Update CreatingAUnifiedTarget.md 2019-10-21 09:31:43 +02: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
mikeller
14359ae6e6 Added facility to use GPIO pins for fast debugging. 2019-10-21 20:13:26 +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
jflyper
703b0bbca6 Enable DEBUG_BB_OUTPUT by default.
Slightly modified explanation about this option.
2019-10-20 21:57:17 +09:00
Reinhard
456ecfaf2e
Update CreatingAUnifiedTarget.md 2019-10-20 13:49:57 +02: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
6f124d0807 Cleaned up 'taskUpdateRxMain'. 2019-10-20 23:35:57 +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