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

256 commits

Author SHA1 Message Date
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
Martin Budden
9032c3cbfd Merge pull request #2877 from TheAngularity/patch-2
fixed blackbox devicelist
2017-04-18 08:16:23 +01: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
TheAngularity
f0d07753d3 fixed blackbox devicelist
selecting bb device was broken in configurator ... this solves the problem
2017-04-13 20:14:03 +02:00
TheAngularity
09cbca2a02 align_board_xxx - only positive values allowed
fixed #2866
2017-04-13 12:35:07 +02: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
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
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
Hydra
17a430e5f9 CF/BF - Fix missing #ifdef around the virtual current meter settings. 2017-04-12 00:39:27 +01:00
Hydra
2b1dac4c6d CF/BF - First cut of allow building of the OSD SLAVE board without all
the flight controller code.

Likely the dependencies can be further improved.  This is a
minimal-impact solution while there are a lot of other Betaflight PR's
still pending.
2017-04-12 00:39:27 +01:00
Martin Budden
1dc5f88820 Added crash detection and recovery 2017-04-11 22:58:18 +01:00
Martin Budden
63b7f18a00 Merge pull request #2649 from martinbudden/bf_cli_sensors
Optimised sensor lookup tables in cli to save ROM
2017-04-11 22:23:36 +01:00
Martin Budden
3a672c82e8 Merge pull request #2849 from martinbudden/bf_fake_accgyro_locks
Added locking to fake gyro and acc
2017-04-11 19:05:00 +01:00
Martin Budden
0219d6adc7 Updated accgyro locking. Printf tidy 2017-04-10 14:54:25 +01:00
Michael Keller
e66b74579b Changed CLI variables to use a union. Some build fixes. 2017-04-10 19:12:41 +12:00
Michael Keller
9c29475ba4 Changed float parameters to int16 in 'cli.c'.
Fixed buffer length used for 'ftoa'.

Got rid of magic numbers, replaced 'digitalIdlePercent' with 'digitalIdleValue'.
2017-04-10 13:11:01 +12:00
Michael Keller
ce8c5fbd79 Merge pull request #2760 from mikeller/reworked_altitude_estimation
Reworked altitude estimation. Made it work when ACC is disabled.
2017-04-10 13:00:16 +12:00
Michael Keller
572c5762d5 Merge pull request #2847 from wind0r/clean_cli
remove double featureConfigCopy
2017-04-10 11:50:16 +12:00
Michael Keller
9204d0a34e Fixed conditionals for SPEKTRUM_BIND_PIN. 2017-04-10 09:55:40 +12:00
Steffen Windoffer
9955271e3c remove double featureConfigCopy 2017-04-09 20:22:48 +02:00
Hydra
4653cfd4ad CF/BF - Reduce flash usage by re-using a couple of strings. 2017-04-09 13:48:19 +01:00
Hydra
297f362257 CF/BF - Reduce flash usage of cliSerialPassthrough.
Minimize string duplication, be less verbose, use shorter words, avoid
duplicate id parameter code.
2017-04-09 13:48:04 +01:00
mikeller
6a03b48e7f Reworked altitude estimation. Made it work when ACC is disabled. 2017-04-08 22:54:44 +12:00
Michael Keller
d6de0c9e24 Merge pull request #2831 from mikeller/fix_dump_diff_showdefaults
Fixed 'showdefaults' option for CLI 'dump' / 'diff'.
2017-04-07 18:28:01 +12:00
Michael Keller
e84cbe5fb5 Merge pull request #2818 from mikeller/use_permanent_mode_ids_in_cli
Changed CLI to use permanent mode ids.
2017-04-07 09:06:35 +12:00
Michael Keller
6b008ee971 Merge pull request #2757 from Faduf/BeeperPwm
Buzzer PWM
2017-04-07 09:05:45 +12:00
mikeller
2afc011b16 Fixed 'showdefaults' option for CLI 'dump' / 'diff'. 2017-04-07 00:19:51 +12:00
Michael Keller
8a7241f6cb Changed CLI to use permanent mode ids. 2017-04-06 10:21:07 +12:00
borisbstyle
6899c66a05 Add anti gravity as feature and mode
3.1.7 mergebacks
2017-04-05 15:27:52 +02:00
DieHertz
8768dfd3df Cleaned USE_PARAMETER_GROUPS remainders 2017-04-02 03:04:37 +03:00
Faduf
458cf6601d Beeper PWM support
Beeper PWM frequency set limited to positive values

Removal of all the defined(BEEPER_PWM)

tabs and spaces cleanup in beeper functions

Add IOGetByTag and timerGetByTag check to Beeper Pwm Init

Add IO check before every Beeper Pwm functions in pwm_output

Update pwm_output.c after comments from Mikeller
2017-03-31 20:23:27 +02:00
Martin Budden
9715508c7b Added debug fields to OSD 2017-03-31 08:01:01 +01:00
Martin Budden
318fd2ee15 Code tidy. Renamed vbatscale in blackbox 2017-03-31 07:44:28 +01:00
Michael Keller
294c5e00c7 Merge pull request #2771 from martinbudden/bf_osd_gps
Added GPS position to OSD
2017-03-30 13:40:53 +13:00
Martin Budden
fbec992456 Optimised sensor lookup tables in cli 2017-03-29 16:59:28 +01:00
Martin Budden
b370cec537 Added GPS position to OSD 2017-03-29 16:00:03 +01:00
Bas Delfos
8dbb156ea0 Added KISS ESC sensor information for rpm and temperature to debug fields 2017-03-28 23:11:23 +02:00
blckmn
c0d18280d5 Removed feature SDCARD and BLACKBOX
Now uses blackboxConfig()->device instead. Requires co-ordination with configurator.
2017-03-28 21:29:50 +11:00
mikeller
bed980bb27 Changed direction parameters into boolean to ensure a direction is defined. 2017-03-27 21:21:01 +13:00
Martin Budden
9a3cad9ca3 Further work on gyro SPI selection 2017-03-26 10:10:10 +01:00
Martin Budden
60c2b812d1 Added runtime setting of gyro SPI pin 2017-03-26 07:43:51 +01:00
Martin Budden
1281d30eba Merge pull request #2692 from mikeller/make_yaw_control_inversion_boolean
Changed 'yaw_control_direction' into 'yaw_control_inverted' and made it a boolean, to get rid of the 'undefined' case 0.
2017-03-25 07:26:40 +00:00
mikeller
728adb3a86 Changed 'yaw_control_direction' into 'yaw_control_inverted' and made it a boolean, to get rid of the 'undefined' case 0. 2017-03-24 20:49:52 +13:00
Michael Keller
6c115b4312 Fixed display of SERIAL resources in CLI. 2017-03-23 08:11:23 +13:00
DieHertz
530aa52977 Fixed Sonar Echo pin definition 2017-03-20 21:28:39 +03:00
Hydra
31dc531ca0 CF/BF - add cli diff support for voltage and current sensors. 2017-03-19 10:40:26 +00:00