Commit Graph

8272 Commits

Author SHA1 Message Date
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
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
Martin Budden 79ec04f07f Merge pull request #2869 from sambas/betaflightF7
F7 timer def bugfix and cleanup
2017-04-12 16:54:02 +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 2224347cbe Merge pull request #2830 from martinbudden/bf_directories
Created subdirectories in drivers directory
2017-04-12 09:16:36 +01: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
Martin Budden 094567da68 Merge pull request #2862 from betaflight/osd-slave-build
CF/BF - OSD Slave build system
2017-04-12 07:29:36 +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