1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-18 22:05:17 +03:00
Commit graph

800 commits

Author SHA1 Message Date
Michael Keller
60bce27e66
Merge pull request #4516 from DanNixon/fix_3d_arm_checks
Improve 3D arming checks
2017-11-11 11:24:44 +13:00
Michael Keller
364afcbf25
Merge pull request #4521 from martinbudden/bf_cms_onglobalexit
Remove almost entirely unused CMS ononGlobalExit function
2017-11-10 10:35:13 +13:00
Michael Keller
b90f7bd88e
Merge pull request #4520 from martinbudden/bf_cms_guards
Removed CMS menu guards when not debugging
2017-11-10 10:34:43 +13:00
Michael Keller
39727ce384
Merge pull request #4455 from codecae/vtx_settings_pg_rework
Move vtxSettingsConfig to vtx_common.  Rework MSP_SET_VTX_CONFIG and CMS.
2017-11-10 08:14:36 +13:00
Martin Budden
243e8390a2 Removed CMS menu guards when not debugging 2017-11-09 19:09:17 +00:00
Martin Budden
9a9884e4af Remove almost entirely unused CMS ononGlobalExit function 2017-11-09 19:06:25 +00:00
Dan Nixon
c97fbd04b8 Fix 3D arming checks when using switched 3D mode
When FEATURE_3D is on and BOX3DONASWITCH is configured the "standard"
throttle arming condition is used.
2017-11-08 20:14:07 +00:00
Dan Nixon
0315005445 Fix 3D arming checks for BOX3DDISABLE
When FEATURE_3D is on and BOX3DDISABLE is on then the normal throttle
arming check is performed.

When FEATURE_3D is on and BOX3DDISABLE is off then the reduced 3D
throttle arming check is performed.
2017-11-08 20:14:07 +00:00
Dan Nixon
eadcf42650 Fix 3D arming checks for throttle value
When FEATURE_3D is on the arm switch does not need to be toggled when
the throttle returns to a valid value (i.e. in the 3D deadband) from
either direction.

This allows the previous "arm and slowly raise throttle" arming
behaviour for 3D flight.
2017-11-08 20:14:00 +00:00
Unknown
d9caabefa1 Removed vtx_settings_config in favor of vtx_common. Removed implicit EEPROM writes for vtx_ changes.
Updated MSP_VTX_CONFIG

Updated MSP_SET_VTX_CONFIG

Updated MSP_VTX_CONFIG (again)

Implemented VTX update schedule

Removed unneeded initialization blocks from io/vtx implementations

Prevent VTX settings from being applied in CLI. Sync Band/Chan/Freq on init

Correct issues in SA CMS

