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

117 commits

Author SHA1 Message Date
jflyper
57a6060005 Prevent sdcard_getMetadata from being called when card is not inserted or not ready 2018-10-05 03:41:53 +09:00
Michael Keller
b43c6ca73b
Merge pull request #6796 from etracer65/adjustment_range_optimize
Optimize in-flight adjustments to only process configured ranges
2018-09-20 20:51:21 +12:00
Bruce Luckcuck
044648ca12 Optimize in-flight adjustments to only process configured ranges
Previously the logic would process all possible ranges defined by MAX_ADJUSTMENT_RANGE_COUNT even if some (or even all) ranges were not configured.  This change first builds a list of configured ranges and only processes thos entries.

Reduces CPU load by skipping unnecessary processing and minimizes the impact of increasing the number of available ranges.
2018-09-18 10:31:58 -04:00
Michael Keller
ea6c21f1e6
Merge pull request #6447 from bforbort/vario
Enable Vario on targets that support barometers
2018-09-18 23:53:09 +12:00
Bruce Luckcuck
a39f9480d9 Fix USB HID parameter support in MSP_SET_RX_CONFIG msp message
Workaround to make the firmware tolerant of missing Configurator support in versions 10.4.1 or less. Will still work properly when Configurator support is added.
2018-09-04 16:44:44 -04:00
Blaine
2e552841f1 Enables Vario on targets that support barometers
OSD and telemetry output of vario data is enabled on F4 and up targets
that have
USE_BARO defined.  Settings and telem elements are removed from all
other targets.

F3 targets are not supported to free memory.
2018-09-02 23:20:07 -07:00
mikeller
0bce8549ee Renamed 'fc/fc_' files to remove the double 'fc'. 2018-08-26 14:07:06 +12:00
Michael Keller
fc60cc27e9
Merge pull request #6623 from mikeller/remove_osd_slave
Removed OSD_SLAVE defines.
2018-08-25 23:37:30 +12:00
Michael Keller
83fa3f31c6
Merge pull request #6531 from awolf78/GPS_FROM_MSP
GPS support via MSP
2018-08-24 08:38:17 +12:00
Michael Keller
c3ebd2d46e
Merge pull request #4682 from fiam/agh_msp_set_rtc
Change MSP_SET_RTC to accept seconds and milliseconds
2018-08-23 23:06:54 +12:00
mikeller
6a77c5f576 Removed OSD_SLAVE defines. 2018-08-23 23:03:22 +12:00
Michael Keller
4b965a572a
Merge pull request #6254 from mikeller/remove_feature_call
Removed calls to (latching) 'feature()'.
2018-08-23 00:00:16 +12:00
Michael Keller
53151817e1
Merge pull request #6430 from mikeller/remove_duplicate_build_bug_on
Removed 'BUILD_BUG_ON'.
2018-08-22 18:49:45 +12:00
mikeller
6de1c32d9d Added shadow copies for CLI and MSP. 2018-08-21 00:36:47 +12:00
mikeller
c99629bbf1 Removed calls to (latching) 'feature()'. 2018-08-21 00:35:55 +12:00
mikeller
b4db764b46 VTX improvements from iNav. 2018-08-20 23:26:57 +12:00
mikeller
70ac9423c7 Unified BUILD_BUG_ON and STATIC_ASSERT into STATIC_ASSERT. 2018-08-20 10:50:06 +12:00
mikeller
63b6298c78 Fixed GPS rescue MSP. 2018-08-19 00:13:00 +12:00
AirBreak69
0e52e21524 GPS altitude: cleanup all occurancies to assume source is in cm per lsb resolution
Harmonized (and partly corrected) all occurancies of gpsSol.llh.alt and getEstimatedAltitude() to handle altiude sourced in cm resolution.
This was introduced by GSP_RESCUE/RTH.
Introduced a naming convention that include the unit into the variable/function names:
gpsSol.llh.alt -> gpsSol.llh.alt_cm
getEstimatedAltitude() -> getEstimatedAltitude_cm()
2018-08-19 00:11:30 +12:00
mikeller
a4a701829c Fixed GPS rescue MSP. 2018-08-18 14:09:41 +12:00
Michael Keller
5a2501f3e5
Merge pull request #5955 from David-VG/master
MSP for GPS Rescue
2018-08-18 12:56:12 +12:00
Michael Keller
701bcd24da
Merge pull request #6522 from awolf78/LUA_VTX_support
VTX LUA support for external VTX devices
2018-08-17 00:35:39 +12:00
Alex Wolf
031ea3ea94 Merge branch 'master' of https://github.com/betaflight/betaflight 2018-08-13 18:27:44 -04:00
Alex Wolf
92d3b7ca6f GPS support via MSP 2018-08-08 09:49:36 -04:00
Michael Keller
283e55e45d Removed SPRACINGF3OSD support. 2018-08-08 08:32:20 +12:00
Alex Wolf
7b6555f001 Add MSP_MULTIPLE_MSP 2018-08-07 10:47:32 -04:00
Alex Wolf
096457fcd4 VTX LUA support for external VTX devices 2018-08-05 21:40:49 -04:00
mikeller
651174e794 Added antigravity mode parameter to MSP. 2018-07-22 22:23:17 +12:00
mikeller
ec06575203 Removed unused PID settings. 2018-07-22 11:41:22 +12:00
Bruce Luckcuck
17e76e48f6 PID controller feedforward
Restructures the PID controller to decouple feedforward from D.

