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

99 commits

Author SHA1 Message Date
Martin Budden
541f4d4018 Directory rearrangement to reflect cleanflight changes 2016-08-07 13:44:00 +01:00
Martin Budden
b5c62df3f8 Added some further build flags for ROM saving 2016-07-27 16:13:14 +01:00
Martin Budden
141b369667 Removed trailing whitespace 2016-07-16 07:54:58 +01:00
Martin Budden
3a0f8388ee Changed tabs to spaces in io/ 2016-07-09 13:29:01 +01:00
Martin Budden
d069945f89 Improved gyroSetCalibrationCycles parameters. 2016-06-26 21:43:04 +01:00
Martin Budden
75237dd209 Fixed up gyro init. 2016-06-26 16:15:06 +01:00
Martin Budden
4d238b27d5 Moved targetLooptime into gyro_t, tidied gyro_sync and gyro 2016-06-26 16:15:06 +01:00
blckmn
897aab9c86 2.8.1 changes ready for merge 2016-06-19 09:42:30 +10:00
borisbstyle
a74acccb84 Add rc_rate_yaw // SuperExpo feature renamed to SUPEREXPO_RATES 2016-06-02 19:41:04 +02:00
borisbstyle
d4c22f1c28 Rework Super Expo Rate Implementation // On the fly Rc Expo 2016-06-01 09:30:52 +02:00
sblakemore
2df7e3cefa Add RTC6705 SPI VTX support 2016-05-31 07:15:37 +10:00
borisbstyle
3470181a0f Add feature for SuperExpo and Airmode // Super Expo by default activated 2016-05-30 20:42:43 +02:00
borisbstyle
ff5c320b4a Iterm reset rework // Airmode Iterm Protection Configurable // Dynamic Ki
New defaults
2016-05-23 23:57:32 +02:00
borisbstyle
5290e4be56 Fix arming on Low Throttle when 3D Mode On switch disabled 2016-04-04 23:28:29 +02:00
borisbstyle
7b468c09f0 Luxfloat rework to int pids // Many pid cleanups // filter rework
Eeprom version // Dterm improvement

Further PID Improvements

Version Change

Coupling configured // reworked filtering // more test features

remove iterm scaler luxfloat

Further rework filters etc

Restore original luxfloat but scaled

Restore original luxfloat but scaled
2016-03-30 10:16:20 +02:00
borisbstyle
4ec5166c0f Add option for gyro calibration on first arm // Remove Retarded Arm 2016-03-21 01:22:40 +01:00
borisbstyle
03cc5fa438 Function for calculating calibration cycles 2016-03-09 22:31:16 +01:00
borisbstyle
1187c575ed Gyro Calibration scaled to looptime setting 2016-03-08 22:52:55 +01:00
KiteAnton
076ac6d0e7 Rateprofiles added to profiles 2016-02-20 12:50:13 +01:00
borisbstyle
9f15da0641 Fix Profile selection Bug MSP and rc_controls.c warnings 2016-02-05 23:00:23 +01:00
KiteAnton
a24b02b90f Further config restructuring, moved rates to profile 2016-02-03 21:28:00 +01:00
borisbstyle
9859bbfcae Less Anti Winduo in Air mode 2016-02-03 01:32:57 +01:00
borisbstyle
a1ebe6fd4f Remove old mixer // Separate Acro Plus from Airmode // Fix MOTOLAB merge issues 2016-02-03 00:58:38 +01:00
borisbstyle
f69943d095 Enable Airmode In 3D feature // Separate Mixers 2016-01-18 11:12:13 +01:00
borisbstyle
6a4682908f Rework Iterm Shrink for AIR Mode
Rework Iterm Shrink for AIR Mode part 2
2015-12-09 00:56:19 +01:00
borisbstyle
b84e9f4676 AIR MODE Safety Enhancements 2015-12-08 12:25:37 +01:00
borisbstyle
5a7b5ad29d Minor Fix in disarmticks 2015-11-20 17:42:21 +01:00
borisbstyle
c8a9ebc15d Disarm AUX extra safety precaution 2015-11-06 14:57:40 +01:00
Konstantin Sharlaimov (DigitalEntity)
5df8ca926c Quaternion-based DCM IMU (original code my S.Madgwick)
Restore binaries from merge
2015-10-22 10:45:36 +02:00
Stephen Willey
38dd09f9b5 Floating point inflight adjustments adjust by 0.01 instead of 0.1 2015-09-18 13:13:31 -07:00
Nicholas Sherlock
53860e461c Add resume event to allow clean log decoding, add documentation 2015-07-23 19:18:08 +12:00
Alexander Fedorov
01632998a3 Blackbox: Enable logging when mode switch is active 2015-07-22 13:36:22 +12:00
Dominic Clifton
5be2276b6b First cut of custom motor and servo mixer test.
Note: The test is rather heavyweight, more like an integration test than
a unit test, but will allow for the underlying code to be refactored.
2015-07-17 01:05:14 -07:00
Alexander Fedorov
00bff6485b Add logging of the inflight adjustment events to the blackbox 2015-06-23 15:20:22 +02:00
Michael Hope
920cac5253 various: re-work designated initialisers to work with G++
G++ supports a more limited version of designated initialisers.
Reorder fields to be in the right order.  Make nested initialisers
explicit.

