Commit Graph

3419 Commits

Author SHA1 Message Date
ProDrone a64e2c4f1a Improved RX failsafe detection & handling
modified debug output (currently disabled)

To solve problem as indicated here:
https://github.com/cleanflight/cleanflight/issues/1266#issuecomment-135640133

and here:
https://github.com/cleanflight/cleanflight/pull/1340

and here:
https://github.com/cleanflight/cleanflight/pull/1342

Tested on FrSKY X4RSB with latest CPPM firmware (non-EU version).
Firmware filename: X4R-X4RSB_cppm_non-EU_150630

In both SBUS and CPPM mode.

---
Added delay to rxfail detection

All channels are monitored for bad (out of valid range) pulses.
On bad pulses channel data will HOLD the last value for a period of
MAX_INVALID_PULS_TIME (300ms) before starting rxfail substitution.
This should prevent a too aggressive reaction to small dropouts.

---
Init ARM switch rc channel to OFF for safety

Initialize ARM switch to OFF position when arming via switch is defined.
To prevent arming during init when RX is disconnected and/or when RX is
connected but TX is still off.

---
Modified rx_rx_unittest.cc

Adapted because rxInit() parameters changed.
Added tests for ARM switch initialization.
No further tests added.

---
Move smoothing of rcData to rcCommand

Commit from @borisbstyle pr #1418
rc_smoothing function has changed to leave rcData unchanged in #1418
2015-10-21 01:50:59 +02:00
borisbstyle a31a962467 Move smoothing of rcData to rcCommand 2015-10-20 20:26:35 +02:00
Pierre-A 48c8802153 Fix Hott telemetry timing issue 2015-10-20 14:48:57 +02:00
borisbstyle 2b722b6f82 Merge remote-tracking branch 'digitalentity/cc3d-buzzer-on-pin6' into betaflight 2015-10-20 11:12:32 +02:00
borisbstyle 18c972f9a8 Merge pull request #22 from MotoLab/beep_inhibit
Inhibit the buzzer on USB power, if batterycellcount < 2
2015-10-20 09:54:11 +02:00
Lichtl 82c6ef11af Correcting wrong compass alignment reported in #1407 2015-10-20 09:48:22 +02:00
Moto Moto bbf70c6370 Inhibit the %^0$ buzzer on USB power 2015-10-19 22:19:38 -05:00
Dominic Clifton efc31f9d57 Merge pull request #1409 from readerror67/f3adcfix
F3 ADC fix.
2015-10-19 23:02:41 +01:00
Dominic Clifton 7323b47ba4 Merge pull request #1408 from readerror67/clbrmpufix
COLIBRI RACE gryoDetection fix.
2015-10-19 23:02:22 +01:00
Read Error bd62fab916 F3 ADC fix. 2015-10-17 08:35:59 -04:00
Read Error f70958b6d3 COLIBRI RACE gryoDetection fix. 2015-10-17 08:32:30 -04:00
borisbstyle 086e383602 Merge Cleanup for old CC3D INT Code
more merge errors CC3D
2015-10-16 13:30:02 +02:00
borisbstyle eb138dc601 COLIBRI_RACE MPU_DATA_READY Handler
Colibri Race MPU INT support

revert some things

revert more

Update Colibri Race Binaries

Update target.h Colibri_race

Update Target.h
2015-10-16 12:41:49 +02:00
Dominic Clifton ddc5a5f15f Add IRQn_Type to tests to fix compilation errors. 2015-10-16 10:40:59 +02:00
Petr Ledvina 4e86cd01eb Remove unused pointes if SKIP_CLI_COMMAND_HELP is defiend 2015-10-16 10:40:59 +02:00
Petr Ledvina 7a1342bce5 Make CW0_DEG default in alignSensors 2015-10-16 10:40:58 +02:00
Juan González 479315a49b Little cleanup in Gtune documentation
It was a little bit hard to read with only two paragraphs, and looking at the raw .md file it was clear that having just two paragraphs was not the original intention.
2015-10-16 10:40:58 +02:00
Dominic Clifton 4da387e93d More cleanup of MPU driver code. Support MPU INT on CC3D and Naze32
Rev6.