Cleaned up the structure of the PID controller; moved some feature-based enhancements out of the main structure.

Feedforward becomes a separate component of the PID controller and there is now:
f_pitch
f_roll
f_yaw

The default values of 60 for pitch and roll matches the default setpoint weight used in BF3.4.  Yaw previously had no setpoint weight capability so the default here needs to be discussed.  Currently it's also set to 60 and flight testing seems positive.  Feedforward on yaw adds a lot of value so I don't think we want to default to 0.  Instead we need decide on the default.

All occurences of setpoint weight have been replaced by feedforward. "setpoint_relax_ratio" has been renamed to "feedforward_transition".

The pidSum now consists of P + I + D + F.

D has been added back for yaw (disabled by default with d_yaw = 0). We've found little need for D for normal quads but it may have value for other configurations - particularly tricopters.

Updated CMS menus to support adjusting the feedforward for each axis.

Changed the default for "rc_interp_ch" to be "RPYT".  Need yaw to be smoothed to support feedforward.

Open issues:

Needs BFC support
- Need to add support for the axis "F" gains.
- Remove "setpoint weight" slider.
- Rename "D Setpoint transition" to "Feedforward transition"

Needs BBE support
- Header "setpoint_relaxation_ratio" has been renamed "feedforward_transition"
- Header "dterm_setpoint_weight" has been replaced with an array named "feed_forward_weight".
  example: H feed_forward_weight:65,60,60    (R,P,Y)
- PID component "AXISF" has been added for all axes. Should be handled like P, I and D values.
- PidSum calculation needs to include F.

Needs LUA script support
- Support the renamed "setpoint_relax_ratio".
- Support for feedforward weight on all 3 axes.

Open code issues:
- rc_adjustments.c - support for adjusting feedforward weight for all axes. Currently only supporting roll - needs coordination with BFC.
2018-07-21 10:26:23 -04:00
Michael Keller
460b72f81f
Merge pull request #6364 from mikeller/add_usb_hid_msp
Added MSP for USB HID configuration.
2018-07-18 08:46:42 +12:00
mikeller
862c14af19 Fixed botched rebase. 2018-07-18 02:30:33 +12:00
mikeller
80a29b9ad5 Removed unneeded parameters. 2018-07-18 01:14:03 +12:00
mikeller
2735a626e0 Changes from review. 2018-07-18 01:10:47 +12:00
mikeller
b4b88a5972 Adding MSP for new profile settings introduced in 3.4. 2018-07-18 01:10:47 +12:00
mikeller
76a51e989e Added MSP for USB HID configuration. 2018-07-18 01:06:01 +12:00
Michael Keller
3fc6906fa3
Merge pull request #6363 from mikeller/add_rc_smoothing_msp
Added RC smoothing parameters to MSP.
2018-07-18 00:35:30 +12:00
mikeller
aff5653981 Changes for an improved UX. 2018-07-17 18:34:06 +12:00
mikeller
df55fc99ec Added MSP for reboot to MSC. 2018-07-17 18:34:06 +12:00
mikeller
334117a4f0 Changes from review. 2018-07-17 01:36:36 +12:00
mikeller
7fe0c8f892 Added RC smoothing parameters to MSP. 2018-07-17 01:36:36 +12:00
Michael Keller
8607b1c38b
Merge pull request #6038 from supiiik/master
MSP for smart_feedforward and throttle boost
2018-07-17 01:26:48 +12:00
mikeller
30a51e2023 Removed legacy 'MSP_BF_CONFIG' and 'MSP_SET_BF_CONFIG' MSP commands. 2018-07-15 23:49:23 +12:00
AirBreak69
91ac74ca9c
Scale MSP altitude back to 1m per lsb as it was before RTH 2018-06-18 23:16:52 +02:00
AirBreak69
ff366098e5
Deleted extra 32bit altitude in msp 2018-06-14 20:58:41 +02:00
AirBreak69
ecc89d1ba1
Compensate 10x altitude resolution before transferring via MSP
GPS_RESCUE and subsequent changes increased gpsSol.llh.alt from 0.1m per lsb UNIT16 to 0.01m per lsb INT32.
The transfer of altitude data via MSP had to be corrected by factor 10 rescalings to be backwards compatible.
2018-06-14 01:31:24 +02:00
AirBreak69
84ee9c624c
Reverted change and added 32bit versions of gpsSol.llh.alt 2018-06-13 01:25:59 +02:00
AirBreak69
536ad399e6 GPS: handle negative and high altitudes; safer macros in maths.h
Fixes underflows at negative altitude (below MSL) and overflows at altitude higher than 655.35m
Corrected parenthesis in maths.h avoid incorrect equations if arguments contain expressions.
2018-06-12 00:02:29 +02:00
mikeller
5c2f598357 Added 'dshotBeaconOffFlags' to MSP. 2018-06-10 11:20:28 +12:00
Miguel Angel Mulero Martinez
9c6603fae9 Add new range for gyro lpf 1 into MSP 2018-06-05 08:19:24 +02:00