Signed-off-by: Michael Hope <mlhx@google.com>
2015-06-04 22:34:27 +02:00
Dominic Clifton
e6733b4dfc Cleanup status indicator code.
This primarily is to avaoid stalling the main loop when beeping and
flashing.

This is needed because oneshot ESCs do not receive updates when the main
loop is stalled.

Additionally the beeper code for sticks held in disarm position is
changed since it also clashed with profile selection.  Now profile
selections can be seen and heard clearly.

Other subsections of the system that changed the LED0 state while the
main loop is running have been updated to use the status indicator API
instead of blindly hitting the hardware which previously caused lots of
odd LED flashing behaviour - now it is consistent.
2015-05-29 23:37:33 +01:00
Dominic Clifton
48570502cb Fixing missing pitch/roll rate inflight adjustment function
configuration settings.
2015-05-20 20:30:39 +01:00
Dominic Clifton
53eec05809 Avoid updating in-flight adjustments when not receiving rx data. 2015-05-19 20:44:01 +01:00
Dominic Clifton
c174a52ebe Allow independent pitch and roll in-flight PID adjustment. Fixes #149. 2015-05-17 23:43:55 +01:00
Dominic Clifton
3974b02b3a Remove BEEPER_CONFIRM_BEEP. Simplifies logic, reduces code size, and
ensures that the durations of one or more confirmation beeps can never
get out of sync when the code is changed.  Renamed queueConfirmationBeep
to beeperConfirmationBeeps - nothing was actually queued.
2015-04-25 10:53:07 +02:00
Dominic Clifton
519586a5ce Merge branch 'refactoredBeeperCode_181_1' of
git://github.com/ethomas997/cleanflight into
ethomas997-refactoredBeeperCode_181_1

Conflicts:
	src/main/flight/failsafe.c
	src/main/io/beeper.c
	src/main/mw.c
2015-04-23 01:21:27 +02:00
Dominic Clifton
c8c0c85656 First-cut of a refactored failsafe system.
* fixes issue where indicators would flash when SBus RX entered failsafe
mode.
* fixes bug where turning off a TX for an SBus RX would instantly disarm
when using a switch to arm when the channel went outside the arming
range.
* introduces failsafe phases to make the system more understandable.
* allows the system to ask if rxSignalIsBeing received for all RX
systems: PPM/PWM/SerialRX/MSP.  Also works when a serial data signal is
still being received but the data stream indicates a failsafe condition
- e.g.  SBus failsafe flags.
* failsafe settings are no-longer per-profile.

Untested: Sumd/Sumh/XBus/MSP (!)
Tested: SBus X8R, Lemon RX Sat, X8R in PWM, Spektrum PPM.
2015-04-16 01:31:12 +01:00
E Thomas
f02d7403af Port of refactored beeper code 181_1
This the "Port of refactored beeper code #669" modification applied to
version 1.8.1 (4/4/2015) of the code.
2015-04-04 17:54:44 -04:00
Nicholas Sherlock
828ec550cd Apply the same maximum control rates (1.0) in CLI and MSP
Previously it was possible to set roll/pitch rate > 1.0 using MSP, but
not using the CLI. Roll/pitch rate > 1.0 is meaningless.

TPA is also limited to 1.0.
2015-03-22 20:38:15 +13:00
Dominic Clifton
acabbf41db Previously, at minimum throttle, the quad would do absolutely no self-leveling
and simply run the motors at constant minthrottle.  This allowed the chance
for the quad to lose control during flight if the throttle was set to minimum,
say, to drop from a high altitude to a lower one.

With this edit, the quad will still self-level at minimum throttle when armed,
allowing for safe decents from altitude.  To prevent motors spinning when
arming/disarming, the yaw input is ignored if the throttle is at minimum and
we're using the sticks to arm/disarm.

Conflicts:
	src/main/flight/mixer.c
2015-03-09 23:44:53 +01:00
Dominic Clifton
5e3734946e # This is a combination of 2 commits.
# The first commit's message is:

Previously, at minimum throttle, the quad would do absolutely no self-leveling
and simply run the motors at constant minthrottle.  This allowed the chance
for the quad to lose control during flight if the throttle was set to minimum,
say, to drop from a high altitude to a lower one.

With this edit, the quad will still self-level at minimum throttle when armed,
allowing for safe decents from altitude.  To prevent motors spinning when
arming/disarming, the yaw input is ignored if the throttle is at minimum and
we're using the sticks to arm/disarm.

Conflicts:
	src/main/flight/mixer.c

# This is the 2nd commit message:

added cli command disable_pid_at_min_throttle
2015-03-09 23:36:54 +01:00
Dominic Clifton
e4a6886266 Allow independent in-flight adjustment of roll and pitch. 2015-03-07 15:14:52 +00:00
Dominic Clifton
b595b49ca8 Decouple roll and pitch rates. MSP clients take note of updated
MSP_RC_TUNING/MSP_SET_RC_TUNING commands.
2015-03-07 15:11:20 +00:00
Dominic Clifton
55d9994ff8 Reset adjustment states when switching profiles.
Fixes #544.
2015-02-26 13:58:03 +00:00
Dominic Clifton
f88bbf4676 Avoid usage of methods for targets that don't use the display. 2015-02-22 15:22:17 +00:00