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

3173 commits

Author SHA1 Message Date
Dominic Clifton
46f6ff403e Merge pull request #1436 from ProDrone/fix_waiting_for_data_problem
Fix for Waiting for data (in configurator) problem on F1 targets
2015-10-29 21:44:11 +00:00
Dominic Clifton
939f4d6da1 Merge pull request #1423 from AustinSaintAubin/patch-2
Updated Defaults for PIDs.
2015-10-29 21:38:08 +00:00
Dominic Clifton
46ad479886 Merge pull request #1416 from lichtl/sparky-compass-fix
SPARKY - Correcting default compass alignment
2015-10-29 21:36:06 +00:00
Dominic Clifton
3a84885509 Merge pull request #1374 from ProDrone/improved_rx_failsafe_detection
RX - Improved RX failsafe detection & handling
2015-10-29 21:34:35 +00:00
Dominic Clifton
d252a796e5 Merge pull request #1419 from Pierre-A/fix_HottTelemetry_timing
Fix Hott telemetry timing issue
2015-10-29 21:31:37 +00:00
Dominic Clifton
ade1ef8ac1 Merge branch 'readerror67-usart1_dma' 2015-10-29 21:23:13 +00:00
Read Error
4eb6581b76 Allow USART1 to be used for SERIAL_RX 2015-10-29 21:22:08 +00:00
Read Error
628bd6fb44 F3 ADC fix. 2015-10-29 21:22:06 +00:00
ProDrone
c40db74e61 Working - except when exiting from bootloader
Fixes the `Waiting for Data` problem in configurator when:

- Clicking on `Save and Reboot` button
- Clicking on `Flash Firmware`  button

When the system reboots after programming the new firmware it still
needs a connect/disconnect cycle to work normal. This cannot be solved
since the bootloader is a fixed program in ROM.

Fix is for F1 targets and only tested on naze boards.
2015-10-27 20:09:59 +01:00
Pierre-A
5376dc4ce3 Fix Hott telemetry timing issue 2015-10-22 17:02:44 +02:00
Austin St. Aubin
d85e33cc00 Updated Defaults for PIDs.
Updated Defaults for PIDs & a few others.
Also I would like to share a good doc with the Cleanflight community that some might find helpful when working with CLI.
Google Doc: [Cleanflight - CLI Settings Editor - MASTER](https://docs.google.com/spreadsheets/d/1w_oMmGCGX0DwAlVX7pBPtD-X-STbLmb4nSxLJL-hXmc/edit?usp=sharing)
2015-10-21 17:04:41 -05:00
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
Pierre-A
48c8802153 Fix Hott telemetry timing issue 2015-10-20 14:48:57 +02:00
Lichtl
82c6ef11af Correcting wrong compass alignment reported in #1407 2015-10-20 09:48:22 +02: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
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
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
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
Petr Ledvina
fba2c3d5cc safety check in altitude code
Make sure altitude is in expected range
2015-10-12 19:58:09 +01:00
Petr Ledvina
b723f94c1f improve code readability
it is possible to use traling comma, it does improve git diffs etc.
2015-10-12 19:58:08 +01:00
Petr Ledvina
e8f0e0d97c use #defines for ADC on stm32f10x
Make stm32f103 ADC more similar to stm32f30x
2015-10-12 19:58:07 +01:00
Petr Ledvina
48cdf650d9 improve container_of macro 2015-10-12 19:58:06 +01:00
Petr Ledvina
dc5a888633 cpm16 / cmp32 functions
used to compare timestamps with correct wrap. A bit more readable that typecasting in code. Only few uses replaced now
2015-10-12 19:58:05 +01:00
Dominic Clifton
3cdc4a23b5 Merge pull request #1370 from AustinSaintAubin/patch-1
Custom Airplane with Differential Thrust
2015-10-08 14:23:09 +01:00
Dominic Clifton
233753009b Disable GTune on CC3D build (code size). 2015-10-06 21:25:53 +01:00
Dominic Clifton
57e5794ae1 Use the right mode (aka BOX) - replaces autotune mode. This will help
with migrations.
2015-10-06 21:25:40 +01:00
Dominic Clifton
d04bf8abd7 Merge branch 'MJ666-Harakiri_PID_update' 2015-10-06 20:18:56 +01:00
Dominic Clifton
123a4ccfc5 Merge branch 'GTune' of https://github.com/MJ666/cleanflight into
MJ666-Harakiri_PID_update

Conflicts:
	Makefile
	src/main/blackbox/blackbox_fielddefs.h
	src/main/flight/pid.c
	src/main/io/serial_msp.c
	src/main/mw.c
	src/main/target/ALIENWIIF3/target.h
	src/main/target/CC3D/target.h
	src/main/target/NAZE/target.h
	src/main/target/NAZE32PRO/target.h
	src/main/target/SPARKY/target.h
2015-10-06 20:16:37 +01:00
Dominic Clifton
d36da111b2 Delete autotune. 2015-10-06 19:38:02 +01:00
Dominic Clifton
6e59eb235d Bump version to 1.11.0. 2015-10-06 19:30:13 +01:00
Dominic Clifton
ba2e22ab89 Add RMDO target. 2015-10-06 19:00:53 +01:00
Sean Vig
456396b25a Use fixed point calculation for BMP280 barometer
Substitute the floating point calculation for the comparably much faster
64-bit calculation recommended for a Cortex-M3 (floating point is
recommended only in PC applications with FPU) [1]. Even if we have an
FPU, we round the temperature to the nearest 1/100th of a degree and the
pressure to the nearest 1 Pa, both of which are within the limits of the
fixed-point algorithm's accuracy.

Conflicts:
	src/main/drivers/barometer_bmp280.c
2015-10-06 18:33:23 +01:00
Sean Vig
e5f3f1794f Add tests for BMP280 barometer
Also get rid of the curved quotes for normal quotes (") and make
compensation computations static.
2015-10-06 18:25:59 +01:00
Dominic Clifton
0f87d1ff87 Merge pull request #1326 from cleanflight/nazerev6
Naze32 Revision 6 support
2015-10-06 18:23:35 +01:00