1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 12:55:19 +03:00
Commit graph

131 commits

Author SHA1 Message Date
jflyper
bf11921dc0
Merge pull request #5285 from jflyper/bfdev-convert-beeper-to-USE_-scheme
BEEPER Conversion to use USE_ scheme
2018-03-03 23:22:56 +09:00
Hydra
2c12a8fe52 CF/BF - Fix 'unused variable disableRunawayTakeoff' warning when
building CJMCU.
2018-03-03 01:34:01 +01:00
jflyper
ea0db878bf Convert to USE_ scheme 2018-03-02 22:29:40 +09:00
Bruce Luckcuck
84db8ef3fc Removed duplicate legacy gyro_lpf validation from msp.c
Additional validation in msp.c was resetting the gyro and pid denoms incorrectly under the assumption that any non-zero gyro_lpf value means the gyro is in 1KHz refresh rate.  The correct validation is already been performed by fc/config.c so the extra legacy validtions are not needed.
2018-02-20 14:38:28 -05:00
Bruce Luckcuck
17aeaa3ee0 Runaway Takeoff Prevention - temporarily disable during configurator bench testing
Temporarily disables Runaway Takeoff Prevention when the `ARMING_DISABLED_MSP` flag is cleared in the configurator by switching the safety switch on the motors tab.  Allows bench testing the motors and flight controller response without triggering a runaway takeoff auto-disarm.

Requires coordination with the configurator to pass an extra runaway takeoff temporary disable flag with the MSP_ARMING_DISABLE msp command.
2018-02-14 09:09:30 -05:00
Bruce Luckcuck
076ad942e4 Disarm when configurator sets ARMING_DISABLED_MSP arming disabled flag
Addresses an edge case where the user could turn on the safety switch (on motors tab), arm and spin the motors, and then turn off the safety switch (without disarming first).  In this scenario the motors would keep spinning even though the ARMING_DISABLED_MSP arming disabled flag would be set.

This change checks the arming state and disarms when the configurator sets the ARMING_DISABLED_MSP flag.
2018-02-13 09:51:50 -05:00
Michael Keller
8738e7d623
Merge pull request #5092 from etracer65/airmode_activate_3d_fix
Change airmode activation to be throttle percent based to fix 3D mode
2018-02-02 02:59:14 +13:00
Michael Keller
666c2980e9
Merge pull request #5000 from martinbudden/bfa_vtx_tidy
Corrected VTX vtables to not use static device handle
2018-02-02 01:16:54 +13:00
Michael Keller
2fef637905
Merge pull request #5089 from basdelfos/msp-changes-bfc
BF 3.3 configurator changes
2018-02-02 00:51:45 +13:00
Bruce Luckcuck
bed1c03f70 Airmode 3D activation fix requested changes
Formatting changes and correction to update the PG version.
2018-02-01 06:50:11 -05:00
Martin Budden
e2683cd2dc Corrected VTX vtables to not use static device handle 2018-02-01 11:15:07 +00:00
Bruce Luckcuck
003979a2eb Change airmode activation to be throttle percent based to fix 3D mode
The previous logic used an absolute throttle value of 1350us which won't work in 3D mode and resulted in airmode being activated on arming.  Renamed the parameter to airmode_start_throttle_percent and set the default to 32 (equivalent to what the previous setting of 1350 when min_check is taken into account).

To preserve MSP functionality the value is transformed to/from microsecond values (32 becomes 1320) when interfaced.
2018-01-31 22:40:56 -05:00
Bas Delfos
40b6bda25e Added remaining bytes check 2018-01-31 23:29:26 +01:00
Bas Delfos
ff68f0da0d Added DSHOT beacon config to MSP_(SET_)BEEPER 2018-01-31 23:12:08 +01:00
Steffen Windoffer
45a6588eaf remove setting which disallow disarming on throttle above low 2018-01-30 23:48:54 +01:00
Martin Budden
e7cac0e9c6 Always use arming disable flag names 2018-01-21 14:15:49 +00:00
mikeller
ee65eba88d Added selectable RaceFlight rates. 2018-01-19 00:38:14 +13:00
mikeller
385623bd9d Converted defines for VTX_COMMON, VTX_CONTROL, VTX_RTC6705, VTX_RTC6705SOFTSPI, VTX_TRAMP, VTX_SMARTAUDIO to use USE_ prefix. 2018-01-09 17:34:34 +13:00
Martin Budden
d90b42970c Acc fn/variable renames to align with iNav 2017-12-29 10:23:51 +00:00
mikeller
2d930b28ce Moved vcd parameter group to pg/. 2017-12-24 15:13:48 +13:00
Martin Budden
671382234a Enabled switch fallthrough checking by compiler 2017-12-23 19:46:40 +00:00
jflyper
11c47c631b Port iNav's rangefinder 2017-12-20 12:54:19 +09:00
mikeller
b489d0ba9d Renamed 'parameter_group' to 'pg'. 2017-12-19 23:36:31 +13:00
jflyper
db014752d7 Convert TRANSPONDER to USE_xxx scheme 2017-12-11 02:49:00 +09:00
Alberto García Hierro
ebf2732898 Change MSP_SET_RTC to accept seconds and milliseconds
This makes it compatible with INAV, which was already using this
MSP code and has already released some versions using it.
2017-11-28 13:20:45 +00:00
Alberto García Hierro
59f8ee0d15 Fix MSP code in switch for MSP_SET_TX_INFO
Case was handling MSP_TX_INFO which is an out command and already
handled in mspProcessOutCommand. This case should handle MSP_SET_TX_INFO
2017-11-28 13:15:33 +00:00
Michael Keller
dcdf7dd872
Merge pull request #4611 from mikeller/add_msp_tx_data
Added data for lua TX scripts to MSP.
2017-11-20 21:18:48 +13:00
mikeller
86373122a1 Added data for lua TX scripts to MSP. 2017-11-19 10:24:55 +13:00
Martin Budden
cfc87d1891 Better separation between GPS and NAV 2017-11-18 08:00:31 +00:00
mikeller
60a8f3a5b9 Changed MSP command name to 'MSP_SET_ARMING_DISABLED' to make it consistent. 2017-11-18 18:34:25 +13:00
Martin Budden
8044d08fb3 Renamed fc_msp* files to msp* 2017-11-12 21:43:09 +00:00
Renamed from src/main/interface/fc_msp.c (Browse further)