MPU6050 Correction From merge
2015-10-16 10:40:54 +02:00
Dominic Clifton 2c9d7450ac Add MPU INT support to mpu6500 driver. 2015-10-16 10:34:43 +02:00
Dominic Clifton 526f4777a2 Add IRQn_Type to tests to fix compilation errors. 2015-10-16 08:24:19 +01:00
Petr Ledvina fcc9556610 Remove unused pointes if SKIP_CLI_COMMAND_HELP is defiend 2015-10-15 23:37:21 +01:00
Petr Ledvina bea9ae729e Make CW0_DEG default in alignSensors 2015-10-15 23:34:46 +01:00
Dominic Clifton f4622f4ed8 Merge pull request #1391 from opsidao/patch-2
Little cleanup in Gtune documentation
2015-10-15 23:12:02 +01:00
Dominic Clifton 9b054f6fde More cleanup of MPU driver code. Support MPU INT on CC3D and Naze32
Rev6.
2015-10-15 23:04:55 +01:00
Dominic Clifton 026afb22c7 Add MPU INT support to mpu6500 driver. 2015-10-15 21:07:54 +01:00
borisbstyle 90398ba3a3 Update Naze Target (Rev6 gyro sync support)
Needs some testing on Rev6
2015-10-15 17:07:46 +02:00
borisbstyle 5b14ab6004 Add mpuIntExtiInit for MPU6500 drivers 2015-10-15 17:06:54 +02:00
borisbstyle 94ba158d39 Update Binaries (Betaflight Final // Failsafe Fixed)
Update binaries / remove old binaries
2015-10-15 10:08:00 +02:00
borisbstyle 05dec6c21e Revert "Remove OpenPilot bootloader support."
This reverts commit 0150abf1bc.

Conflicts:
	src/main/target/CC3D/target.h
2015-10-15 09:59:29 +02:00
borisbstyle e25087bbbc failsafe_off_delay default
default

Max Invalid Pulse to 6

Max Invalid Pulse to 10

Max Invalid Pulse to 20
2015-10-15 09:53:38 +02:00
ProDrone 44b751cd5a Added delay to rxfail detection
Added a bad pulse counter to all channels.
More than MAX_INVALID_PULS_COUNTS bad pulses required before
starting rxfail substitution.
This should prevent a too aggressive reaction to small dropouts.
2015-10-15 09:53:37 +02:00
ProDrone 802b2e0ea9 Improved RX failsafe detection & handling
modified debug output (currently disabled)

To solve problem as indicated here:
https://github.com/cleanflight/cleanflight/issues/1266#issuecomment-135640133

and here:
https://github.com/cleanflight/cleanflight/pull/1340

and here:
https://github.com/cleanflight/cleanflight/pull/1342

Tested on FrSKY X4RSB with latest CPPM firmware (non-EU version).
Firmware filename: X4R-X4RSB_cppm_non-EU_150630

In both SBUS and CPPM mode.
2015-10-15 09:53:23 +02:00
digitalentity a2743f50e9 Moved buzzer to Out6
Removed PWM12 (Out6) from pwm_mapping
Updated documentation
2015-10-14 22:30:54 +10:00
Juan González 81156c5e0f Little cleanup in Gtune documentation
It was a little bit hard to read with only two paragraphs, and looking at the raw .md file it was clear that having just two paragraphs was not the original intention.
2015-10-13 11:29:14 +02:00
cmenard 23c534823e RMDO: Make firmware fit all variants 2015-10-13 00:45:28 +02:00
cmenard e2ca908508 RMDO: Fix build in BetaFlight Bee 2015-10-13 00:45:27 +02:00
cmenard 84523f4ea6 Fix RMDO target build 2015-10-13 00:45:25 +02:00
cmenard 18aaf7a892 RMDO: Bring up to date with GTUNE and SERIAL_1WIRE 2015-10-13 00:45:24 +02:00
borisbstyle 1fed2579c1 Betaflight Final 2015-10-13 00:30:20 +02:00
borisbstyle 4b3ba927e9 Merge branch 'master' into betaflight
Conflicts:
	src/main/blackbox/blackbox_io.c
	src/main/drivers/serial_usb_vcp.c
	src/main/flight/imu.c
	src/main/mw.c
	src/main/target/CC3D/target.h
2015-10-12 23:53:43 +02:00
borisbstyle 4b7fd5a2de Restore Original CF Failsafe 2015-10-12 23:38:52 +02:00
Dominic Clifton 0150abf1bc Remove OpenPilot bootloader support.
This can be added back at a later date if required if enough code-size
savings can be found, for instance, the removal of the CLI.
2015-10-12 20:44:51 +01:00
Dominic Clifton 8402f4512a Merge pull request #1276 from sherlockflight/3d-pid-at-min-throttle
Add support for pid_at_min_throttle = 0 for 3D flight
2015-10-12 20:27:53 +01:00
Dominic Clifton e5065609a1 Merge branch 'sherlockflight-blackbox-serial-budget' 2015-10-12 20:14:33 +01:00
Dominic Clifton a319394f6b Merge branch 'blackbox-serial-budget' of https://github.com/sherlockflight/cleanflight-dev into sherlockflight-blackbox-serial-budget
Conflicts:
	src/main/blackbox/blackbox.c
2015-10-12 20:14:20 +01:00
Dominic Clifton 7384e9d4d4 Merge branch 'ledvinap-improvement-local' 2015-10-12 19:58:22 +01:00
Petr Ledvina 8f3d9fae9a unify `typedef struct name_s {} name_t;` naming convention 2015-10-12 19:58:12 +01:00
Petr Ledvina 1613c2d572 use full declaration for ImuInit 2015-10-12 19:58:12 +01:00
Petr Ledvina 6999cf1742 Simplify #ifdef nesting 2015-10-12 19:58:11 +01:00
Petr Ledvina 8f6de3e553 Remove unnecessary floating-point calculation 2015-10-12 19:58:10 +01:00