Commit Graph

6464 Commits

Author SHA1 Message Date
Martin Budden 76a9a9f3fb Merge pull request #3068 from blckmn/timer_upd
Simplified getting timerClock
2017-05-11 17:17:36 +01:00
Michael Keller 0d136b6f9c Merge pull request #3069 from MATEKSYS/mateksys
Add MATEKF405 target
2017-05-12 02:32:37 +12:00
rav d9909b91d3 enable frequency analysis and automatic, dynamic changing of notch filter frequencies
change F3 from CM1 to CM4
add debug flags for FFT
add bandpass filter
add different filtering apply function
add feature DYNAMIC_FILTER
replace mode GTUNE with DYNAMIC FILTER
move gyro frequency analysis into gyro loop instead of own task
2017-05-11 16:10:29 +02:00
Anders Höglund f55077673d Merge pull request #3071 from kmitchel/fix_revolt_uart4_warning
Fix serial port count for REVOLT target.
2017-05-11 12:56:37 +02:00
kmitchel ca31c1ce89 Update target.h
Fix serial port count for REVOLT target.
2017-05-11 06:24:39 -04:00
easyco aec33b8a7d Add MATEKF405 target 2017-05-11 13:19:44 +08:00
easyco 5678b5ec27 Add target MATEKF405 2017-05-11 13:02:57 +08:00
blckmn 0d13736e2f Simplified getting timerClock 2017-05-11 13:17:58 +10:00
Michael Keller 681b5e79b6 Merge pull request #3066 from kmitchel/revolt_uart4
Add uart4 support to REVOLT target.
2017-05-11 15:06:21 +12:00
kmitchel f2cab20e95 Update target.h
Make changes recommended by mikeller.
2017-05-10 22:55:48 -04:00
Michael Keller 4ee7a330d6 Merge pull request #3054 from jflyper/bfdev-refactor-uartOpen-serialUART
Remove reference to USARTx in io layer, refactor uart_open and serialUART
2017-05-11 14:35:15 +12:00
kmitchel 65fdd805e3 Update target.h
Add uart4.
2017-05-10 22:27:51 -04:00
Rodrigo Pérez 01912dc0ba Rename OSD SW to OSD DISABLE SW 2017-05-10 23:08:11 -03:00
jflyper 0cf5161ec4 Remove reference to USART_TypeDef in io, refactor uartOpen and serialUART 2017-05-11 09:59:43 +09:00
Faduf 2947a0fe91 Add of specific config for YuPiF4 targets 2017-05-10 20:36:36 +02:00
nathan b6e6045593 [omnibusf7] new target 2017-05-09 20:11:27 -07:00
Michael Keller a987285ef7 Fixed current meter default, removed 'BOARD_HAS_VOLTAGE_DIVIDER', 'BOARD_HAS_CURRENT_SENSOR'. 2017-05-10 07:38:30 +12:00
Martin Budden 04967e9f39 Merge pull request #3047 from martinbudden/bf_gyro_variable_renames
Minor variable renames in gyro sensor
2017-05-08 08:37:16 +01:00
Martin Budden 6d72117b8d Minor variable renames in gyro sensor 2017-05-08 08:12:53 +01:00
Martin Budden ebbfda2f6c Merge pull request #3017 from rav-rav/sharper_rc_response
Sharper rc response / ninja-mode
2017-05-08 08:03:21 +01:00
Martin Budden 2c5deb8198 Merge pull request #3044 from martinbudden/bf_dual_gyro
Further work on multiple gyro support
2017-05-08 08:01:21 +01:00
Martin Budden 9905186d09 Merge pull request #3019 from martinbudden/bf_pid_array_rearrange
Rearrange PID array to be array of PIDs
2017-05-08 08:00:08 +01:00
Martin Budden 6f5c1e9aca Moved softfilter state items into a union 2017-05-08 07:50:08 +01:00
Martin Budden 4be1e31d01 Further work on multiple gyro support 2017-05-08 07:02:45 +01:00
Martin Budden a518531c3f Merge pull request #3045 from martinbudden/bf_accgyro_fnptr_rename
Add Fn suffix to accgyro function pointers
2017-05-08 06:55:13 +01:00
jflyper f33a661fa7 Remove merge artifact 2017-05-08 10:54:45 +09:00
Martin Budden 83d49e503e Add Fn suffix to accgyro function pointers 2017-05-07 23:21:44 +01:00
miskol 81cfb631cc Add LUMBAF3 target 2017-05-07 23:12:12 +08:00
jflyper 4b80bceb1f Rebased on to master 2017-05-07 22:26:47 +09:00
jflyper 34ac92c1de Prepare for #3015 merge 2017-05-07 22:23:29 +09:00
Martin Budden b60662325c Merge pull request #3040 from martinbudden/bf_spracingf4evo_tidy
Tidy SPRACINGF4EVO config.c
2017-05-07 08:43:31 +01:00
Sami Korhonen 2cd959db69 Update AnyFC targets 2017-05-07 10:12:23 +03:00
Martin Budden a029f37fa1 Tidy SPRACINGF4EVO config.c 2017-05-07 07:32:09 +01:00
Michael Keller 0c2baad5fc Merge pull request #3026 from bnn1044/CLRACINGF7
ADD CLRACINGF7 TARGET
2017-05-07 16:12:37 +12:00
jflyper 2b1308a556 Merge remote-tracking branch 'betaflight/master' into bfdev-fix-softserial-f7 2017-05-07 12:12:10 +09:00
Dan Nixon 3b353ae948 Allow toggling items on BFOSD stats screen 2017-05-06 20:40:43 +01:00
Martin Budden 4e0d810fff Fix to fixedwing_althold_reversed in CLI 2017-05-06 16:02:17 +01:00
Sami Korhonen 5214f4bdec Rename HAL dshot file and cleanup 2017-05-06 13:37:27 +03:00
Martin Budden 71546410de Rearrange PID array to be array of PIDs 2017-05-06 11:06:47 +01:00
Martin Budden a50192f71c Merge pull request #3021 from martinbudden/bf_altitude
Altitude tidy
2017-05-06 11:03:26 +01:00
Sami Korhonen f219852888 HAL ledstrip N channel support 2017-05-06 12:37:39 +03:00
Martin Budden 3840be09a7 Altitude tidy 2017-05-06 10:29:37 +01:00
Sami Korhonen 1456447e2e Refix F7 timerdef 2017-05-06 08:44:44 +03:00
Cheng Lin 1190482469 ADD CLRACINGF7 2017-05-06 00:04:13 -04:00
johnty cb05656206 fixed left servo pitch contribution for servoMixerBI 2017-05-05 23:43:13 -04:00
J Blackman f5d226d62f Merge pull request #2767 from jflyper/bfdev-airbotf4sd-add-led
AIRBOTF4SD Add PB6 as LED strip (with pad)
2017-05-06 13:27:25 +10:00
J Blackman 0a37e76a37 Merge pull request #2922 from jflyper/bfdev-fix-resource-command-output
Fix resource command outputs
2017-05-06 13:26:53 +10:00
J Blackman eb2c36ef5e Merge pull request #3024 from 4712betaflight/4way-If_v3.1.7
added support for BLHeli32
2017-05-06 13:26:08 +10:00
J Blackman 60d7bd27aa Merge pull request #3015 from jflyper/bfdev-fix-SERIAL_PORT_IDENTIFIER_TO_xxx
Fix semantically incorrect macro name
2017-05-06 13:25:03 +10:00
J Blackman 15ac9f9d50 Merge pull request #3002 from jflyper/bfdev-smartaudiov1-fix-2
Support SmartAudio V1
2017-05-06 13:24:00 +10:00
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