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

14136 commits

Author SHA1 Message Date
Michael Keller
a27a695fa1
Revise PID/Rate profile names to use get/set and eliminate extra PG's (#8231)
Revise PID/Rate profile names to use get/set and eliminate extra PG's
2019-05-10 09:30:55 +12:00
Michael Keller
4671159679
Add note in stack_check that refers developers to the linker scripts (#8228)
Add note in stack_check that refers developers to the linker scripts
2019-05-10 09:29:35 +12:00
Michael Keller
cbe83e4865
[H7] Enable EXTI (#8192)
[H7] Enable EXTI
2019-05-10 09:26:29 +12:00
Michael Keller
cfcd528a87
[F7] Move non-library CDC-HID code out of lib tree (#8225)
[F7] Move non-library CDC-HID code out of lib tree
2019-05-09 14:54:12 +12:00
Michael Keller
a4ac70bd95
Fix pageMaxRow use before update (#8222)
Fix pageMaxRow use before update
2019-05-09 14:53:15 +12:00
Michael Keller
a4aa237aff
[H7] STM32H750 - Fix CPU crash on cold boot when VCP is enabled. (#8221)
[H7] STM32H750 - Fix CPU crash on cold boot when VCP is enabled.
2019-05-09 14:52:59 +12:00
Michael Keller
922f92701b
[NUCLEOF722] Comment out unneeded def for CS pin (#8220)
[NUCLEOF722] Comment out unneeded def for CS pin
2019-05-09 14:51:27 +12:00
Michael Keller
f085dad6bf
Fix MODE_STRING blank value output and improve validation messages (#8219)
Fix MODE_STRING blank value output and improve validation messages
2019-05-09 14:50:59 +12:00
Michael Keller
bb560ebdb8
Extend the scope of BOXPARALYZE to cover stick commands, adjustments, and CMS. (#8161)
Extend the scope of BOXPARALYZE to cover stick commands, adjustments, and CMS.
2019-05-09 14:50:30 +12:00
Michael Keller
ee011eebb8
[H7] Enable timer (#8201)
[H7] Enable timer
2019-05-09 11:36:53 +12:00
Michael Keller
4eec3c452a
Merge pull request #8198 from jflyper/bfdev-h7-uart
[H7] Enable UART
2019-05-09 11:36:16 +12:00
Michael Keller
13b9747eb3
[H7] Enable DMA facility (#8200)
[H7] Enable DMA facility
2019-05-09 11:36:04 +12:00
jflyper
a1ee8b7aa4 [H7] Enable EXTI 2019-05-09 00:15:40 +09:00
Michael Keller
bc2f5faddb
[H7] Enable motor (#8218)
[H7] Enable motor
2019-05-09 01:05:49 +12:00
Michael Keller
d3c1ba11ba
[H7] Enable ADC (#8217)
[H7] Enable ADC
2019-05-09 01:04:08 +12:00
Bruce Luckcuck
f5bc673ada Revise PID/Rate profile names to use get/set and eliminate extra PG's
Removes the custom CLI commands to update or display the PID and Rate profile names. Moves the storage into the pidProfile and controlRateProfile PG's.

Names can now be set with:
set profile_name = NAME
set rate_profile_name = NAME

Also added profile name display to the profile and rate CMS menus.
2019-05-08 09:03:31 -04:00
Michael Keller
3db18e7db7
[H7] Temporary addition of STM32H7 in dma_reqmap.h (#8216)
[H7] Temporary addition of STM32H7 in dma_reqmap.h
2019-05-09 01:02:29 +12:00
Michael Keller
7830c7445e
avoid double esc startup sounds on f7 (#8215)
avoid double esc startup sounds on f7
2019-05-09 01:01:56 +12:00
Michael Keller
a109aab7ab
Added DJI_HDL to the RX protocol list for CLI. (#8213)
Added DJI_HDL to the RX protocol list for CLI.
2019-05-09 01:01:28 +12:00
Michael Keller
5fdad3e27d
Add omnibusf7nanov7 (#8210)
Add omnibusf7nanov7
2019-05-09 00:59:55 +12:00
Michael Keller
95074700b9
Remove FURYF7 Target (#8205)
Remove FURYF7 Target
2019-05-09 00:53:43 +12:00
Michael Keller
8390bfacd8
Merge pull request #8204 from jflyper/bfdev-h7-transponder
[H7] Enable transponder
2019-05-09 00:53:07 +12:00
Michael Keller
9194ee58d7
[H7] Enable LED_STRIP (#8203)
[H7] Enable LED_STRIP
2019-05-09 00:52:48 +12:00
Michael Keller
3cd046680c
[H7] Enable I2C (HAL) (#8193)
[H7] Enable I2C (HAL)
2019-05-09 00:48:33 +12:00
jflyper
1b49b33e00 [H7] Enable ADC
- Initial cut without internal sensors

- Full DMA including internal sensors spanning multiple ADC peripherals

- Skip ADC initialisation when ADC instance is unused to avoid crash.

- Add volatile & DMA_RAM attribute to ADC DMA buffer

- Revised DMA coherency handling

- adcGetChannelValues - added comment and moved def to adc_impl.h

- Changes per PR comment (indentation fix)
2019-05-08 21:07:29 +09:00
Michael Keller
67d1f720ff
Improve CLI diff output to only include non-empty sections (#8211)
Improve CLI diff output to only include non-empty sections
2019-05-08 23:36:19 +12:00
Dominic Clifton
3c978240cf Add note in stack_check that refers developers to the linker scripts when looking for stack memory locations. 2019-05-08 13:16:18 +09:00
jflyper
e62cc6552d [F7] Move non-library CDC-HID code out of lib tree 2019-05-08 11:59:23 +09:00
Timothy Werquin
711424f63b
Fix pageMaxRow use before update
After commit d2e7abd the for loop following my change use pageMaxRow to determine which flags to clear.
But this pageMaxRow value is updated after the loop, which caused a crash in a very specific circumstance:

1 open the CMS OSD menu and go to profile

2 close the profile by yaw right, select exit

3 open CMS OSD menu and go to profile again

This caused a crash as runtimeEntryFlags wasn't cleared properly and the Copy Profile entry's flags still indicated OPTSTRING somehow.
which caused it's CMSEntryFuncPtr function to be cast to OPTSTRING and called without arguments.
2019-05-08 00:36:23 +02:00
Dominic Clifton
ad1c80247d STM32H750 - Fix CPU crash on cold boot when VCP is enabled.
Crash doesn't occur when VCP is disabled.

It was observed that shortly after the VCP port was enabled a crash
would occur in unrelated code.  e.g. in `rxInit()`

Moving the delay before the call to HAL_PWREx_EnableUSBVoltageDetector
does not fix the issue - tested by moving the delay up one line and
doing many cold boots until a crash was observed.  Crash un-repeatable
once delay is added.

Note: exact cause is unknown, behaviour occurs on some boards more frequently than others.
2019-05-08 07:21:18 +09:00
jflyper
9c83b67e32 NUCLEOF722 - comment out unneeded def 2019-05-08 07:19:01 +09:00
Bruce Luckcuck
f5722273aa Fix MODE_STRING blank value output and improve validation messages
Emptry MODE_STRING paramaters would produce CLI output that would then generate errors if reapplied using a `diff` or `dump`. Fixed the output for blank values to be compatible with setting an empty string (clearing a previous value).

Also improve the length validation to report the allowed character range.
2019-05-07 16:39:00 -04:00
jflyper
3a7edd1e3a [H7] Enable motor
- Initial cut without Dshot

- Enable HAL-based DShot (no burst yet)

- Burst Dshot First working version

- Non-stop PWM refactor

- Conditionalize HAL structures inside motorTimerDma_s
2019-05-08 02:58:26 +09:00
jflyper
b1d55a0755 [DMASPEC] Temporary addition of STM32H7 in dma_reqmap.h 2019-05-08 02:27:06 +09:00
jflyper
a8c16c1cf8 [H7] Enable timer
[TIME] Basic def

[TIMER] timer related commits

[TIMER] Remove stale comments from timer_stm32h7xx.c

[TIMER] New timerClock() based on RM0443 Table 48

[TIMER] Add DMA handling

[TIMER] White space tidy in timer_def.h

Add TIM1_UP_IRQ handling

Fix DEF_TIM_DMA_FULL emitting error for 7th and 15th entry

STM32H7 - add TIM15-CH2 (No DMA)

Fix comment spelling errors.

timer.h change for "Burst Dshot First working version"

Fix bad TIM9 handling for non-H7 case

Touch-up after rebase (timer.h)

F4 and F7 does not have dmaIrqHandler in timerHardware_s (anymore)

Changes per PR comment
2019-05-08 02:26:22 +09:00
Thorsten Laux
f736561701 avoid double esc startup sounds on f7 2019-05-07 18:24:53 +02:00
Bruce Luckcuck
a1135dbbc4 Improve CLI diff output to only include non-empty sections
Eliminates the empty blocks for sections that have no changes from defaults.
2019-05-07 09:48:45 -04:00
jflyper
f58b3eab03 [H7] Enable UART 2019-05-07 22:21:31 +09:00
Michael Keller
1cbff2b9aa
Add gps rescue landing altitude and distance to CMS (#8202)
Add gps rescue landing altitude and distance to CMS
2019-05-08 00:48:21 +12:00
mikeller
6aabc432fc Added DJI_HDL to the RX protocol list for CLI. 2019-05-08 00:31:15 +12:00
Michael Keller
ea3da333d4
Merge pull request #8196 from McGiverGim/add_dmin_gain_adv_cms
Add D_MIN Gain and Advance to CMS
2019-05-07 20:06:14 +12:00
Michael Keller
849abcb1f5
[H7] Enable CAMERA_CONTROL (#8195)
[H7] Enable CAMERA_CONTROL
2019-05-07 20:05:57 +12:00
Michael Keller
2f3d42e58f
[H7] Enable software serial (#8194)
[H7] Enable software serial
2019-05-07 20:05:41 +12:00
Michael Keller
4dcdedc8f2
Merge pull request #8191 from jflyper/bfdev-h7-persistent-storage
[H7] Port RTC backup register based persistent storage for H7
2019-05-07 20:04:54 +12:00
Michael Keller
a8f6ea0b72
Add PID and Rate profile names, osd elements and cli config (#7696)
Add PID and Rate profile names, osd elements and cli config
2019-05-07 20:04:39 +12:00
Solar Hacksaw
86a8d4ad86 add omnibusf7nanov7 2019-05-06 18:27:26 -07:00
Michael Keller
d3677b79aa
Remove CLI "display_name" and notify that "name" will be removed (#8190)
Remove CLI "display_name" and notify that "name" will be removed
2019-05-07 12:13:50 +12:00
Michael Keller
89179fb6e8
Renamed 'gyro_filter_impl.h' to 'gyro_filter_impl.c'. (#8187)
Renamed 'gyro_filter_impl.h' to 'gyro_filter_impl.c'.
2019-05-07 12:13:30 +12:00
Michael Keller
35270099c0
Removed non-library header from 'lib/'. (#8115)
Removed non-library header from 'lib/'.
2019-05-07 12:12:14 +12:00
Michael Keller
e5393c215b
Revise data structures for DSHOT telemetry stats to avoid high CPU load (#8177)
Revise data structures for DSHOT telemetry stats to avoid high CPU load
2019-05-07 12:06:43 +12:00