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

241 commits

Author SHA1 Message Date
Michael Keller
7fc3c7cea6 Renamed 'tuning sliders' to 'simplified tuning'. 2020-12-26 14:26:56 +01:00
IvoFPV
cff19dc113 Implement tuning sliders, add to CMS, MSP 2020-12-26 14:26:50 +01:00
Michael Keller
97a647f36a Added missing CLI parameter for RSSI dBm. 2020-12-14 20:28:54 +01:00
borisbstyle
4a916af6a9 Added DYNAMIC mixer 2020-12-08 12:04:18 +01:00
borisbstyle
75da17a00e New linear mixer (credits to @tylercorleone) 2020-12-08 12:04:07 +01:00
ctzsnooze
8050ecd1e7 Mixer update: dynamic idle and throttle logging improvements
- all CLI parameters related to dynamic idle alone re-named with the `dyn_idle_` prefix
- when linear throttle scaling is active, the user's set idle value is now correct whether dynamic idle is on or off. Previously, the idle value fell when dynamic idle was activated at the same time as linear throttle scaling.
- enabling dynamic idle no longer causes a deadband at full throttle
- the setpoint throttle value sent to Blackbox does not include the dynamic idle offset
- the throttle value sent to the antigravity and dynamic lowpass code includes throttle scaling, but no other modifiers, to avoid false elevation of the apparent throttle position from dynamic idle and unnecessary transient changes in their filter cutoffs
- Dynamic Idle now uses a modified PI controller during active rpm control phase
- the D factor provides early detection of rapid falls in rpm, e.g. in hard chops. It is filtered heavily. Inadequate `dyn_idle_d_gain` may lead to a transient drop in rpm immediately after cutting throttle. Default is 50.
- the P factor provides fast control over rpm during the active control phase. Too much `dyn_idle_p_gain` may cause oscillation in that phase. Note enough and a slow drop in rpm will be inadequately corrected. Default is 50. Needs to be higher with heavier larger props.
- An integral element does most of the work.  It prevents enduring offsets from the set rpm. The I gain is high when increasing responding to low rpm, and slow to release.  The slow release makes a huge difference and avoids I oscillation. Not enough `dyn_idle_i_gain` and there may be wobble in rpm during the control phase, or the idle value may rise too slowly; too much may cause wobble. Default is 50. Needs to be higher with heavier larger props.
- The DYN_IDLE debug shows idle P, I and D in debugs 0, 1 and 2. minRps stays in debug 3.
- Interactions between throttle and thrust linear, dynamic idle, throttle scaling and throttle boost have been checked and work as they should.
2020-11-09 09:09:17 +11:00
Nicola De Pasquale
979dabf637 added option for expo on rc command 2020-10-29 18:07:32 +01:00
limonspb
806595a7d4 Total flights stats for OSD 2020-10-25 01:32:51 -05:00
Unknown
5bf4f71a6d Initial install of GHST driver
First pass at GHST driver including low-latency control, and basic telemetry.

Fix Ghost channel scaling

Use ghstChannelData instead of rxRuntimeState->channelData

Integrate PR feedback

Primarily de-tab and a few cosmetic changes.

Keep Travis CI happy

Removed unused function

Rework ghost driver to reduce time in ISR, move processing

As requested in PR review.
Fixed issue in telemetry driver, mAh consumed is transmitted as units of 10mAh, not 1mAh.

Resolve Packet Collision Issue with GHST

Send telemetry packets only within a well defined time slot after an incoming Rx packet.

Remove unnecessary comment

rxRefreshRate doesn't need to be dynamic.

Ghost - Remove special case from scheduler

No need to reschedule telemetry for the Ghost protocol.
2020-10-14 21:52:33 +13:00
Alexey Stankevich
11e06fc94a Fix "task_frequency" variable type 2020-10-05 22:07:42 +03:00
Alexey Stankevich
c40174d2eb Change 'osd_high_framerate' parameter to 'osd_task_frequency' 2020-10-05 13:22:24 +03:00
Alexey Stankevich
03e878306b Add optional high framerate OSD 2020-10-04 14:09:16 +03:00
jflyper
08f1f91c50 [G4] CLI and config changes for overclocking 2020-10-01 20:40:44 +09:00
Michael Keller
b234463c7e
Merge pull request #10159 from krygacz/support-mpu925x-internal-mag-over-i2c 2020-09-20 15:23:21 +12:00
krygacz
58ae3fdfd5 Support MPU925x internal magnetometer over I2C 2020-09-14 23:41:45 +02:00
ctzsnooze
73663f7fae FF update including second order fitlering of boost, tidying up etc
Include default to no averaging
2020-09-12 17:08:14 +10:00
Michael Keller
87adab2fac
Merge pull request #10080 from haslinghuis/british_osd_units 2020-08-25 00:27:59 +12:00
haslinghuis
9ae3adaa51 Measurement units for OSD elements and FRSKY hub telemetry. 2020-08-23 16:23:57 +02:00
Michael Keller
32e389466c
Merge pull request #10086 from IllusionFpv/updated-dyn-throttle-curve 2020-08-16 21:56:43 +12:00
Nicola De Pasquale
d0fe84528a using same curve of dyn dterm lpf 2020-08-08 15:36:28 +02:00
limonspb
464919c416 Motor output reordering for CLI and MSP
Fixed some code formatting

+fixReorderingArray() for EEPROM load/save and renamings

fix brace new line

moving MOTOR_OUTPUT_REORDERING to MSP2 betaflight specific

