Dominic Clifton
a7faa28ee9
Merge pull request #831 from borisbstyle/master
...
Yaw_fix default values
2015-05-04 09:09:26 +01:00
tricopterY
d7e668af9f
Bug fix to cater for additional number of Bytes MSP_RX_CONFIG
2015-05-04 08:56:42 +01:00
borisbstyle
16faced65a
Update mixer.c
...
Make it possible to still be able to disable the jump protection at all by configuring the highest configurable value.
2015-05-01 17:23:29 +02:00
BorisB
c3522882f2
yaw_fix default values
...
Pull request #802 has by default disabled yaw jump. That is fine on the
most of the configurations, but one of my multirotors had an angled
motor due to crash and this was causing weird behaviour.
It is also possible to configure very low values, which can even cause a
craft to not be able to stop after yaw and I am talking about the values
below 100 like 1.
Anyway this fix provides only valid configurable values what can't cause
any danger. Also default parameter is not unlimited anymore and is
configured to 200, which is a safe value to anybody who does the
upgrade.
cli.md is also edited
2015-05-01 13:45:22 +02:00
Pierre-A
05176a196a
Just a micro correction
2015-04-30 10:16:25 +02:00
Nicholas Sherlock
32884ad399
Fix missing blackbox D term logging on LuxFloat
2015-04-30 19:51:47 +12:00
Nicholas Sherlock
766f409bac
Allow yaw at low throttle for airplane mixes
...
Fixes #824
2015-04-29 16:39:08 +12:00
E Thomas
96de824f61
Add 'play_sound' CLI command
...
Added 'play_sound' CLI command; improved ACC_CALIBRATION_FAIL sound (to
make it less like ACC_CALIBRATION sound).
2015-04-27 03:46:57 -04:00
Dominic Clifton
cddf89135a
Bumping eeprom config version for PR #802
2015-04-26 20:40:24 +02:00
Dominic Clifton
330d47fb43
Merge pull request #802 from MJ666/Yaw_Fix
...
This fix is for avoiding yaw overshoot and bounce back for some configurations
2015-04-26 20:38:56 +02:00
Andre Bernet
c124398105
Timeout to exit the new loop in case we can't find something to send. Should never happen, but better safe than sorry.
2015-04-26 21:20:55 +04:00
Dominic Clifton
441b58c9c8
Allow failsafe config to be set via MSP. Add min/max channel values to
...
MSP_RX_CONFIG.
2015-04-26 18:27:12 +02:00
Andre Bernet
58973381c5
Remove unnecessary timeout
2015-04-26 18:27:01 +04:00
Andre Bernet
c41508fe6d
Loop through the smart port ID list locally (waiting for another main loop would cause the smart port request to time out and the slot would be lost)
2015-04-26 18:27:01 +04:00
Andre Bernet
bbc6ba5c31
Ignore outdated smart port requests that may have been buffered by the serial port handler
2015-04-26 18:27:01 +04:00
Andre Bernet
b634689412
Suppress smart port telemetry messages for disabled features
2015-04-26 18:27:00 +04:00
Dominic Clifton
b63e074d0c
Fix unit test compilation failure.
2015-04-25 11:00:32 +02:00
Dominic Clifton
f05a12863c
Update beeper code to allow targets that don't support GPS to be built.
2015-04-25 10:55:59 +02: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
064de090a0
Even more cleanups to the new beeper code. Seperate beeper mode and
...
priority via simpler static declaration - removes giant switch
statement. Use a new method when beeping out GPS status. Lower memory
usage. Smaller code size. Beeper priority now only handled in a single
place.
2015-04-25 10:39:14 +02:00
Dominic Clifton
85b524fa18
Cleanup beeper mode comments to reduce maintenance overhead when
...
adding/removing modes and/or refactoring.
2015-04-25 00:48:01 +02:00
Dominic Clifton
3b557d5f42
Further cleanups to the new beeper code.
2015-04-24 23:55:11 +02:00
Dominic Clifton
6360aa0dca
Cleanup new beeper code. Decreases code-size, removes unneeded state BEEPER_STOP, reduces needs for some comments, removes some magic numbers, simplifies logic and improves maintainability.
2015-04-24 23:10:35 +02:00
Michael Jakob
ca9b307850
Adjust variable data type for new CLI parameter
2015-04-23 17:30:21 +02:00
Michael Jakob
2fd79a7aa2
This fix is for avoiding yaw overshoot and bounce back for some
...
configurations
The hardcoded limit in the mixer and PID controllers 3-5 would be
removed
by default and will be configurable by CLI variables:
yaw_jump_prevention_limit, global setting (original fixed value was 100)
yaw_p_limit, per profile setting (fixed value was 300)
2015-04-23 17:30:20 +02:00
Dominic Clifton
bad0b1b04d
Fix random RX loss beep when using Serial RX receivers.
2015-04-23 16:36:56 +02:00
Dominic Clifton
7266d42466
Cleanup failsafe beeper code and update failsafe unit tests.
2015-04-23 15:55:04 +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
b2710b215e
Fix typo in comment
2015-04-22 23:19:42 +02:00
Dominic Clifton
407f71ce6e
Merge branch 'rework-failsafe'
2015-04-22 21:25:07 +02:00
Dominic Clifton
c085b2c61d
Fix CJMCU build (broken in 08efc2e
)
2015-04-22 20:24:23 +01:00
Dominic Clifton
581b0cd897
Fix compiler warning regarding failsafeIndicator
2015-04-22 21:15:47 +02:00
Dominic Clifton
fbc3a8e1eb
Correct rx channel min/max pulse checking so that it is inclusive to
...
match the documentation. Add first unit tests for code in rx.c.
2015-04-19 13:22:32 +01:00
Nicholas Sherlock
08efc2e66d
Fix tri_unarmed_servo (was broken by pid_at_min_throttle changes)
2015-04-19 21:37:51 +12:00
Dominic Clifton
20a421c4be
Add test to ensure that failsafe is not activated when disarmed and RX
...
signal loss is occurs.
2015-04-19 06:29:54 +01:00
Dominic Clifton
ebd5475a55
DISPLAY - Allow FC to boot normally if OLED display is not connected at
...
boot. FC can detect when the display is unplugged and recovers after
display I2C timeouts.
2015-04-18 20:13:46 +01:00
Dominic Clifton
d4eb558254
Ensure failsafe does not repeatedly call disarm when landed.
2015-04-18 19:00:20 +01:00
Dominic Clifton
a34e8f0bdb
Update the failsafe so that an extra cycle is not required between some
...
phase changes.
2015-04-17 00:10:35 +01:00
Dominic Clifton
eb74735ee8
First cut of unit tests for reworked failsafe.
...
In writing these tests a bug was discovered with RX_SERIAL and RX_MSP
failsafe delay timing - the configured delays are not honoured.
2015-04-16 23:35:56 +01:00
Dominic Clifton
a5c2c70541
Fix build for targets that don't use BARO_EOC_GPIO.
2015-04-16 20:56:50 +01:00
Dominic Clifton
6d5b44df7a
Fix boot failure on Flip32+ Deluxe Acro.
...
The problem was the MPU6050 EXTI handler was not registered due to baro
detection taking the only callback handler slot. When the MPU6050 EXTI
was configured the interrupt flag was never cleared which results in the
CPU being starved.
2015-04-16 20:26:20 +01:00
Dominic Clifton
4b7de19460
Update ALIENWIIF1/F3 specific failsafe configuration to fix broken build
2015-04-16 12:37:30 +01:00
Dominic Clifton
4b4e64e204
Fix unresolved references in unit tests for new failsafe code.
2015-04-16 10:57:27 +01:00
Dominic Clifton
35f78d8680
Update comment regarding rx_min_usec and rx_max_usec
2015-04-16 08:53:26 +01:00
Dominic Clifton
7f42149c30
Fix missing & operator.
2015-04-16 02:02:53 +01: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
Dominic Clifton
0ecf8be233
Merge pull request #743 from SamuelBrucksch/master
...
Fixed speed according to frsky protocol
2015-04-14 20:17:59 +01:00
Dominic Clifton
21191c0e14
Merge pull request #762 from bhuism/master
...
fix voltage calculation for smartport telemetry
2015-04-14 20:14:01 +01:00
Dominic Clifton
6eaca17cbd
fix unit test compilation errors caused by 0359a32
2015-04-14 19:54:48 +01:00
Dominic Clifton
beef2e87d7
Merge branch 'bugfix-sonar-drift' of git://github.com/nebbian/cleanflight into nebbian-bugfix-sonar-drift
2015-04-14 19:45:54 +01:00