Commit Graph

6464 Commits

Author SHA1 Message Date
J Blackman b9347e8a79 Merge pull request #2984 from blckmn/timer_simplified
Simplify timer definitions
2017-05-06 13:23:19 +10:00
4712 746040d6cd added support for BLHeli32 2017-05-05 23:56:45 +02:00
Martin Budden 849c8e5449 Merge pull request #3003 from sambas/betaflightF7
Fix more HAL init issues
2017-05-05 20:00:16 +01:00
rav 001fb8d432 make sure rxRefreshRate > 0 2017-05-05 17:04:27 +02:00
rav d7c0fa4d6e double semicolon 2017-05-05 16:10:49 +02:00
jflyper 992c818446 Easy to read smaller code 2017-05-05 22:58:43 +09:00
rav d4d59fc718 fix unit tests 2017-05-05 08:22:31 +02:00
Michael Keller e74418cfa7 Merge pull request #3004 from basdelfos/main_battery_usage_bar
Added OSD Battery Usage progressbar
2017-05-05 09:12:06 +12:00
MJ666 3d5e0d90ff Merge pull request #3018 from AlienWiiBF/AF_doc
AlienFlight documentation update
2017-05-04 21:06:48 +02:00
Michael Jakob c12b82ba40 AlienFlight documentation update 2017-05-04 21:05:15 +02:00
Bas Delfos 5499e08bf0 Review changes 2017-05-04 20:38:09 +02:00
Bas Delfos 37e2b8be24 Added OSD Battery Usage progressbar 2017-05-04 20:38:09 +02:00
rav 10b88ed145 Merge branch 'master' of https://github.com/borisbstyle/betaflight into sharper_rc_response 2017-05-04 19:48:22 +02:00
jflyper 9461672b46 Make inverter resource configurable
Add XXX comment about inverterConfig size

Fixed non-USE_INVERTER case

Moved inverter pin to serialPinConfig_t

Various improvements

Per @ledvinap ’s comments.

Only include "drivers/serial.h" from inverter.h

SERIAL_PORT_UART{4,5}, not _USART{4,5}

Dah!

Avoid magic number