Moved vtxCommonInit and vtxCommonProcess to io/vtx
2017-11-08 10:28:09 -05:00
Michael Keller
037313f995
Merge pull request #3898 from jflyper/bfdev-configurable-adc
Configurable ADC
2017-11-07 22:39:18 +13:00
jflyper
7a57468c8c Configurable ADC 2017-11-07 17:50:45 +09:00
mikeller
b78d8ad83e Converted more 'feature' type defines to use the 'USE_<x>' convention: LED_STRIP TARGET_CONFIG BRUSHED_ESC_AUTODETECT SERIAL_RX TELEMETRY TELEMETRY_CRSF TELEMETRY_FRSKY TELEMETRY_HOTT TELEMETRY_IBUS TELEMETRY_JETIEXBUS TELEMETRY_LTM TELEMETRY_MAVLINK TELEMETRY_SMARTPORT TELEMETRY_SRXL TELEMETRY_NRF24_LTM TELEMETRY_LTM SPEKTRUM_BIND NAV BUTTONS 2017-11-07 18:49:12 +13:00
mikeller
10557b81ee Cleaned up 'undef' after move to 'USE_<x>'. 2017-11-05 10:53:37 +13:00
mikeller
a8d34dabb0 Changed defines for GYRO/ACC/MAG/BARO/GPS/SONAR/OSD/BLACKBOX/CMS to conform to the USE_ convention. 2017-11-05 10:15:24 +13:00
Dan Nixon
6621ed9818 Allow OSD warnings to be toggled 2017-10-29 10:10:29 +00:00
Miguel Angel Mulero Martinez
dadedd059f Show stats only if enabled
If no enabled stat to show, don't show the stats page in the OSD
2017-10-24 10:14:15 +02:00
Curtis Bangert
97f173dfbb Tuned CRSF rx and telemetry 2017-10-21 19:34:32 -04:00
Michael Keller
8d1a90b999 Merge pull request #4251 from allenfor2017/add-runcam-device-protocol
Add RunCam Device Protocol Support(DisplayPort, DeviceSetting Access,…
2017-10-20 13:02:16 +13:00
allenyan
4df1084d1d Add RunCam Device Protocol Support(DisplayPort, DeviceSetting Access, 5 key osd cable simulation) 2017-10-19 16:19:27 +08:00
Blaine
9556ea6bf5 Squash and rebase 2017-10-18 00:38:13 -07:00
Michael Jakob
60b8e0f05e Configurable compass drivers based on jflyper's PR #3613
Eliminate static variables in mag drivers
AK8975 and HMC5883l driver cleanup
replace magic numbers with definitions
Switched AK8963/Ak8975 to 16 bit mode
Update Mag gain calculations to use integer varables (ledvinap
recomendation)
Update interrupt handling for HMC5883L
Reschedule compass task only if slave mode is realy active
Change bustye definitions to an enumeration set
Fix dispatch functions and remove redundant dispatch functions from Baro
and Mag drivers 
Fix unittest
2017-10-17 22:22:11 +02:00
azolyoung
eaca2ed157 fix toggle wi-fi will cause rcsplit turnoff 2017-10-15 14:24:32 +08:00
Michael Keller
7d671cc998 Merge pull request #4112 from DanNixon/anti_turtle_mode_warnings
Anti turtle mode warnings
2017-10-12 00:07:21 +13:00
Michael Keller
a7deb8b899 Merge pull request #3799 from adrianmiriuta/HEADFREE_MAG
HEADFREE true 3D (second edition)...
2017-10-12 00:01:23 +13:00
Dan Nixon
3aeef39b5a Add OSD and beeper warnings for anti turtle mode 2017-10-10 08:20:56 +01:00
Martin Budden
e7bee05005 Merge pull request #4210 from codecae/msp_shared_ringbuffer
Improved msp frame handling for CRSF
2017-10-09 15:05:56 +01:00
Curtis Bangert
4fd948cb24 Created buffer for msp frames and improved msp over telemetry performance for CRSF. 2017-10-09 08:52:16 -04:00
Martin Budden
6e025aeba6 Merge pull request #4230 from martinbudden/bf_rc_split_tidy
RC Split tidy
2017-10-09 13:12:51 +01:00
Michael Keller
610053b299 Merge pull request #4286 from mikeller/de-duplicate-os-detection
From Cleanflight: De-duplicate OS detection in test Makefile.
2017-10-10 00:41:14 +13:00
Dominic Clifton
36d0d7bc8f Merge pull request #2954 from cleanflight/de-duplicate-os-detection
CF/BF - De-duplicate OS detection in test Makefile.
2017-10-05 20:36:42 +13:00
Curtis Bangert
99f02ffdd0 Added conditions to test for accelerometer configuration before sending telemetry 2017-10-04 13:38:32 -04:00
Petr Ledvina
acedb4676d Add -flocks only to clang 2017-09-27 14:29:37 +02:00
Petr Ledvina
f564cdf952 Fix atomic in unittests (#4240)
Add unittest support for ATOMIC_BLOCK

- BASEPRI emulation on UNIT_TEST target
- documentation cleanup / fixed missspelings
- ATOMIC_BARRIER implemented for CLang, using blocks
- ATOMIC_BARRIER is using macros to separate barriers

gcc specific unittest for ATOMIC_BARRIER

ATOMIC_BARRIER clang unittest

quick hack to enable CLangs -flocks + ATOMIC_BARRIER tests
Needs cleanup

* Enable test

* Add libBlocksRuntime dependency to Travis
2017-09-27 13:12:37 +01:00
jirif
cbefe71a73 Fast stick commands (#4208)
Implemented time-based stick command handling
2017-09-26 13:36:54 +03:00
Martin Budden
170e2f5c07 Fixed test code 2017-09-25 07:58:30 +01:00
Adrian Miriuta
7146c40ca8 HEADFREE true 3D (second edition)...
reduced memory footprint ...
	rebased squashed cleanup
2017-09-23 07:35:30 +02:00
Martin Budden
287a45659d CRSF code tidy 2017-09-20 11:48:43 +01:00
mikeller
860ec23fbe Fixed check for halfduplex mode in CRSF. 2017-09-19 01:43:55 +12:00
Michael Keller
ce824a60d6 Fixed mixer for 3D / Dshot. (#4161) 2017-09-17 15:45:39 +01:00
Curtis Bangert
5ccd39843d Reset msp handling upon receipt of new incoming frames in msp_shared 2017-09-10 15:55:05 -04:00
Martin Budden
9b0e0a4f20 Merge pull request #4116 from DanNixon/osd_power_formatting
OSD power formatting
2017-09-10 17:25:32 +01:00
Martin Budden
0b17f44841 Merge pull request #4117 from mikeller/restore_smartport_msp_frame_handling
Restored SmartPort MSP frame handling to how it was before the addition of MSP over CRSF.
2017-09-10 17:24:15 +01:00
mikeller
aa1edbd978 Restored SmartPort MSP frame handling to how it was before the addition of MSP over CRSF. 2017-09-11 04:01:52 +12:00
mikeller
3bce54186c Disabled MSP over telemetry for F1, re-enabled SERVOS. 2017-09-11 03:44:55 +12:00
Dan Nixon
3013229918 Left pad OSD electrical power readout 2017-09-10 15:23:01 +01:00
Dan Nixon
8a1ba09ee8 Test rendering of existing OSD power element 2017-09-10 15:20:11 +01:00
Curtis Bangert
863b24ae6a Corrected smartport regression issue with msp_shared
Corrected condition where an extra padded zero was added to outgoing msp buffers.
Whitespace tidy and removal of unnecessary condition.
Commented OSD and CMS from STM32F3DISCOVERY target.h
Various improvements to msp_shared (removed byte loops, point arithmetic)
Raised schedule priority of CRSF device and MSP calls
Reworked buffers in msp_shared to enable writes.
Moved msp buffers to msp_shared
Added new custom frames and reworking msp implementation
Implemented CRSF device info reply
Adding crsf ping/pong device info functionality
Changed Colibri FC address to Betaflight address
Implementing MSP in CRSF Telemetry
Decoupled msp functionality from smartport into msp_shared
Moved USE_SERVOS to FLASH>128 per mikeller
2017-09-10 01:36:59 -04:00
Andrey Mironov
cd23e77031 Merge pull request #4012 from wind0r/fix_crsf_mAh
fix crsf mah telemetry
2017-09-08 21:58:29 +03:00
Steffen Windoffer
1d3a2f253e fix crsf mah telemetry 2017-09-04 19:45:19 +02:00