1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 17:55:30 +03:00
Commit graph

9442 commits

Author SHA1 Message Date
Dominic Clifton
c142e3dfe9 Rename minLimit/maxLimit to angleAtMin and angleAtMax. Remove unneeded
MSP_SET_SERVO_LIMIT.  Bump MSP API version.  Add basic sanity checks to
MSP_SET_SERVO_CONF, reset all servos and adhere to the msp packet's data
size.
2015-06-28 12:22:14 +01:00
Mauro Mombelli
da6ee6ffb7 first extract from Tilting for Servo pull request 2015-06-28 12:06:33 +01:00
Mauro Mombelli
9277a8b7bf fixed a parameter error in unit test 2015-06-28 12:06:32 +01:00
Dominic Clifton
a9b5ad71b2 Fixing MSP_RAW_IMU. See 26e950b433. Closes #1061.
Must have been a late one.
2015-06-27 21:15:51 +01:00
borisbstyle
10f2d35759 Soft Filtering (Gyro, Dterm, Pterm)
pterm_cut_hz added

Let's play with this as well to get more noise filtered

Code Cleanup

Make filter more flexible for reuse

rewrite correction pterm

Define static delta in filter

Fix array count

ident

return function for filter

Filter Function enhanced

Full software filtering (DTerm, PTerm, Gyro, Acc)

Normalize Variables

Revert Back gyro settings

Bugfix gyro/acc filter // (MPU60xx equalize lpf settings)

Moved filtering to mw.c

This has been done to prevent reusing old cycletime for filter function.

acc_cut_hz removed (not needed)

Harakiri zero fix
2015-06-27 14:13:10 +02:00
Steveis
f2833f9dac MS5611 unit test for pressure calculations 2015-06-26 22:19:31 +01:00
Dominic Clifton
6323fd15d6 SPRacingF3 - Support spektrum bind on UART3 RX. 2015-06-26 21:55:47 +01:00
Konstantin Sharlaimov
bd6297f0cc Switch to cleaner way of detecting a soft-reset on STM32F103 based targets using RCC->CSR register. 2015-06-26 21:55:46 +01:00
Dominic Clifton
11493cd01a STM32F3 - Fix softserial RX. 2015-06-26 21:02:07 +01:00
Dominic Clifton
d17e89cc6b Fix incorrect index access in old timer irq handler code. 2015-06-26 20:11:39 +01:00
Dominic Clifton
64b68cda59 Fix some indentation & tab usage. 2015-06-26 18:16:39 +01:00
Dominic Clifton
d2f878ef00 Removing unused PIDWeight variable. 2015-06-26 17:49:34 +01:00
Dominic Clifton
0608601644 Ensure that all AUX channels are forwarded to any available unused servo
output.

Fixes #1051.
2015-06-26 17:22:47 +01:00
Dominic Clifton
3f97f855b5 SPRacingF3 Allow CH5-8 to be used as servo outputs (e.g. forwarding aux
channels)
2015-06-26 17:21:14 +01:00
Dominic Clifton
d26a2ceef2 SPRacingF3 - Allow SoftSerial1 (CH5/6) to be used when Sonar is used
(CH7/8).
2015-06-26 15:18:08 +01:00
Dominic Clifton
2436ccbaf5 SPRacingF3 - Enable Softserial on CH4/5 and CH7/8 (RX/TX). 2015-06-26 15:16:52 +01:00
Dominic Clifton
68abdd288d SPRacingF3 - Fix interrupt handler defintions. 2015-06-26 14:43:29 +01:00
Nicholas Sherlock
0ee9eb797d Reshuffle includes due to blackbox main state struct no longer public 2015-06-27 01:26:16 +12:00
Nicholas Sherlock
505b75ce2d Avoid logging an S frame at the same time as an I frame unless req'd
This reduces our instantaneous data rate
2015-06-27 01:26:16 +12:00
Nicholas Sherlock
0811367f24 Add logging of failsafe phase (to slow frames) 2015-06-27 01:26:16 +12:00
Nicholas Sherlock
69ea90f522 Blackbox: add new "slow frames" for rarely updated flight mode flags 2015-06-27 01:26:16 +12:00
Nicholas Sherlock
080da53fdc Remove redundant and unused 'blackbox version' header from logs 2015-06-27 01:24:58 +12:00
Nicholas Sherlock
583ff39bbf Add blackbox support for RSSI logging 2015-06-26 16:20:53 +12:00
Dominic Clifton
73d7bc6187 Merge pull request #985 from MJ666/AlienWii_update
Remove failsafe_trottle setting from AlienWii32 defaults
2015-06-25 02:45:31 +01:00
Dominic Clifton
a7532c6012 Merge pull request #942 from nzmichaelh/tidy
various: improve readability by using enums and ARRAYLEN()
2015-06-25 02:44:55 +01:00
Dominic Clifton
87b1d21da8 Merge pull request #1041 from nzmichaelh/ld-include2
ld: split the common linker commands out into a shared file.
2015-06-25 02:08:53 +01:00
Dominic Clifton
26e950b433 Remove duplicate code from MSP_RAW_IMU. Saves a ~24 bytes of flash
space and results in easier to read code due to less nesting.
2015-06-24 23:17:59 +01:00
Dominic Clifton
4fcecbd667 De-duplicate vector matrix calculation code.
Saves 248 bytes of flash space when using -O0.
2015-06-24 22:33:36 +01:00
Dominic Clifton
6ce64d8ef9 Fix STM32F3Discovery ACC sensor reads. Fixes #384. 2015-06-24 21:51:55 +01:00
Dominic Clifton
d5b44f69c1 Merge branch 'sport_fixes' of https://github.com/kilrah/cleanflight into kilrah-sport_fixes 2015-06-24 20:58:33 +01:00
Dominic Clifton
e5a50654e3 Improve code consistency by using function prefixes for telemetry
functions.

