Bruce Luckcuck
fba0b2cea3
Optimze pidSum calculation by storing the value rather than recalculating in multiple places.
...
Saves 72 bytes. Will save at least that additionally when incorporated into Runaway Takeoff Prevention (which also calculates the pidSum in two places).
Additionally adds a slight performance improvement by not repeating the floating point additions to calculate the pidSum in multiple places. Effectively replaces 2 calculations with 1 (4 with 1 with Runaway Takeoff Prevention).
2018-01-30 09:58:41 -05:00
Michael Keller
6efe34d4da
Merge pull request #5062 from betaflight/de_msp_oob_handling
...
Handle MSP out of band data with guard interval
2018-01-31 01:26:27 +13:00
jirif
b612df0c53
Optimize pid loop
2018-01-30 11:23:03 +01:00
mikeller
174e53089e
Rearranged BEEROTORF4 DMA to make quad mixer work with LED_STRIP.
2018-01-30 22:50:32 +13:00
Konstantin Sharlaimov (DigitalEntity)
fda453ca74
Fix failing SPRACINGF3OSD build
2018-01-30 12:46:19 +10:00
Konstantin Sharlaimov (DigitalEntity)
5fa8971b1c
Handle MSP out of band data with guard interval
2018-01-30 12:11:12 +10:00
Bruce Luckcuck
4712b0aca1
Discussion: Move time-critical code from fc_core.c to fc_tasks.c
...
Change fc_core.c to be size-optimized to reduce overall firmware size. Saves 3288 bytes on OMNIBUS as an example.
2018-01-29 20:11:25 -05:00
Michael Keller
dbf0883470
Merge pull request #5060 from blckmn/sdcard_check
...
Adding additional check on init for sdcard enabled.
2018-01-30 11:52:59 +13:00
blckmn
ed73e5fdaa
Adding additional check on init for sdcard enabled.
2018-01-30 04:20:58 +11:00
blckmn
7245c79dce
Fixes error in DMA irq handling
2018-01-30 04:11:57 +11:00
Michael Keller
52f29f6e81
Fixed RaceFlight rates calculation.
2018-01-30 00:04:28 +13:00
blckmn
39bb6ffe04
Configurable SDCARD, and clean up of DMA.
2018-01-29 11:50:14 +11:00
Michael Keller
b73ffbb592
Merge pull request #5052 from jflyper/bfdev-bluejayf4-softserial-on-debug
...
BLUEJAYF4 Assign DEBUG pad (PB3) as default half-duplex software serial
2018-01-29 10:02:09 +13:00
jflyper
bc070558b1
DEBUG pad (PB3) is the only pin capable of half-duplex soft serial
2018-01-28 22:29:28 +09:00
Steffen Windoffer
0506d755a3
remove unused entries from cli lookup table
2018-01-27 22:58:27 +01:00
Michael Keller
15feefa48b
Merge pull request #5032 from AndersHoglund/vtx_cntrol_ts
...
Spektrum VTX control moved to VTX control task.
2018-01-27 09:27:25 +13:00
Anders Höglund
0b08a3ae76
Merge pull request #5035 from jflyper/bfdev-improve-conditional-for-spektrumBind
...
Improve conditional handling for USE_SPEKTRUM_xxx
2018-01-26 19:30:31 +01:00
jflyper
eb1820f5bf
Enable in pre, check and disable in post.
2018-01-27 01:22:00 +09:00
Anders Hoglund
ac76179942
Spektrum VTX control moved to VTX control task. Added some missing compile conditionals and a few cosmetic updates too.
2018-01-26 13:52:29 +01:00
MJ666
64f809afb1
Merge pull request #5040 from AlienWiiBF/FortiniF4
...
Add USART5 to FortiniF4
2018-01-26 08:15:36 +01:00
MJ666
5f042ec26b
Add USART5 to FortiniF4
2018-01-26 07:37:49 +01:00
AJ Christensen
025ed36cc3
BetaFlight rates: re-add RF_RATE_INCREMENTAL multiplier
...
* By my understanding, when rcRate ended up being larger than 2.0, it was
affected by this additional multiplier in calculateSetpointRate, line 101 of
the previous implementation
2018-01-26 17:16:38 +13:00
Michael Keller
eeb3280c0e
Merge pull request #5021 from jflyper/bfdev-i2c-allow-exotic-af
...
I2C (STM32F4) Allow pins with exotic AF
2018-01-26 12:37:16 +13:00
Michael Keller
06326c8b69
Merge pull request #5029 from jirif/frsky_hub
...
Frsky hub telemetry use battery api
2018-01-26 01:13:42 +13:00
jflyper
9e5a811dcf
Allow pins with exotic AF
2018-01-25 21:01:16 +09:00
Adrian Miriuta
b21d681153
Introduced cli parameter <gyro_offset_yaw>
...
It allows to manually compensate gyro drift over time.
rebased squashed.
2018-01-25 12:45:38 +01:00
jirif
9d3d034a10
Frsky hub telemetry use battery api
2018-01-25 09:25:59 +01:00
Michael Keller
b47cabffef
Merge pull request #5023 from mikeller/avoid_process_rx_when_no_new_rc_data
...
Avoid RC processing when no new RC data was received.
2018-01-25 18:17:26 +13:00
Michael Keller
9fc5bacaac
Merge pull request #5022 from mikeller/fix_rates_interpolation_bug
...
Fixed rates / interpolation bug.
2018-01-25 18:11:09 +13:00
Michael Keller
1872444d3d
Merge pull request #5024 from jflyper/bfdev-fix-naze-config-c
...
NAZE Add io.h to target config.c
2018-01-25 10:13:00 +13:00
Michael Keller
1f9c828f2a
Fixed rates / interpolation bug.
2018-01-25 10:07:40 +13:00
jflyper
a5cc4369b9
Add io.h to target config.c
2018-01-24 22:31:04 +09:00
mikeller
8b636ff86a
Avoid RC processing when no new RC data was received.
2018-01-25 02:01:29 +13:00
Michael Keller
d00cbc3858
Fix RX update frequency with no serial input.
2018-01-24 10:37:36 +13:00
Michael Keller
67523493a0
Merge pull request #5012 from jflyper/bfdev-impulsercf3-timer-refactor
...
IMPULSERCF3 Refactor pin assignment
2018-01-24 00:33:39 +13:00
Michael Keller
a9068e1997
Merge pull request #4982 from mikeller/added_rx_processing_function
...
Added rx data processing function and used it for FPort processing.
2018-01-24 00:16:38 +13:00
Martin Budden
a4772d9dea
Merge pull request #4999 from martinbudden/bfa_mixer_tri
...
Add hooks for triflight
2018-01-23 10:59:29 +00:00
mikeller
bf463cf104
Added rx data processing function and used it for FPort processing.
2018-01-23 20:10:00 +13:00
Martin Luessi
57811cbd17
Fix F446 timer clocks
2018-01-22 15:14:41 -08:00
jflyper
c3b218f9b5
Refactor pin assignment
...
- Assign valid timers for PWM5 and 6
- Streamline PWM1 through 4 for burst Dshot operation
- PWM5 and 6 are assigned different timers to maximize flexibility.
2018-01-22 20:08:53 +09:00
Michael Keller
d09a5ef1a7
Merge pull request #5011 from martinbudden/bfa_compass_healthy
...
Moved compass health check into compass.c
2018-01-22 09:25:47 +13:00
Michael Keller
f7215691d3
Merge pull request #5010 from martinbudden/bfa_arming_disable_names
...
Always use arming disable flag names
2018-01-22 09:24:28 +13:00
Martin Budden
3116ef4008
Moved compass health check into compass.c
2018-01-21 14:51:59 +00:00
Martin Budden
486770a75d
Move define of USE_OSD into common_fc_pre.h
2018-01-21 14:19:08 +00:00
Martin Budden
e7cac0e9c6
Always use arming disable flag names
2018-01-21 14:15:49 +00:00
Martin Budden
7bb2814d20
Convert tabs to spaces
2018-01-21 13:23:34 +00:00
Martin Budden
1a59f50100
Added NRF24 RX to CJMCU and NUCLEOF4 builds
2018-01-21 12:00:41 +00:00
George Gougoudis
3884d9383c
Fix IMU mutex lock
2018-01-21 05:58:24 +02:00
Michael Keller
af477487fc
Merge pull request #4996 from martinbudden/bfa_useless_timer_headers
...
Removed useless timer header files
2018-01-21 10:36:06 +13:00
Michael Keller
ee4edb3da9
Merge pull request #4997 from martinbudden/bfa_compass_update
...
Avoided compass task wrapper function
2018-01-21 10:31:53 +13:00