Commit Graph

10893 Commits

Author SHA1 Message Date
Dominic Clifton aa42a69d2f Revert "Rewritten F7 dshot to LL (draft)" (#5430)
This reverts commit fa3c7e0833.
2018-03-09 23:39:04 +03:00
J Blackman f00575ef76
Merge pull request #5407 from larryho5/betaflight_3_3_0_R3
- fixed TBS BST "Rates" was missing problem
2018-03-09 14:56:27 +11:00
etracer65 f97df6827e Change CLI "get" to be case-insensitive (#5382)
Matches the behavior of the "set" command.
2018-03-09 06:50:31 +13:00
Austin 4d3666b77b Fix for minthrottle when feature 3D and PWM enabled (#5102)
* Fix for minthrottle when feature 3d and pwm enabled

* add parameters for min and max 3d output

* bug fix

* remove new parameters from msp

* remove new parameters again

* fixed indentation
2018-03-09 06:44:17 +13:00
etracer65 18b857de65 Correct nested if else for USE_MAG and USE_GPS (#5414)
If USE_MAG was undefined but USE_GPS was defined, then the "else if" would incorrectly apply to a condition above making the USE_GPS section unlikely to execute.
2018-03-08 09:48:22 +13:00
larryho5 4fc43bfcc0 - fixed TBS BST "Rates" was missing problem 2018-03-07 17:26:59 +08:00
SteveCEvans 0430fcb67d Add ledstrip_grb_rgb setting (GRB or RGB) to handle WS2811 or WS2812 … (#5255)
* Add ledstrip_grb_rgb setting (GRB or RGB) to handle WS2811 or WS2812 LED drivers

* Rename setting lookup table to lookupLedStripPackingOrder

* Fix call to ws2811UpdateStrip

* Fix unit test

* Use ledStripFormatRGB_e enumeration for RGB packing format

* Fix unit test

* Whoops. Make ledStripFormatRGB_e match lookupLedStripFormatRGB

* Applied review feedback

* Add documentation of ledstrip_grb_rgb
2018-03-06 09:39:14 +13:00
Hector Hind 94f06e1e05 Fix FPVM_BETAFLIGHTF7 & OMNIBUSF7V2 Gyro/Acc Alignment. (#5375) 2018-03-06 08:30:02 +13:00
Andrey Mironov e49dfb1634 Added F7 overclock (#5372) 2018-03-06 08:28:29 +13:00
codecae d004cf5fb7 Improved VTX update scheduling to reduce update delays (#5340) 2018-03-06 08:27:50 +13:00
Andrey Mironov a24daa78d0 Fixed possibility of getting stuck in F7 bootloader mode (#5370) 2018-03-04 22:45:40 +13:00
Steffen Windoffer 2f8e59f8fc fix rate accel limit ranges (#5367) 2018-03-04 11:49:53 +13:00
Andrey Mironov 8319c6c6d1 Unified enabling of EXTI for gyro on F7 with other targets (#5364) 2018-03-04 11:49:36 +13:00
Michael Keller f73ada0687
Enabled Dshot burst by default for DALRCF405. (#5362) 2018-03-04 11:49:15 +13:00
etracer65 3b20e8279b Add accelerometer calibration values to the CLI - also change mag calib representation (#5354)
Allows the accelerometer calibration to be exported in a dump or diff and restored after upgrading.

The accelerometer calibration is specific to the frame and orientation in which the flight controller is installed.  The users should have a way to restore a correct setting during upgrades without having to recalibrate after every flash.  Replicates the way the magnetometer calibration is exported.

Added acc_calibration as an array type to the CLI.  For consistency changed magnetometer representation from magzero_X, magzero_Y, magzero_Z to be a single array mag_calibration.
2018-03-04 11:48:51 +13:00
Andrey Mironov 36c3fdb576 Simplified PID rate counter code (#5350) 2018-03-04 11:48:22 +13:00
Charles K Stevenson 33ee5efa17 Don't close blackbox log on disarm if mode is ALWAYS_ON (#5341) 2018-03-04 11:48:09 +13:00
Dan Nixon 66dac7a2e3 Positionable OSD crosshairs and AHI (#5326)
* Make Artificial horizon and crosshairs positionable

* Remove dependency on AHI for AHI sidebars

* Use the old fixed positions as defaults for some OSD elements

Namely:
- crosshairs
- artificial horizon
- artificial horizon sidebars
2018-03-04 11:46:39 +13:00
adrianmiriuta 3855d254b0 move from CALIBRATING_GYRO_CYCLES to CALIBRATING_GYRO_TIME ... absolu… (#5320)
* move from CALIBRATING_GYRO_CYCLES to CALIBRATING_GYRO_TIME ... absolute calibration time

* DieHertz requested changes

* cleanup indentation
2018-03-04 11:46:15 +13:00
Míguel Ángel Mulero Martínez 73eb5d396e Add compass QMC5883L driver (#5309) 2018-03-04 11:45:54 +13:00
Michael Keller 6560e96e98
Fixed inconsistency in OSD code. (#5223) 2018-03-04 11:43:46 +13:00
Míguel Ángel Mulero Martínez 37fa25606f Simplify HMC5883 Compass (#5289)
Remove the mag gain calculation. After some tests the maximun difference
is 6 degrees, so is not important.
2018-03-04 11:43:24 +13:00
etracer65 f96f9672d1 Revise ledstrip optimization to use overlay disable bitmask (#5270)
Clean up the logic to use a bitmask indicating which overlays are disabled rather than an array to indicate which are enabled.

Performance remains unchanged from the previous optimization but a few bytes of RAM are saved and the code is cleaner.
2018-03-04 11:43:07 +13:00
conkerkh 742cb5f93b Add current sensor debug option. (#5260)
Allows for easy calculation of required scale and offset.

0 - miliVolts
1 - centiAmps
2 - amperageLatest
3 - mahDrawn
2018-03-04 11:42:41 +13:00
Alberto García Hierro 88dcaa95ef Output more information in MSP_BOARD_INFO (#5206)
* Append the target name to the response of MSP_BOARD_INFO

This allows MSP clients to retrieve the actual target name, which
is useful for e.g. automatically upgrading the firmware on a board
without asking the user to select the target manually or to present
a warning dialog if we detect the user has chosen the wrong target.

* Output wether a board uses VCP in MSP_BOARD_INFO

This allows the configurator to detect if the board uses VCP
without using an external list of boards.

* Use a single bit to output wether the board uses VCP

This lets us use the remaining 7 bits for other flags.
Also, output if the board has softserial support using the next
bit.
2018-03-04 11:38:30 +13:00
etracer65 43d8f67db2 Fix diff support for array data types (#5366)
Previously diff would only compare the first element of an array type.  Changed valuePtrEqualsDefault() to make it array-aware and compare all elements to the defaults.
2018-03-04 01:38:01 +03:00
bkeinert 5d3c3b766b extend crash-flip mode (#5163)
* extend crash-flip mode

* size optimizations

* adjust cosine threshold

* adjust deadband to 15%
2018-03-04 11:37:01 +13:00
Michael Keller 51f5c15e18
Added abridged release notes for 3.3 to docs. (#5363) 2018-03-04 11:32:11 +13:00
Dominic Clifton cde9a9517b SPRacingF7DUAL - Dual SIMULTANEOUS gyro support. (#5264)
* CF/BF - Set STM32F7 SPI FAST clock to 13.5Mhz - Gyros not stable at
27mhz.

* CF/BF - Initial SPRacingF7DUAL commit.

Support two simultaneous gyro support (code by Dominic Clifton and Martin Budden)
There are new debug modes so you can see the difference between each gyro.

Notes:
* spi bus instance caching broke spi mpu detection because the detection
tries I2C first which overwrites the selected bus instance when using
dual gyro.
* ALL other dual-gyro boards have one sensor per bus.  SPRacingF7DUAL is has two per bus and thus commit has a lot of changes to fix SPI/BUS/GYRO initialisation issues.

* CF/BF - Add SPRacingF4EVODG target.

This target adds a second gyro to the board using the SPI pads on the back of the board.

* CF/BF - Temporarily disable Gyro EXTI pin to allow NEO target to build.
2018-03-04 11:29:31 +13:00
Michael Keller 9bcc6aca8e
Revert "BEEPER Conversion to use USE_ scheme" (#5368) 2018-03-04 09:40:17 +13:00
jflyper bf11921dc0
Merge pull request #5285 from jflyper/bfdev-convert-beeper-to-USE_-scheme
BEEPER Conversion to use USE_ scheme
2018-03-03 23:22:56 +09:00
Dominic Clifton c7f7846d39 Use GYRO_1/2 defines instead of GYRO_0/1 to make things less confusing. (#5274) 2018-03-04 02:00:28 +13:00
Petr Ledvina c11d016bc7 optimize math (#5287)
* optimize math

Results in considerable flash saving

* log_approx, exp_approx, pow_approx

Taken from https://github.com/jhjourdan/SIMD-math-prims/blob/master/simd_math_prims.h

* Fix pow in rangefinder

* Use approximate function in baro calculation

Maximum error is < 20cm

* fixup! Fix pow in rangefinder
2018-03-04 01:26:33 +13:00
Michael Keller b64802d931
Merge pull request #5356 from mikeller/update_readme
Updated README and pull request template after 3.3 release.
2018-03-04 01:08:51 +13:00
Michael Keller 9e90f9a635
Merge pull request #5279 from betaflight/cf-changes-4
CF/BF - Enable RTC6705 power control.
2018-03-04 01:08:08 +13:00
Michael Keller e8cc2300be
Merge branch 'master' into update_readme 2018-03-04 00:29:41 +13:00
jflyper dedad2f920
Merge pull request #5237 from DieHertz/dshot-f7-low-level-rewrite
F7 DSHOT LL rewrite
2018-03-03 18:26:48 +09:00
J Blackman 2dcd50df0a Updated notice on 3.3 support for STM32F1 (#5360) 2018-03-03 12:25:57 +03:00
jflyper f645b6bbf5
Merge pull request #5352 from betaflight/fix-spi-init-on-spracingf3osd
CF/BF - Fix SPI init on SPRacingF3OSD.
2018-03-03 18:08:28 +09:00
Michael Keller 5143b8687d
Merge pull request #5359 from betaflight/fix-f1-build-issues
Fix F1 build issues
2018-03-03 14:29:31 +13:00
Hydra 64d6c86b28 Fix BEEBRAIN compilation.
Broken since ee65eba88d
2018-03-03 01:34:45 +01:00
Hydra 2c12a8fe52 CF/BF - Fix 'unused variable disableRunawayTakeoff' warning when
building CJMCU.
2018-03-03 01:34:01 +01:00
Michael Keller cec1b1a937 Updated README and pull request template after 3.3 release. 2018-03-03 11:11:52 +13:00
Hydra 38935a1964 CF/BF - Fix SPI init on SPRacingF3OSD. 2018-03-02 20:49:40 +01:00
jflyper bd20c822bd
Merge pull request #5315 from etracer65/fix_naze_compile
Fix compilation error for F1 targets
2018-03-02 22:34:17 +09:00
jflyper bca6beb9e6
Merge pull request #5349 from mikeller/increment_versions_after_3_3_0
Increment firmware, MSP, EEPROM versions after 3.3.0.
2018-03-02 22:33:32 +09:00
jflyper 7d6c973cf7
Merge pull request #5276 from betaflight/cf-changes-2
Remove duplicate ADC code.
2018-03-02 22:32:23 +09:00
jflyper ea0db878bf Convert to USE_ scheme 2018-03-02 22:29:40 +09:00
Hydra 4901b947e3 CF/BF - Enable RTC6705 power control.
Currently there is duplicate code between the two RTC6705 drivers, we
can refactor it via another commit to reduce this new, and existing
duplication.
2018-03-02 14:23:03 +01:00
Michael Keller 972e0b28a9 Increment firmware, MSP, EEPROM versions after 3.3.0. 2018-03-02 22:00:02 +13:00