PR's to make similar changes to other non-static functions are welcomed.
2015-06-24 20:26:41 +01:00
Dominic Clifton
1673ad8b07 Merge branch 'telemetry-switch' of https://github.com/Netsplits/cleanflight into Netsplits-telemetry-switch 2015-06-24 20:13:26 +01:00
U-possi\David
13d923a997 Smartport telemetry fixes. Closes #818 and #877. 2015-06-24 20:08:01 +01:00
Steveis
44475985a2 MS5611 CRC Unit test 2015-06-24 20:07:01 +01:00
Alexander Fedorov
00bff6485b Add logging of the inflight adjustment events to the blackbox 2015-06-23 15:20:22 +02:00
Michael Hope
b26efd6256 ld: split the common linker commands out into a shared file.
Done to make it easier to add new sections (like a parameter registry
section) in the future.

Signed-off-by: Michael Hope <mlhx@google.com>
2015-06-22 08:49:16 +02:00
Dominic Clifton
5dee96c3e0 Save a few bytes of flash by aligning BSS data. 2015-06-21 23:08:43 +01:00
Steveis
75293f4231 Refactored delay code in bmp085TestEOCConnected 2015-06-20 12:41:41 +01:00
Steveis
5bf7a470c4 Test for EOC allowing external I2C baro on acro boards 2015-06-20 11:02:39 +01:00
Dominic Clifton
7db626747d Allow all models to use servo tilt.
See #1006
2015-06-10 15:31:47 +01:00
Dominic Clifton
889b14df5f Support pan and tilt on fixed wing. Fixes #1006
The general idea is that nothing calls pwmWriteServo except for
writeServos() and that writeServos() knows which servos it has used.
2015-06-10 14:30:45 +01:00
Dominic Clifton
9a8a31676b Reduce maximum servos from 10 to 8.
1) the 2 extra servos were not used for anything, yet.
2) the MSP packet to set ALL the servo configurations in one go is
larger than the MSP input buffer size.

Likely the MSP_SET_SERVO_CONF should be updated with command that takes
an index of a servo to configure, as per mode ranges/colors/leds/etc.

Fixes #1002
2015-06-10 13:31:04 +01:00
Dominic Clifton
78b52c53d5 Calculate maxThrottleDifference before use.
* Easier to understand.
* Reduces code size by 32 bytes.
2015-06-10 12:15:50 +01:00
Dominic Clifton
4e6a268eb5 Merge pull request #993 from nzmichaelh/cxx-send
various: tidy up various things found when building with a C++ compiler.
2015-06-10 11:36:55 +01:00
Michael Hope
3740779912 serial_cli: use the reentrant version of strtok().
Newlib's strtok() allocates memory and causes malloc() to be linked
in.  Use the reentrant version instead.

Saves 336 bytes.

Signed-off-by: Michael Hope <mlhx@google.com>
2015-06-10 11:06:33 +01:00
Michael Hope
48024e512e various: use float instead of double.
Add 'f' suffixes to some constants so they don't get silently promoted
to double.  Use roundf() instead of round().

Saves 208 bytes of flash.

Signed-off-by: Michael Hope <mlhx@google.com>
2015-06-10 11:06:21 +01:00
Dominic Clifton
084626a70f SPRacingF3 - Allow use of a different external mag. 2015-06-10 03:36:53 +01:00
Dominic Clifton
bad3b11e28 Replace servo magic numbers and comments with constants. 2015-06-04 22:30:44 +01: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
Michael Hope
c1d1ef0ac9 sensors: pull the initialise function out into a header.
Signed-off-by: Michael Hope <mlhx@google.com>
2015-06-04 22:33:18 +02:00