validateAndfixConfig now resets reordering motor array to default in case it is invalid
2020-07-27 20:10:37 -05:00
Birk Tjelmeland
aa5066e443 Add MSP override mode
The MSP override mode allows for use of MSP togehter with
another RX feature like SBUS. When enabling the MSP override
mode all channels from the `msp_override_channels` bitmask
will be overwritten by data comming from MSP instead of the
main RX.
2020-07-27 13:01:38 +02:00
Michael Keller
4e922f9ea4
Merge pull request #10011 from mikeller/add_configurable_stats_flight_time
Added configurable minimum arming time for a flight to be counted in flight statistics.
2020-07-22 02:11:59 +12:00
mikeller
b42d1db0e8 Fixed DEBUG builds. 2020-07-17 01:57:08 +12:00
mikeller
ab3511c420 Added configurable minimum arming time for a flight to be counted in flight statistics. 2020-07-12 15:35:55 +12:00
mikeller
15d1df3c77 Removed DTerm RPM filter. 2020-07-06 19:33:06 +12:00
Michael Keller
41fa8754bc
Merge pull request #9633 from mikeller/remove_vbat_pid_compensation
Remove vbat pid compensation
2020-07-06 13:41:27 +12:00
Michael Keller
8f2422f72e
Merge pull request #9726 from fgiudice98/blackbox-fields-selection 2020-07-06 12:58:42 +12:00
fgiudice98
a42ba9779a Changed variable name 2020-07-05 11:23:43 +02:00
Michael Keller
1fbd113204
Merge pull request #9690 from mikeller/cleanup_settings
Refactored assertion in 'settings.c'.
2020-07-05 21:09:17 +12:00
Michael Keller
1466acd5f3
Merge pull request #9697 from AlienWiiBF/ACCST_V2 2020-07-05 15:38:56 +12:00
ctzsnooze
7cd83464d6 Power 2 thrust compensation with 50% throttle compensation
^2 gain curve after discussions with Markus
Variable throttle compensation, more with higher TL for whoops
Calculator https://www.desmos.com/calculator/1rhq0pqoug
2020-07-05 14:01:42 +12:00
fgiudice98
d21b1fa77a Refactor
Changed mask var from 16 to 32 bits
Changed variables names
Inverse logic
Added definitions to cli settings
Added logging_fields_mask to blackbox header
2020-06-30 00:55:24 +02:00
fgiudice98
6d9e4a813a Add blackbox fields selection
Fields are selected using a 16bit uint variable
- Added selection to cli
- Added variable to msp (for future checkbox selection in the configurator)
- removed "blackbox_record_acc" as the same function can be achieved in the new code with "bb_log_acc"
2020-06-30 00:46:49 +02:00
Michael Keller
36d372d237
Merge pull request #9957 from jflyper/bfdev-baro-dps310 2020-06-30 01:02:27 +12:00
Michael Keller
a0f6a91033
Merge pull request #9803 from fgiudice98/blackbox-freq-cms 2020-06-30 00:55:16 +12:00
jflyper
a686ab45fa Barometer Infineon DPS310 support 2020-06-29 00:09:56 +09:00
Bruce Luckcuck
99a9543968 Add support for LSM6DSO gyro/acc
Also supports the LSM6DSOX variant which has the additional machine learning core (not used by Betaflight).
2020-06-21 16:22:29 -04:00
mikeller
b6689edc26 Removed VBat PID compensation. 2020-06-22 01:12:47 +12:00
Michael Keller
97ad043f9e
Merge pull request #9691 from mikeller/add_common_hardware_settings
Added the most common (reasonable) hardware settings to 'dump hardware'.
2020-06-22 01:07:17 +12:00
Michael Keller
12f02a1f19
Merge pull request #9753 from mikeller/remove_mag_declination
Removed the unused setting 'mag_declination'.
2020-06-22 00:20:33 +12:00
MJ666
1aca26c1a3 Initial FrSky ACCST V2.1.x support 2020-06-18 17:52:19 +02:00
eggsbenedict
e2b3cb0b86 addition of altitude buffer var
added a user configurable altitude buffer option for MAX_ALT and CURRENT_ALT rescue mode options.
2020-06-08 17:42:48 -04:00
mikeller
15114d0e43 Added the most common (reasonable) hardware settings to 'dump hardware'. 2020-06-07 12:57:30 +12:00
ctzsnooze
49834c0d7f Increase minimum gyro rpm Q to 250 for 4.2 2020-05-24 18:54:27 +10:00
fgiudice98
b063cb4e90 Change p_ratio to sample_rate
Complete refactor logging rate selection in cli, msp and blackbox code
Retains backward compatibility

Fixed tests and requested changes

Fixed blackbox device "SERIAL" not showing in cms menu and whitespace of "FLASH"
2020-05-17 23:41:44 +02:00
mikeller
9bace5b9d1 Fixed condition for the 'ANTI GRAVITY' mode switch to hide it wen anti-gravity is disabled. 2020-05-08 01:14:45 +12:00
mikeller
b7ee04127d Removed the unused setting 'mag_declination'. 2020-05-02 23:30:01 +12:00
Bruce Luckcuck
24849bce0e Fix link_quality_alarm range
This was missed during the transition to CRSF using a 0-100 range instead of 0-300.
2020-04-12 20:46:47 -04:00
mikeller
af2e7ae831 Refactored assertion in 'settings.c'. 2020-04-12 01:27:54 +12:00