Commit Graph

8127 Commits

Author SHA1 Message Date
Nathan 64625965ed Merge pull request #2892 from savaga/led-support
remap timers, add LED support
2017-04-22 21:38:30 -07: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
Martin Budden de7e81918c Merge pull request #2915 from betaflight/fix-merges-1
BF - Fix incorrectly merge conflict resolution.
2017-04-21 22:41:37 +01: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 df4b09e874 Merge pull request #2912 from betaflight/cli-cleanup-1
CLI Cleanup from Cleanflight - code size reductions
2017-04-21 12:53:19 +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
Michael Keller 31030dd29d Merge pull request #2911 from betaflight/fix-rssi-via-msp
CF/BF - Fix RSSI output via MSP.
2017-04-21 11:46:56 +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 7546e76c9c Merge pull request #2903 from martinbudden/bf_omnibus_rom
Removed TELEMETRY_JETIEXBUS for ROM saving
2017-04-19 12:55:43 +01: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
borisbstyle 9ab02f1d38 Merge pull request #2870 from sambas/betaflightF7
F7 fix N channel pwm and dshot output
2017-04-13 00:19:19 +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
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
Martin Budden 79ec04f07f Merge pull request #2869 from sambas/betaflightF7
F7 timer def bugfix and cleanup
2017-04-12 16:54:02 +01:00