1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00
Commit graph

12526 commits

Author SHA1 Message Date
Michael Keller
8466f95b5a
ESC sensor passthrough for FETtec ESC GUI (#8432)
ESC sensor passthrough for FETtec ESC GUI
2019-06-29 15:08:45 +12:00
Michael Keller
d3eab72da4
Move HAL_Init call for F3/F4/F7/H7. (#8493)
Move HAL_Init call for F3/F4/F7/H7.
2019-06-29 14:58:24 +12:00
Kyle K
d8dd9cacc3 dropping useless max7456Lock boolean 2019-06-29 01:00:41 +00:00
Michael Keller
e824b9021b
Fixed FLASH boot loader option. (#8487)
Fixed FLASH boot loader option.
2019-06-29 12:04:50 +12:00
jflyper
f9bd71f9be Remove bogus pg/pg.h and pg/pg_ids.h from driver files 2019-06-29 02:21:51 +09:00
Dominic Clifton
9054cd45bf Move HAL_Init call for F3/F4/F7/H7.
* HAL_Delay() was being used before HAL_Init() was called.
* Brings it in-line with ST examples which follow this call order:
CubeMX generated code goes startup_xxx.s (asm) -> SystemInit(), then
main(), HAL_Init(), SystemClock_Config()

Boot-tested on:
* SPRacingF4NEO
* SPRacingF7DUAL
* SPRacingH7ZERO
2019-06-28 12:33:54 +02:00
felix
85f00d4454 add FETtec ESC passthrough to the existing serial passthrough cli function 2019-06-28 10:10:12 +02:00
Michael Keller
3695b123d9
Add link quality symbol to OSD (#8494)
Add link quality symbol to OSD
2019-06-28 19:24:35 +12:00
Michael Keller
8a8e8e7cb9
Merge pull request #8491 from hydra/bf-h7-sd-fixes
H7 SDIO/SDCARD fixes/cleanups.
2019-06-28 19:22:55 +12:00
jflyper
8ceaed1072 [H7] Add pseudo peripheral TIMUP for TIMx_UP DMA management 2019-06-28 15:45:19 +09:00
Michael Keller
7ba8198b83
Merge pull request #8489 from mikeller/fix_pwm_on_sitl
Fixed mocking of pwm output on SITL.
2019-06-28 09:36:22 +12:00
Michael Keller
f21745c552
Disable use_unsynced_pwm if using DSHOT or PROSHOT (#8486)
Disable use_unsynced_pwm if using DSHOT or PROSHOT
2019-06-28 09:36:12 +12:00
Michael Keller
5015023e45
H7 relocate startup files to match master. (#8485)
H7 relocate startup files to match master.
2019-06-28 09:35:51 +12:00
Michael Keller
16ee340649
Transponder - update PG initialisation code to use `timerioTagG… (#8483)
Transponder - update PG initialisation code to use `timerioTagGetByUsage`
2019-06-28 09:35:36 +12:00
Michael Keller
6cefd22171
CLRACING F7 target update (#8479)
CLRACING F7 target update
2019-06-28 09:33:53 +12:00
Michael Keller
9d5561733d
Update NUCLEOH743 target for ZI2 version of the board (#8477)
Update NUCLEOH743 target for ZI2 version of the board
2019-06-28 09:33:36 +12:00
Michael Keller
ee910b3e6a
Add dynamic distance formatting for OSD elements (#8471)
Add dynamic distance formatting for OSD elements
2019-06-28 09:22:44 +12:00
Nicola De Pasquale
bb5f59a94d new gps rescue pid controller based on vertical velocity [ci skip] 2019-06-27 18:17:03 +02:00
Bruce Luckcuck
b962416333 Remove settings parameter; update to use the new kilometer and miles symbols 2019-06-27 10:14:14 -04:00
Michael Keller
6a78550175
Add support for GPS HDOP value to S.Port telemetry (#8472)
Add support for GPS HDOP value to S.Port telemetry
2019-06-28 01:29:11 +12:00
mikeller
0e35163ed2 Fixed FLASH boot loader option. 2019-06-28 01:19:42 +12:00
Miguel Angel Mulero Martinez
c80c3c4f08 Add link quality symbol to OSD 2019-06-27 09:33:56 +02:00
Phong Vu
3ce8cffe7e Fix HDOP value needs to be rounded to the nearest hundred 2019-06-27 06:47:02 +07:00
Phong Vu
0c2ac46741 Use scaleRange() instead 2019-06-27 06:38:12 +07:00
mikeller
ddf7a29fb7 Fixed mocking of pwm output on SITL. 2019-06-27 02:53:23 +12:00
Bruce Luckcuck
73033e185d Disable use_unsynced_pwm if using DSHOT or PROSHOT
The digital protocols are always synchronized to the PID loop. People are setting the `use_unsynced_pwm` option mistakingly thinking it has some effect and using that to perpetuate misinformation.
2019-06-26 09:30:56 -04:00
Michael Keller
f0ca74303c
Fix BOATLOADER_ defines typo (#8468)
Fix BOATLOADER_ defines typo
2019-06-27 01:23:57 +12:00
Dominic Clifton
05c518847d [H7] Relocate startup files to match betaflight/master branch 2019-06-26 12:36:57 +02:00
jflyper
dad1110181 [H7] Relocate LD files to match betaflight/master branch 2019-06-26 12:36:34 +02:00
Dominic Clifton
5dd67d767b Transponder - update PG initialisation code to use
`timerioTagGetByUsage`
2019-06-26 12:31:44 +02:00
Dominic Clifton
fe797aa633 STM32H7 - Fix SDIO initialisation caused by USE_DMA_SPEC changes.
H7 uses IDMA, no DMA channel spec needed.
2019-06-26 12:21:42 +02:00
Dominic Clifton
3acaf16090 STM32H7 - Fix errant SDIO request mapping.
None needed as IDMA is used.  See 54.4.1 SDMMC block diagram in H7
Reference Manual Rev 6 RM0433.
2019-06-26 12:21:42 +02:00
Dominic Clifton
845940dd90 STM32H7 - Fix building targets that can optionally define USE_SDCARD
i.e. MINIMALH750_EXST doesn't currently build, but should when
USE_SDCARD is enabled in the target config.

The issue arises from target .mk file's FEATURES list in combination
with STM32H7.mk including sdcard specific file when the SDCARD_SDIO
feature is enabled.
2019-06-26 12:21:42 +02:00
jflyper
12d1737d61 Update NUCLEOH743 target for ZI2 version of the board 2019-06-26 11:02:07 +09:00
Bruce Luckcuck
f42f6a8047 Fix filter cutoff frequency limits
Was missed when 32KHz filtering was removed.
2019-06-25 19:01:44 -04:00
Bruce Luckcuck
2e9e99ff42 Simplified leading symbol logic and change setting to default to ON 2019-06-25 18:38:27 -04:00
Phong Vu
d7f55c5c18
Add support for HDOP value to S.Port telemetry
To be compatible with iNav Telemetry LUA script on OpenTX
2019-06-25 18:13:04 +07:00
Cheng Lin
c0098365d9 Add Dual gyros,1G blackbox, motor 6 7 8 timers,Pinio
CLRACING F7 TARGET add dual gyro,pinio Config.c file

Merge pull request #8016 from krzysztofmatula/km-timer-safety-checks

OSD timers safety checks

Respect USE_MAG in GPS rescue code (#8136)

Respect USE_MAG in GPS rescue code

Removed features from AIORACERF3 to fix flash overflow.

add dual gyros support for clracingf7

add MOTOR 6 7 8, arrange timers for RPM filtering

Signed-off-by: Cheng Lin <bnn1044@gmail.com>

Add Dual gyros,1G blackbox, motor 6 7 8 timers,Pinio

Add Dual gyros,1G blackbox, motor 6 7 8 timers,Pinio

update cc2500:

Add Dual gyros,1G blackbox, motor 6 7 8 timers,Pinio

update cc2500:

update from upstream

Add Dual gyros,1G blackbox, motor 6 7 8 timers,Pinio

add M5-M7,pinio define update unified target
2019-06-24 23:51:01 -04:00
Bruce Luckcuck
865515113e Add dynamic distance formatting for OSD elements
Optionally format distance as meters/kilometers or feet/miles based on overal distance. For metric, distance will be displayed as:

0-999m: display meters
1000-9999m: display as kilometers with 2 decimals (ie. 1.23K)
10000m and above: display as kilometers with 1 decimal (ie. 10.5K)

Similar for imperial units except that will display feet up to 1 mile (5280ft), miles with 2 decimals from 1-9.99 miles, and with 1 decimal over 10 miles.

Configured with `osd_dynamic_distance_units = OFF | ON`. If off (the default) then the behavior is unchanged and the distance will be only displayed in meters or feet depending on the units selection.

There are currently no OSD font symbols for kilometers or miles so "K" and "M" are used at this time.
2019-06-24 19:57:14 -04:00
Michael Keller
ecb67fcc09
Disconnect OSD stats display from storage bit position order -… (#8452)
Disconnect OSD stats display from storage bit position order - allow easier stats display reordering
2019-06-25 10:10:53 +12:00
AJ Christensen
45e8d74255 Fix BOATLOADER_ defines typo
* Missed in review, sorry!
* A-oooga I'm a boat
2019-06-25 07:30:50 +12:00
Michael Keller
01788322b6
Merge pull request #8462 from mikeller/fix_stats_dispatch
Fixed dispatch initialisation for persistent statistics.
2019-06-25 02:17:31 +12:00
Michael Keller
ed266e7151
[SmartAudio] Added support for custom frequency tables (#8380)
[SmartAudio] Added support for custom frequency tables
2019-06-25 02:16:14 +12:00
Michael Keller
7f2ac0cf65
Add booting into the flash boot loader as an option. (#8429)
Add booting into the flash boot loader as an option.
2019-06-25 02:15:01 +12:00
Bruce Luckcuck
4e85c0f2a2 Remove MSP update for stats display order 2019-06-24 07:12:24 -04:00
mikeller
b14ecb1541 Extracted reboot magic numbers. 2019-06-24 23:03:29 +12:00
functionpointer
7cb34205b3 [VTX] vtxTable factory flag and full integration of vtxTable (#8380)
Moved vtxtable frequency mode implementation into `vtx_common.c`.
This makes the implementation available for all vtx types and allows
for some code deduplication (see point below)

Removed band and channel tracking from tramp and rtc6705.
The hardware underlying both only support frequency mode and
the tracking is now done in `vtx_common.c` using the new factory flag.

Deleted vtxStringXXX. to continue supporting builds without
`USE_VTX_TABLE`, new infrastructure was created in
`drivers/vtx_table.c`, which loads fixed tables into vtxTableXXX
when built witout `USE_VTX_TABLE`. Individual vtx implementations no
longer need to load any band/channel tables. They only need to load
their individual power tables when built without `USE_VTX_TABLE`.
Additionally this allows for the next point:

Fully integrated vtxTableXXX and removed the old and no longer needed
indirection of frequency and power tables in `vtxDevice_t`.

Removed VTX_SETTINGS_* constants from `vtx_common.h` and replaced them
with the vtxtable equivalent.

rtc6705 implementation now uses power values from vtxtable instead of
using indices directly. It also stops using index 0. This makes it
consistent with other vtx implementations and is more user configurable.
It also cleans up `telemetry\srxl.c` which had to have a special case for rtc6705.

Finally, frequency entries in the vtxtable can now be marked as empty
by setting their frequency to 0. Betaflight will never allow a blocked
channel to be selected. This is useful for vtxtable index mode
(FACTORY flag set) where manufacturer-defined bands can be truncated
to ensure compliance with local laws and regulations.
2019-06-24 12:28:46 +02:00
Michael Keller
47806cd407
CLRACINGF4 target update--remove bit mask for Port A, define A1… (#8463)
CLRACINGF4 target update--remove bit mask for Port A, define A14 as pinio 1 for VTX switch
2019-06-24 21:52:26 +12:00
Michael Keller
766c52978e
Fixed gyros bugs and added PINIOBOX feature for EXF722DUAL targ… (#8449)
Fixed gyros bugs and added PINIOBOX feature for EXF722DUAL target.
2019-06-24 21:48:49 +12:00
Cheng Lin
51ec64feb4 remove Bit mask for Port A, define A14 as pinio 1 for VTX switch
update cc2500:

update from upstream
2019-06-23 10:22:12 -04:00