Prepare for SERIAL_PORT_IDENTIFIER_TO_INDEX change (#3015)
2017-05-05 02:34:50 +09:00
jflyper d4a2c23fe3 Fix semantically incorrect macro name
Also fixes semantically incorrect resource index calculation in
serial_softserial.c.
2017-05-04 21:33:35 +09:00
Michael Keller 6b22fca1a5 Globally enable ESC sensor support for F4 and F7 MCUs. 2017-05-04 18:12:47 +12:00
rav 33043d79dc use floats for rc interpolation
do not filter setpoint data
2017-05-04 00:16:46 +02:00
Martin Budden 68a1307909 Merge pull request #3010 from AndersHoglund/fix_serial_port_count
Fix SERIAL_PORT_COUNT on ANYFCM7 and NUCLEOF722. Compiler warning.
2017-05-03 17:19:47 +01:00
Anders Hoglund 934c5904f0 Fix SERIAL_PORT_COUNT on ANYFCM7 and NUCLEOF722. Compiler warning. 2017-05-03 17:24:29 +02:00
Anders Hoglund abd03ab558 Fixed compiler warning on unused blackboxShouldLogGpsHomeFrame function. 2017-05-03 17:16:58 +02:00
Sami Korhonen 57c4e462f3 Fix more HAL init issues 2017-05-03 17:56:35 +03:00
Michael Keller 99b21a4f4d Merge pull request #3005 from bnn1044/master
change the spektrum_bind_pin to RX6 CL_RACINGF4
2017-05-03 18:02:42 +12:00
Cheng Lin 5f24cf5a70 change the spektrum_bind_pin to RX6 CL_RACINGF4
change the spektrum_bind_pin to UART6_RX_PIN for CL_RACINGF4
2017-05-02 21:34:24 -04:00
jflyper f26144db72 Support SmartAudio V1 2017-05-02 22:17:03 +09:00
Martin Budden 676fc30316 Merge pull request #2951 from martinbudden/bf_blackbox_3svariable
Added TAG2_3SVARIABLE encoding
2017-05-02 11:14:54 +01:00
Martin Budden 49b698f09e Base gyro calibration on raw data 2017-05-02 10:58:05 +01:00
Martin Budden 3e4325f484 Merge pull request #2773 from martinbudden/bf_gyro_reentrant_calibration
Further work on supporting 2 gyros
2017-05-02 10:57:15 +01:00
Martin Budden 015d848d73 Added TAG2_3SVARIABLE encoding 2017-05-02 08:36:49 +01:00
Martin Budden c48826a739 Minor tidy of blackbox 2017-05-02 07:40:11 +01:00
Martin Budden 94180dcdbb Merge pull request #2998 from martinbudden/bf_blackbox_code_tidy
Minor blackbox code tidy
2017-05-02 07:26:45 +01:00
Martin Budden 0d16d0741f Merge pull request #2983 from betaflight/osd-slave-msp-current-meter
CF/BF - MSP current sensor.
2017-05-02 07:24:46 +01:00
Martin Budden 52765b8266 Merge pull request #2966 from bnn1044/master
Add PWM beeper to CL_RACINGF4  And define clean up
2017-05-02 07:22:37 +01:00
Martin Budden 50ac13d79b Minor blackbox code tidy 2017-05-02 07:13:55 +01:00
Michael Jakob acdc429eb3 Get HAL timer struture copmletely initialized 2017-05-02 07:54:29 +02:00
Michael Keller e5d1382f59 Merge pull request #2833 from jflyper/bfdev-cms-refactor
[CMS] Multi-page bug fix and refactor
2017-05-02 10:19:14 +12:00
Michael Keller ec0373d7c7 Merge pull request #2992 from mikeller/fix_f7_pwm_inversion
Fixed inversion for PWM on TIM1, TIM8 on F7.
2017-05-01 22:50:01 +12:00
Michael Keller 16e8a77a54 Fixed inversion for PWM on TIM1, TIM8 on F7. 2017-05-01 22:25:10 +12:00
Martin Budden f92c19cc6a Renamed blackbox_unittest to blackbox_encoding_unittest 2017-05-01 10:38:48 +01:00
Martin Budden 1c9e5598ce Allow high serial baudrates for OpenLager blackbox logging 2017-05-01 09:43:01 +01:00
Martin Budden 40a96dbf68 Merge pull request #2993 from martinbudden/bf_blackbox_encoding_split
Split blackbox encoding into separate module
2017-05-01 09:18:57 +01:00
Martin Budden 906bc6cd63 Merge pull request #2991 from martinbudden/bf_cli_blackbox_parameter_names2
Further CLI/blackbox parameter renames
2017-05-01 09:09:28 +01:00
Martin Budden 967d447589 Merge pull request #2978 from kc10kevin/master_FuRYOSD
Update FuryF3 and FuryF4 Targets (Added OSD)
2017-05-01 09:08:53 +01:00
Martin Budden b1f290d218 Split blackbox encoding into separate module 2017-05-01 08:57:44 +01:00
Martin Budden e2fbd1a152 Further CLI/blackbox parameter renames 2017-05-01 08:42:29 +01:00
Martin Budden e4d8fa7592 Merge pull request #2986 from martinbudden/bf_cli_blackbox_parameter_names
Reamed some CLI/blackbox params to better align with blackbox viewer
2017-05-01 08:39:38 +01:00
jflyper f4c21d06a9 Disabled page debugging 2017-05-01 11:56:25 +09:00
jflyper 4c114db666 Fix pageCount calculation 2017-05-01 10:40:44 +09:00
Martin Budden dfd9a89122 Merge pull request #2987 from sambas/betaflightF7
Add AnyFC-M7 and NucleoF722 targets
2017-04-30 18:54:22 +01:00
Michael Keller 2029fd5acc Merge pull request #2956 from mikeller/fix_ftoa_buffer_length
Fixed buffer length used for ftoa.
2017-04-30 22:48:35 +12:00
Michael Keller 7a90ba4233 Merge pull request #2958 from DanNixon/osd_pitch_roll_angles
Add pitch and roll angles to BFOSD
2017-04-30 22:22:31 +12:00
Sami Korhonen d85c183b6e Add AnyFC-M7 and NucleoF722 targets 2017-04-30 11:09:33 +03:00
Martin Budden d0d44efc46 Reamed some CLI/blackbox params to better align with blackbox viewer 2017-04-30 07:45:18 +01:00
Petr Ledvina 3171fa27ce Simplify timer definitions 2017-04-30 08:47:30 +10:00
Hydra a59a328322 CF/BF - Bump MSP protocol, required for MSP current sensor support. 2017-04-29 21:02:26 +01:00
Hydra 22147105fb CF/BF - First cut of MSP current sensor.
How it works:
1. Current Meter Source on FC is set to MSP/OSD Slave by user.
2. On reboot FC sends MSP_ANALOG to OSD Slave.
3. OSD Slave listens for incoming MSP as usual.
4. OSD responds to MSP as usual.
6. The FC recevies the data from the OSD Slave and updates the MSP
Current Meter.
2017-04-29 20:57:08 +01:00
Martin Budden 3e56bb75cf Merge pull request #2872 from martinbudden/bf_scheduler_improvement
Improved efficiency of scheduler
2017-04-29 16:34:00 +01:00
Martin Budden 7058657a9b Added blackbox acc field condition 2017-04-29 15:47:09 +01:00
Martin Budden b76e1b837c Merge pull request #2933 from martinbudden/bf_blackbox_debug_condition
Added blackbox debug field condition
2017-04-29 15:43:47 +01:00
Martin Budden e7a2f917f2 Tidied blackbox_io.c 2017-04-29 10:52:34 +01:00
Martin Budden 342148524f Blackbox code tidy 2017-04-29 08:58:05 +01:00
kc10kevin 56bdde9153 Update Fury target 2017-04-29 01:59:08 -05:00
MJ666 ecc4b3c8a1 Merge pull request #2976 from AlienWiiBF/AF_doc
AlienFlight documentation updates
2017-04-29 08:14:05 +02:00
Michael Jakob 21f0875ede AlienFlight documentation updates 2017-04-29 08:11:40 +02:00
Dan Nixon 456d618d1b Add pitch and roll angles to BFOSD 2017-04-28 14:32:52 +01:00
Martin Budden d1302712f2 Tidied blackbox function names to have blackbox prefix 2017-04-28 10:00:59 +01:00
Martin Budden 33c377f5d7 Added blackbox debug field condition 2017-04-28 09:56:08 +01:00
Martin Budden 9c2fd3bcaf Tidied whitespace in blackboxMainFields 2017-04-28 09:35:02 +01:00
Cheng Lin 09819aba26 delete a tab spacing in target.c for CL_RACINGF4 2017-04-27 13:28:40 -04:00
Cheng Lin b8f4092bc6 remove conflit PPM, UART1 on CL_RACINGF4, ADD pwm beeper feature for CL_RACINGF4 2017-04-27 13:24:33 -04:00
J Blackman f6f6cc20df Merge pull request #2934 from sambas/betaflightF7
Fix MPU6000 Acc scale, doesn't fix MSP_RAW_IMU output
2017-04-27 21:52:57 +10:00
Michael Keller c177b809fd Merge pull request #2961 from larryho5/betaflight_3_2_0_26042017_ORGINAL_SETTINGS
- taken off config.c in COLIBRI RACE
2017-04-27 22:25:53 +12:00
larryho5 0346989ef5 - taken off config.h in COLIBRI RACE 2017-04-27 17:24:53 +08:00
J Blackman fe4f9054bd Merge pull request #2955 from larryho5/betaflight_3_2_0_26042017_ORGINAL_SETTINGS
- take off TARGET_CONFIG use orginal betaflight settings
2017-04-27 16:47:22 +10:00
larryho5 1555511236 - taken off TARGET_CONFIG and TARGET_VALIDATECONFIG for use orginal betaflight settings 2017-04-27 13:51:06 +08:00
Cheng Lin 86f3eb5fbf Add PWM beeper to CL_RACINGF4 TARGET 2017-04-26 16:13:50 -04:00
mikeller a2a9c4d05d Fixed buffer length used for ftoa. 2017-04-26 22:06:54 +12:00
Martin Budden 695c278b49 Added blackbox unittest 2017-04-25 14:52:47 +01:00
Martin Budden d6ca86b9b2 Merge pull request #2938 from martinbudden/bf_flash_tidy
Flash code tidy
2017-04-25 14:44:07 +01:00
Martin Budden 229137127f Merge pull request #2941 from martinbudden/bf_rx_unittest
Got rx_rx_unittest running, some tests disabled
2017-04-25 14:43:13 +01:00
Martin Budden 68154a223b Tidied blackbox switch statements 2017-04-25 12:00:13 +01:00
Michael Jakob 48b1204b53 Alienflight targets configuration cleanup 2017-04-25 08:42:00 +02:00
Martin Budden c89fc98bf6 Got rx_rx_unittest running, some tests disabled 2017-04-25 07:38:36 +01:00
Michael Jakob 3bb2dd1fee F7 WS2811 make cleanup 2017-04-25 07:37:26 +02:00
Martin Budden 3e66b8edbd Flash code tidy 2017-04-25 06:05:00 +01:00
Michael Keller a5866f4fc6 Merge pull request #2926 from mikeller/added_dshot_for_f7
Added DShot for F7 targets.
2017-04-24 23:18:49 +12:00
Michael Keller 79594dfd86 Merge pull request #2927 from mikeller/fixed_f7_timer_assignments
Fixed timer to pin assignments for F7.
2017-04-24 23:18:06 +12:00
Michael Keller 44ed1d2091 Merge pull request #2920 from mikeller/fix_cli_negative_values
Fixed setting of negative values in CLI.
2017-04-24 23:16:26 +12:00
Martin Budden 068107a01e Merge pull request #2923 from betaflight/cf-fixes-1
Merge some fixes from CF (Hott Telemetry, SPRacingF3NEO defaults)
2017-04-24 10:11:46 +01:00
jflyper 8007303df3 cliPrintLinefeed() is the consensus? 2017-04-24 18:03:30 +09:00
Sami Korhonen 3d0b25b62d Fix MPU6000 Acc scale, doesn't fix MSP_RAW_IMU output 2017-04-24 11:36:34 +03:00
Martin Budden 01777439de Merge pull request #2932 from martinbudden/bf_blackbox_switch
Tidied blackbox switch statements
2017-04-24 09:04:45 +01:00
Martin Budden 4f95a50322 Tidied blackbox switch statements 2017-04-24 08:28:27 +01:00
jflyper 2034895b27 Per line feed rule 2017-04-24 14:49:13 +09:00
mikeller 0770ccb11a Added DShot for F7 targets. Cleaned up USE_DSHOT in 'target.h'. 2017-04-24 13:44:20 +12:00
Hydra 8dc019acdf CF/BF - Fix average cell voltage.
4.10 was rendered as "4.10V"
4.07 was rendered as "4.7V"

Caused by incorrect format specification.
2017-04-23 21:16:23 +01:00
mikeller 2e0b7362d3 Fixed timer to pin assignments for F7. 2017-04-24 03:41:11 +12:00
Hydra 49471727be CF/BF - SPRACINGF3 - Re-instate SONAR.
It appears @borisbstyle broke it with this commit. 907a184

After it was commented out @mikeller later deleted it in ce6d020

See https://github.com/cleanflight/cleanflight/issues/2755
2017-04-23 11:30:29 +01:00
Hydra 9726e52a54 CF/BF - Fix HoTT telemetry.
Two issues:
1 - failure to work on softserial ports.

The TX pin was not allocated due to the initial port mode.

HoTT telemetry is different in that it changes the serial port mode
between sending and receiving.

This change opens the port in RX/TX mode so that both RX and TX pins are
initally allocated.

Test scenario:
* HoTT on SoftSerial 1
* Diode connecting between RX and TX pins.

2 - bidirectional hardware ports were not supported.

Renamed `sport_halfduplex` to `tlm_halfduplex`.  The setting is now used
by sport and hott telemetry.
2017-04-23 11:30:29 +01:00
Hydra 1d6c9382e4 CF/BF - SPRACINGF3NEO - Change the default telemetry settings to be
appropriate for the XSR receiver.
2017-04-23 11:29:35 +01:00
Martin Budden d2ec0719f7 Merge pull request #2913 from mikeller/make_float_parameter_calculation_static
Made float parameter calculation static and other mixer performance improvements.
2017-04-23 09:37:32 +01:00
Martin Budden ba62820076 Merge pull request #2924 from betaflight/spracingf3mq
SPRacing target cleanups/additions.
2017-04-23 09:34:29 +01:00
MJ666 a871a7f3e0 Merge pull request #2910 from AlienWiiBF/MPU6500_fix
MPU6500 / AK8963 driver interoperation fix
2017-04-23 09:50:41 +02:00
mikeller 991e69974f Added more mixer optimisations from #2898. 2017-04-23 18:26:06 +12:00
Nathan 64625965ed Merge pull request #2892 from savaga/led-support
remap timers, add LED support
2017-04-22 21:38:30 -07:00
mikeller 485a8ef37f Fixed setting of negative values in CLI. 2017-04-23 14:37:58 +12:00
jflyper 0eb2b2b394 Hmm... 2017-04-23 11:21:45 +09:00
Hydra 500a12740c CF/BF - Change SPRACINGF3MQ into a variant. Cleanup SPRacing PCB
revision handling.

* Note the initial target support for the F3MQ dates back to early 2016,
prior to new build system.
2017-04-22 22:01:35 +01:00
Hydra af9b5ea3f5 SPRACINGF3MQ - Initial target support. 2017-04-22 21:50:43 +01:00
jflyper 3697f19c8c Some more savings.
This change will save 16B for F4 and F7 (no difference for F1 and F3).
2017-04-23 03:53:07 +09:00
jflyper 0aa40e822a Space-saving 2017-04-23 03:14:21 +09:00
jflyper 07b1918acd Fix resource command outputs 2017-04-23 03:05:17 +09:00
Michael Jakob c59b3e9948 Activate pull ups for I2C port on AlienFlight F3, F4 and F7 targets 2017-04-22 17:55:07 +02:00
Michael Jakob c199bb5638 Revert changes for SPRACINGF3MINI (MPU9250 I2C) 2017-04-22 17:45:09 +02:00
Michael Jakob 278350b7e6 Fix alignment of tasklist output 2017-04-22 17:45:06 +02:00
Michael Jakob 434f4f661d MPU6500 / AK8963 driver interoperation fix 2017-04-22 17:45:04 +02:00
Martin Budden bb5314b825 Merge pull request #2921 from blckmn/nero_update
Updates for NERO. Fix for 20602, move i2c for LEDs
2017-04-22 16:42:40 +01:00
Martin Budden fdf7d635fa Merge pull request #2917 from sambas/betaflightF7
F7/HAL Fix spi init
2017-04-22 16:42:11 +01:00
Martin Budden 3aefa479d4 Merge pull request #2873 from theseankelly/cf2_bf
Adding target for Crazyflie 2.0 Nanocopter
2017-04-22 16:41:32 +01:00
blckmn d229bacc60 Updates for NERO. Fix for 20602, move i2c for LEDs
Update the config for VCD to populate only 1 interface, and use device class allowing for built in Windows 10 driver.
2017-04-22 22:51:46 +10:00
Sami Korhonen 6ceb35122f F7 Fix spi init 2017-04-22 08:51:50 +03:00
Hydra 9659379e9d BF - Remove unneeded code from crsf.c. 2017-04-21 20:01:07 +01:00
Dominic Clifton c997e634da BF - Fix incorrectly merge conflict resolution. 2017-04-21 19:27:55 +01:00
Michael Keller 40a2bee492 Made float parameter calculation static. 2017-04-21 13:18:23 +12:00
Dominic Clifton 970f193dd7 CF/BF - Extract cli settings so they can be re-used.
CF/BF - Save 1280 bytes of flash and delete over 300 lines of code by
removing giant switch statement and static variables in the CLI.

fix

CF/BF - Remove some conditional code because there is a copy of every PG
so it will always be found*.

* unless a developer makes an error in the value table by specifying an
invalid PG.

CF/BF - Remove final usages of getCurrentAndDefaultConfigs to save more
flash space.

CF/BF - Change CLI command 'dump showdefaults' to simply 'dump defaults'.

* This will save a few bytes of flash space due to string re-use of the
'defaults' string.

CF/BF - Save a few more bytes by re-using the 'defaults' string again.

CF/BF - Fix CLI not being size optimized.

* The file had moved but the makefile was not updated to reflect that.

CF/BF - Add 'fc_init.c' and 'settings.c' to the size optimizations list.

CF/BF - Add some config source files to the size-optimized list.

CF/BF - De-duplicate CR/LF code by using appropriate methods. Promote
additional string re-use.

* This saves quite a lot of space when the file is size optimized, but grows it otherwise.

CF/BF - Further flash savings by removing more CR/LF on the
cliDump/cliDefaultPrintf format strings.

* It turns out that all the format strings ended in CR+LF so they could
all be removed.

CF/BF - Fix LF+CR being used instead of CR+LF for further flash savings.
2017-04-21 12:34:13 +12:00
Michael Keller 63552348c0 Merge pull request #2737 from betaflight/remove-msp-cruft
CF/BF - Remove more MSP cruft
2017-04-21 12:24:57 +12:00
Michael Keller 7a453bf4d1 Merge pull request #2894 from betaflight/vtx-rtc6705-api
Cleanup VTX api for RTC6705 via SPI and SoftSPI and add button support to SPRACINGF3NEO.
2017-04-21 12:16:22 +12:00
Michael Keller c838ab5af8 Merge pull request #2874 from TheAngularity/patch-1
align_board_xxx - only positive values allowed
2017-04-21 11:51:41 +12:00
Hydra 723831b579 SPRACINGF3NEO - Use RTC6705 clk hack.
CF/BF - Fix typo in max7456DmaInProgress.  Always define an
implementation even when there is no TX-DMA.

CF/BF - Ensure that max7456 communication does not disrupt RTC6705
communication when using the same SPI port for both.

CF/BF - Port RTC6705 to use the VTX API.

* Support VTX channel/band/power on OSD for ALL vtx APIs - previously it only supported RTC6705.
* Remove all FEATURE_VTX usage.
* Remove all `#define VTX` usage.

Note that due to the async nature of tramp/smartaudio it's not possible
to know the current band/channel after requesting a change (as the
request hasn't been processed) so it makes no sense to try and save the
config - and on the tramp/smartaudio vtx the vtx maintains it's state.
So on an RTX6705 equipped FC the user should now MANUALLY save the
config using the save config stick position.

CF/BF - Move CMS for RTC6705 into vtx_rtc6705.c for consistency with
other VTX CMS menus.

CF/BF - Update RTC6705 via SOFT SPI to use VTX API.

* Achieved by simply aligning the API at the driver level and removing
all legacy conditional compilation checks.

CF/BF - Use new IO for RTC6705 CLK Hack

CF/BF - Port VTX button from CF v1.x.

Features:
* Channel Cycle
* Band Cycle
* Power Cycle
* Save Settings
* Works with any VTX using VTX API.

CF/BF - Allow support for Internal and External VTX - External takes
precedence when configured.

CF/BF - Fix display of VTX power in CMS.

* Issue occured when CMS was transitioned from integer to list of
strings.

CF/BF - Disable SMARTAUDIO and TRAMP on the SPRacingF3NEO due to flash
size.

CF/BF - Cleanup const usage of bass-by-value parameters.  Cleanup
naming.

CF/BF - Cleanup naming.  Removing noise-words. Improving consistency.

CF/BF - Improve readability by further naming cleanups.

CF/BF - Remove some magic numbers in the RTC6705 VTX code.

CF/BF - Use braces on some procedural macros.

CF/BF - Improve code readability by renaming rtc6705SetChannel to
rtc6705SetBandAndChannel.

CF/BF - Remove editor mishap.

CF/BF - Make the rtc6705Dev variable static.

CF/BF - remove duplicate state variablertc6705Dev_t - vtxDevice_t had
all we needed.  Use brackets on some procedural style macros.  Make all
the vtx vtable static const.

CF/BF - making some declarations const.

CF/BF - Fix vtx_power maximum value (out by one).
2017-04-21 11:49:31 +12:00
Hydra aae589cab8 VTX cleanups from Cleanflight. Also some transitions to use new IO
system for VTX CS pin.  Fix missing VTX CS GPIO pin initialisation.
Ensure VTX CS is set correctly when enabling the VTX module.
Configure VTX module boot delay - 50ms in old code was too slow on some
cold boots.
VTX SPI divisor is now set each time an SPI transfer occurs so that the
VTX module can co-exist on the same SPI bus as other devices - NEO uses
MAX7456 and RTC6705 VTX on the same SPI bus.
2017-04-21 11:49:29 +12:00
Hydra df9114a778 CF/BF - Fix RSSI output via MSP. 2017-04-20 23:10:07 +01:00
Michael Keller 541d77db59 Merge pull request #2902 from mikeller/set_beerotorf4_sdcard_logging_default
Set default logging target for BEEROTORF4 to SD card.
2017-04-20 22:28:50 +12:00
Michael Keller f7f0aa4fb1 Set default logging target for BEEROTORF4 to SD card. 2017-04-20 21:59:08 +12:00
Martin Budden 5c49bfaf0d Removed TELEMETRY_JETIEXBUS for ROM saving 2017-04-19 12:40:50 +01:00
Martin Budden 2603f39ff6 Merge pull request #2900 from martinbudden/bf_omnibus_mag
Disabled AK8963 and AK8975 compasses.
2017-04-18 09:20:19 +01:00
Martin Budden d64367d3d8 Disabled AK8963 and AK8975 compasses. 2017-04-18 09:02:27 +01:00
Martin Budden f67838f1cf Merge pull request #2896 from betaflight/msp-displayport-cli-fix
CF/BF - Fix CLI being spammed with OSD MSP_DISPLAYPORT messages
2017-04-18 08:19:31 +01:00
Martin Budden 1374b24175 Merge pull request #2895 from betaflight/spracingf3-osd
CF/BF - SPRacingF3 Add OSD over MSP for SPRacingF3OSD compatibility
2017-04-18 08:18:58 +01:00
Martin Budden 9032c3cbfd Merge pull request #2877 from TheAngularity/patch-2
fixed blackbox devicelist
2017-04-18 08:16:23 +01:00
Martin Budden 149d945e59 Merge pull request #2875 from flyinglemonfpv/master
Fixed KIWIF4 DSHOT DMA conflict
2017-04-18 08:15:38 +01:00
Martin Budden 940336b12d Merge pull request #2882 from theseankelly/beeper_debug_compile
Fixing debug compile errors due to beeper defines
2017-04-18 08:15:14 +01:00
borisbstyle 45acc4599b Merge pull request #2880 from lazd/issue/2879
Fix configurator DSHOT off-by-one error preventing maximum throttle
2017-04-17 23:38:59 +02:00
borisbstyle 769f72a0a6 Merge pull request #2570 from ethomas999/addHorTiltEffectCmds2
Add horizon_tilt_effect command (2)
2017-04-17 23:37:29 +02:00
Dean Brestel 6b82b803cc Fixed servo cli to process correct arguments. 2017-04-17 22:26:40 +01:00
Hydra ad6dbfee5c CF/BF - Delete unused 'angleAtMin' and 'angleAtMax'. 2017-04-17 22:24:04 +01:00
Hydra 565993a3e8 CF/BF - Fix MSP_SET_SERVO_CONFIGURATION.
In CF 1.x the structure was packed, resulting in a size of 14 bytes.
The servoParam_t is not currently packed, likely due to recent PG group
implementation, so the test for data length in the MSP command fails.
2017-04-17 22:22:17 +01:00
Hydra ce76bf5b8f CF/BF - Fix CLI being spammed with OSD MSP_DISPLAYPORT messages when OSD
over MSP is enabled.
2017-04-17 19:11:15 +01:00
Hydra 228e457ead CF/BF - Prevent 'waiting for fc' message on OSD slave when the osd
statistics page or splash screen is shown.
2017-04-17 18:27:42 +01:00
Hydra 4d70c43c1a CF/BF - SPRACINGF3 - Use slower MSP displayport data rate when disarmed
to prevent configurator stalls.

* Probably the configurator should set the MSP data rate on connect
instead, but this solution works for now.
2017-04-17 18:27:41 +01:00
Hydra 7f21ddf3e4 CF/BF - SPRacingF3 Add OSD over MSP for SPRacingF3OSD compatibility. 2017-04-17 18:27:41 +01:00
Evgeny c072edd280 remap timers, add LED support
Author:    Evgeny <savaga@mail.ru>
Committer: Evgeny <savaga@mail.ru>
2017-04-16 18:07:36 -07:00
Sean Kelly c8fbbaae95 Fixing debug compile errors due to beeper defines 2017-04-13 20:27:14 -07:00
Sean Kelly e25cd28fa1 Fixing debug compile errors due to beeper defines 2017-04-13 20:19:06 -07:00
Larry Davis 06dba20efc Fix DSHOT off-by-one error preventing maximum throttle, closes #2879 2017-04-13 14:29:13 -07:00
TheAngularity f0d07753d3 fixed blackbox devicelist
selecting bb device was broken in configurator ... this solves the problem
2017-04-13 20:14:03 +02:00
MARTINKOWALSKY\Martin Kowalsky 529b89cb67 Fixed KIWIF4 DSHOT DMA conflict 2017-04-13 15:06:57 +02:00
TheAngularity 09cbca2a02 align_board_xxx - only positive values allowed
fixed #2866
2017-04-13 12:35:07 +02:00
Sean Kelly af06c36515 Adding target for Crazyflie 2.0 Nanocopter
- STM32F4-based flight controller
- Onboard NRF51 soc with custom serial rx protocol (Bluetooth or ESB)

Two general changes to Betaflight included:
- Ability to customize MPU I2C address in target.h (MPU6500's address
  can be changed in hardware by holding a pin high)
- Addition of a target-specific serial type. Targets must opt-in in
  their target.h and provide an implementation of the interface to
convert their custom Rx protocol into RawRC for Betaflight
2017-04-12 15:17:32 -07:00
Martin Budden 6f6224cfc3 Improved efficiency of scheduler 2017-04-12 22:47:28 +01:00
Sami Korhonen cf7fc75290 F7 fix N channel pwm and dshot output 2017-04-12 20:50:45 +03:00
Martin Budden 996e8b31d9 Merge pull request #2782 from martinbudden/bf_osd_debug
Added debug fields to OSD
2017-04-12 17:18:18 +01:00
Sami Korhonen 33926aef63 F7 timer dma def bugfix and cleanup 2017-04-12 18:08:53 +03:00
ethomas999 8167892604 Added horizon_tilt_effect command
and horizon_tilt_expert_mode command.
Modified 'calcHorizonLevelStrength()' function.
Changed 'd_level' (D8[PIDLEVEL]) default from 100 to 75
Added horizon static float vars
2017-04-12 10:41:54 -04:00
Martin Budden 2493c214b0 Created subdirectories in drivers directory 2017-04-12 08:06:22 +01:00
Martin Budden a9bb3fb8f6 Merge pull request #2783 from martinbudden/mb_crash_recovery
Added experimental crash detection and recovery
2017-04-12 07:57:52 +01:00
Hydra 3d1e755d66 CF/BF - Temporarily disable virtual current meter on NAZE32. 2017-04-12 00:39:27 +01:00
Hydra 17a430e5f9 CF/BF - Fix missing #ifdef around the virtual current meter settings. 2017-04-12 00:39:27 +01:00
Hydra be063ebbbf CF/BF - Remove usage of USE_FC based on PR discussion decisions. Add
USE_VIRTUAL_CURRENT_METER.
2017-04-12 00:39:27 +01:00
Hydra b4dc3b53f5 CF/BF - Fix more compiler warnings. 2017-04-12 00:39:27 +01:00
Hydra cb34c5b1d7 CF/BF - Further reduce osd slave dependencies on FC code. 2017-04-12 00:39:27 +01:00
Hydra a140aea013 CF/BF - NAZE fix compiler warnings. 2017-04-12 00:39:27 +01:00
Hydra c693f25052 CF/BF - Reduce osd slave dependencies on FC code. 2017-04-12 00:39:27 +01:00
Hydra 2b1dac4c6d CF/BF - First cut of allow building of the OSD SLAVE board without all
the flight controller code.

Likely the dependencies can be further improved.  This is a
minimal-impact solution while there are a lot of other Betaflight PR's
still pending.
2017-04-12 00:39:27 +01:00
Hydra 2ec39de031 CF/BF - Fix compilation of transponder when not using DHSOT or LED_STRIP 2017-04-12 00:37:23 +01:00
Martin Budden 1dc5f88820 Added crash detection and recovery 2017-04-11 22:58:18 +01:00
Martin Budden 37c9d3c47e Improved ITerm windup handling for tricopter 2017-04-11 22:50:03 +01:00
Martin Budden d0475a6987 Merge pull request #2761 from martinbudden/bf_exti_pin
Improved EXTI pin handling
2017-04-11 22:32:52 +01:00
Martin Budden cf781ba825 Merge pull request #2863 from martinbudden/bf_simulator_tidy
Code tidy
2017-04-11 22:25:26 +01:00
Martin Budden 63b7f18a00 Merge pull request #2649 from martinbudden/bf_cli_sensors
Optimised sensor lookup tables in cli to save ROM
2017-04-11 22:23:36 +01:00
Martin Budden 152c594151 Code tidy 2017-04-11 19:05:54 +01:00
Martin Budden 3a672c82e8 Merge pull request #2849 from martinbudden/bf_fake_accgyro_locks
Added locking to fake gyro and acc
2017-04-11 19:05:00 +01:00
Michael Keller d4167a03df Merge pull request #2855 from Faduf/master
I2C support removed and non used defined removed
2017-04-11 21:10:45 +12:00
Michael Keller 2302d30c14 Merge pull request #2858 from flyinglemonfpv/master
Fixed KIWI V2 LED strip issue
2017-04-11 10:24:01 +12:00
MARTINKOWALSKY\Martin Kowalsky f8ea32d981 Fixed KIWI V2 LED strip issue 2017-04-11 00:11:58 +02:00
Michael Jakob 4e38437d11 STM32F722 UID fix 2017-04-10 23:47:02 +02:00
Faduf aa827b6378 I2C support removed and non used defined removed 2017-04-10 19:16:55 +02:00
Martin Budden 0219d6adc7 Updated accgyro locking. Printf tidy 2017-04-10 14:54:25 +01:00
Martin Budden 8eebf06753 Added locking to fake gyro and acc 2017-04-10 14:39:10 +01:00
Michael Keller e66b74579b Changed CLI variables to use a union. Some build fixes. 2017-04-10 19:12:41 +12:00
Michael Keller 9c29475ba4 Changed float parameters to int16 in 'cli.c'.
Fixed buffer length used for 'ftoa'.

Got rid of magic numbers, replaced 'digitalIdlePercent' with 'digitalIdleValue'.
2017-04-10 13:11:01 +12:00
Michael Keller ce8c5fbd79 Merge pull request #2760 from mikeller/reworked_altitude_estimation
Reworked altitude estimation. Made it work when ACC is disabled.
2017-04-10 13:00:16 +12:00
Michael Keller 572c5762d5 Merge pull request #2847 from wind0r/clean_cli
remove double featureConfigCopy
2017-04-10 11:50:16 +12:00
Michael Keller 396388bf84 Updated / simplified some calculations. 2017-04-10 10:57:19 +12:00
Michael Keller 9204d0a34e Fixed conditionals for SPEKTRUM_BIND_PIN. 2017-04-10 09:55:40 +12:00
Steffen Windoffer 9955271e3c remove double featureConfigCopy 2017-04-09 20:22:48 +02:00
Hydra 9bb0e30f1f CF/BF - Reinstate boardType from CF v1.x to allow detection of OSD slave
boards by the configurator.
2017-04-09 14:17:59 +01:00
Hydra 0f7a986003 CF/BF - Allow OSD slave to be configured.
This highlights the face that MSP_SET_OSD_CONFIG is ill-conceived.  See
Cleanflight v1.x where multiple commands are used - one for video config
and one for element config.

In light of other recent changes it's possible a 3rd command is needed,
for unit selection and alarms.
2017-04-09 14:17:58 +01:00
Hydra ba75dc4f1d CF/BF - SPRacingF3OSD - Allow cli and bootloader again. 2017-04-09 14:17:58 +01:00
Hydra b307007ac3 CF/BF - Improve performance of mspSerialPush / MSP_DISPLAYPORT.
* avoiding the use of an unncessesary buffer and memcopy
* the `pushBuf` was a fixed size
* the size didn't correlate to the size of the buffer being passed in.
* avoids repeating the memcpy for each port being used for MSP.
* reduces ram usage.
2017-04-09 14:17:58 +01:00
Hydra ca5bafeab9 CF/BF - SPRACINGF3OSD initial target support inc support for OSD SLAVE via MSP_DISPLAYPORT.
OSD is tested and working on an SPRACINGF3EVO stacked with an SPRACINGF3OSD.
2017-04-09 14:17:17 +01:00
Hydra 73e46e9050 CF/BF - fix CMS compilation when blackbox is disabled. 2017-04-09 14:11:56 +01:00
Hydra 722523df31 CF/BF - Allow OSD to be compiled without blackbox. 2017-04-09 13:48:47 +01:00
Hydra 4653cfd4ad CF/BF - Reduce flash usage by re-using a couple of strings. 2017-04-09 13:48:19 +01:00
Hydra 18454ad705 CF/BF - Reduce flash usage by cleaning up serializeBoxNamesReply. 2017-04-09 13:48:19 +01:00
Hydra 297f362257 CF/BF - Reduce flash usage of cliSerialPassthrough.
Minimize string duplication, be less verbose, use shorter words, avoid
duplicate id parameter code.
2017-04-09 13:48:04 +01:00
Michael Keller 53edcba0d8 Merge pull request #2841 from cs8425/SITL-fix
SITL: some fix & should be usable
2017-04-09 23:08:19 +12:00
Cyril Jaquier a7e5c4cf0c Add crosshairs to CMS 2017-04-09 09:50:29 +02:00
Cyril Jaquier af9e6a94b0 Make crosshairs visible even if accel is disabled 2017-04-09 09:50:29 +02:00
cs8425 efbb7520a8 some fix & should be usable
use quaternion directly & we can fly in 3D mode now

rename uartPort_t to tcpPort_t

fix race on ACC, GYRO, IMU

fix gyro scale & disable SystemLoad calculate

update README.md

remove some unused

fix scale on 3D mode
2017-04-09 10:58:01 +08:00
mikeller 6a03b48e7f Reworked altitude estimation. Made it work when ACC is disabled. 2017-04-08 22:54:44 +12:00
Michael Keller 9053feb418 Merge pull request #2834 from mikeller/make_scale_range_direction_agnostic
Made 'scaleRange' agnostic to order of ranges.
2017-04-08 22:50:37 +12:00
Michael Keller 9c27f66bbd Merge pull request #2827 from mikeller/readd_serialrx_default_uart_setting
Re-added setting of serialRx default UART from 'SERIALRX_UART'.
2017-04-08 22:50:01 +12:00
jflyper b10412ac9b Tidy 2017-04-07 18:04:56 +09:00
Michael Keller edc44bd830 Made 'scaleRange' agnostic to order of ranges. 2017-04-07 18:39:57 +12:00
Michael Keller d6de0c9e24 Merge pull request #2831 from mikeller/fix_dump_diff_showdefaults
Fixed 'showdefaults' option for CLI 'dump' / 'diff'.
2017-04-07 18:28:01 +12:00
jflyper f15d5dd12c More strict stick commands 2017-04-07 12:54:37 +09:00
Michael Keller f2c17e6a34 Merge pull request #2832 from mikeller/gps_fix_from_cleanflight
Merge pull request #2699 from McGiverGim/make-gps-stable-again
2017-04-07 12:00:28 +12:00
Michael Keller 3dc4a9378b Merge pull request #2824 from mikeller/add_reverse_scale_range_tests
Added tests for reversed ranges with 'scaleRange'.
2017-04-07 11:54:45 +12:00
Dominic Clifton 181b0eb078 Merge pull request #2699 from McGiverGim/make-gps-stable-again
Make the GPS stable again
2017-04-07 11:50:19 +12:00
Michael Keller e84cbe5fb5 Merge pull request #2818 from mikeller/use_permanent_mode_ids_in_cli
Changed CLI to use permanent mode ids.
2017-04-07 09:06:35 +12:00
Michael Keller 6b008ee971 Merge pull request #2757 from Faduf/BeeperPwm
Buzzer PWM
2017-04-07 09:05:45 +12:00
jflyper 602b656b01 Refactor CMS
- Introduce 'page'
- Handle more than 2 pages correctly
2017-04-07 05:15:27 +09:00
Michael Keller b48db968ff Added tests for reversed ranges with 'scaleRange'. 2017-04-07 00:36:49 +12:00
mikeller 2afc011b16 Fixed 'showdefaults' option for CLI 'dump' / 'diff'. 2017-04-07 00:19:51 +12:00
Anders Hoglund 073364a285 junittest xml output was lost, fixed. 2017-04-06 01:38:24 +02:00
Michael Keller 8a7241f6cb Changed CLI to use permanent mode ids. 2017-04-06 10:21:07 +12:00
Michael Keller bd2fc2c5f8 Re-added setting of serialRx default UART from 'SERIALRX_UART'. 2017-04-06 09:49:52 +12:00
Michael Keller e555f0ddab Merge pull request #2822 from manors/tidy-scaleRange
Tidy scaleRange code
2017-04-06 08:25:42 +12:00
Manors 6a87a6c40d Add test code for scaleRange 2017-04-06 02:52:45 +08:00
Manors 70101693bc Tidy scaleRange code 2017-04-06 00:45:44 +08:00
borisbstyle 99c87ba2dc merge 3.1.7 defaults 2017-04-05 15:36:52 +02:00
borisbstyle 6899c66a05 Add anti gravity as feature and mode
3.1.7 mergebacks
2017-04-05 15:27:52 +02:00
borisbstyle d8f03693f7 Disable Airmode fully when airmode not active // Adjust default setpoints / pids 2017-04-05 14:57:12 +02:00
cs8425 120fa21693 implement SITL in gazebosim with ArduCopterPlugin
need implement fake eeprom & fake IO

need implement fake system function

can compile, stuck in isEEPROMContentValid()

EEPROM in memory work

EEPROM as file should work

fix some complie warning

MSP over TCP work (add dyad.c)

a little clean up

fix FLASH_CONFIG_Size in ld script & implement some pwmout

IO to simulator work!! need to check direction & scale!!

can fly but Gyro buggy

move dyad.c

fix busy-loop (limit to max 20kHz)

can simulatie in different speed now! (hard code)

add option for IMU calculation

add README.md

move dyad.c and fix F3 overrun the flash size

explanation SITL in README.md and reuse CFLAGS, ASFLAGS
2017-04-05 18:22:59 +08:00
Michael Keller c2307a4bea Merge pull request #2814 from mikeller/increase_gps_task_frequency
Increased GPS task frequency to 100Hz to prevent serial buffer overflows.
2017-04-04 23:54:58 +12:00
borisbstyle 6a1f96b237 Merge pull request #2807 from martinbudden/bf_uncommon_mixers
Disable uncommon mixers for ROM saving
2017-04-04 09:07:11 +02:00
Michael Keller 5ff8ae9628 Increased GPS task frequency to 100Hz to prevent serial buffer overflows. 2017-04-04 12:24:19 +12:00
Michael Keller a03bd7077e Merge pull request #2810 from flyinglemonfpv/master
Fixed KIWI/PLUM sbus issues, added KIWIV2 target
2017-04-04 11:07:35 +12:00
Magnus Ivarsson e88e251df9 major refactor of the unit test makefile
- Specify source files in variables instead of manually writing
   the make file rules, this removes a lot of duplication
 - Use separate folders for all tests allowing for tests and common
   source files to be built with different settings (defines)
2017-04-04 00:06:56 +02:00
borisbstyle e1c4b5cc2d Revert "Remove GPS for FURYF3"
This reverts commit 02b8204fb1.
2017-04-03 22:27:50 +02:00
borisbstyle 4d63ee598e Add anti gravity feature to cli 2017-04-03 22:19:27 +02:00
borisbstyle 7cce36386f Merge branch 'patch_v3.1.7' of https://github.com/betaflight/betaflight into patch_v3.1.7 2017-04-03 22:13:25 +02:00
Martin Budden a3beebea19 Disable uncommon mixers for ROM saving 2017-04-03 22:12:19 +02:00
Martin Budden 149ed180f6 Merge pull request #2800 from jflyper/bfdef-cms-resurrect-display-cycling
[CMS] Resurrect display cycling
2017-04-03 20:52:30 +01:00
Martin Budden cad16aa26c Merge pull request #2808 from unitware/bf-test-dependencies
handle dependencies in unit tests
2017-04-03 20:51:02 +01:00
Martin Budden c9fd4ec428 Merge pull request #2790 from unitware/bf-test-verbosity
control build verbosity for the unit tests
2017-04-03 20:46:59 +01:00
flyinglemonfpv d7e0917a4f Fixed KIWI/PLUM sbus issues, added KIWIV2 target 2017-04-03 16:33:26 +02:00
Anders Hoglund 34f5f25c8a Disable i2c on CC3D flexiport, fixes the problem with MSP on UART3 not working. 2017-04-03 13:11:04 +02:00
Magnus Ivarsson 27059bdfd8 handle dependencies in unit tests 2017-04-03 13:10:55 +02:00
Martin Budden f24865d9a0 Disable uncommon mixers for ROM saving 2017-04-03 10:59:46 +01:00
borisbstyle ba995ac52b Merge branch 'patch_v3.1.7' of https://github.com/betaflight/betaflight into patch_v3.1.7 2017-04-03 00:48:03 +02:00