1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 04:45:24 +03:00
Commit graph

8316 commits

Author SHA1 Message Date
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
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
40a2bee492 Made float parameter calculation static. 2017-04-21 13:18:23 +12: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