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

9442 commits

Author SHA1 Message Date
Bruce Luckcuck
8f6f4bf4c4 Make gyro calibration period user configurable and rename moron_threshold
Gryo calibration period can be configured in 1/100 second intervals using `gyro_calib_duration` (default is 125 or 1.25 seconds).

Renamed the `moron_threshold` parameter to `gyro_calib_noise_limit`. Functionally it is unchanged.
2018-05-23 07:14:52 -04:00
Michael Keller
346201d8ac
Merge pull request #5949 from dbasch/gps_rescue_rc1
fix the requirement for easing on yaw changes by only changing relati…
2018-05-23 22:19:36 +12:00
Michael Keller
b26269ad38
Merge pull request #5938 from DieHertz/add-m25q32-flash-id
Added M25Q32 flash ID for completeness
2018-05-23 22:13:19 +12:00
Michael Keller
7ab2d0c7fd
Merge pull request #5935 from etracer65/cli_get_display_default
Add default display to cli get command if value has been changed
2018-05-23 22:09:55 +12:00
Michael Keller
48bc53fe9c
Merge pull request #5929 from mikeller/fix_rc_modes_from_gps_rescue
Fixed RC modes PG version after GPS rescue.
2018-05-23 22:07:30 +12:00
nyway
be11494344
Update target.h
Changed to FLASH_CS_PIN and FLASH_SPI_INSTANCE
2018-05-23 18:07:27 +08:00
Michael Keller
ac21aaac8b
Merge pull request #5928 from jflyper/bfdev-add-compass-exti-configurablility
Add compass exti configurability
2018-05-23 22:07:01 +12:00
nyway
1baacd3005
Update target.h
Delete TIM4  in  USED_TIMERS list
2018-05-23 16:38:12 +08:00
ZhengNingwei
09ed26f2ff Add new target FOXEERF405
Board - FOXEERF405

This board use the STM32F405RGT6 microcontroller and have the following features:
* 1024K bytes of flash memory,192K bytes RAM,168 MHz CPU/210 DMIPS
* The 16M byte SPI flash for data logging
* USB VCP and boot select button on board(for DFU)
* Stable voltage regulation,9V/2A DCDC BEC for VTX/camera etc.And could select 5v/9v with pad
* Serial LED interface(LED_STRIP)
* VBAT/CURR/RSSI sensors input
* Suppose IRC Tramp/smart audio/FPV Camera Control/FPORT/telemetry
* Supports SBus, Spektrum1024/2048, PPM. No external inverters required (built-in).
* Supports I2C device extend(baro/compass/OLED etc)
* Supports GPS
* Supports MPU6000 or ICM20689
2018-05-23 15:31:39 +08:00
supiiik
76e3e7aded dterm_setpoint_weight to uint16_t
dterm_setpoint_weight changet to uint16 with limit 0-2000
2018-05-23 08:39:45 +02:00
s0up
f06d717309 fix the requirement for easing on yaw changes by only changing relative to 0 2018-05-22 20:01:35 -07:00
Cheng Lin
d79fbf2938 change CLRACINGF7 target to use DMAR burst
change CLRACINGF7 to one timer and flash chip

test flash

Update CLRACINGF7 TARGET

update the file copyright
2018-05-23 10:04:19 +08:00
Diego Basch
c3412225f5 Fix GPS Rescue (needs yaw smoothing but works). 2018-05-22 15:42:14 -07:00
Bruce Luckcuck
361af53c2b Refactor to support target specific defaults
Also remove redundant call to targetConfiguration()
2018-05-22 17:34:39 -04:00
supiiik
6c15904a77
Update pid.c 2018-05-22 20:01:25 +02:00
supiiik
e4846f2ecc
New calculation for DTERM setpoint weight
I'm flying race with betaflight and on all my race quads I have setpoint on maximum value 2.54. But I feel, that it's not enough. This calculation of setpoint is almost same as old method up to number 2.0 (previously 2.54) but numbers above 2.0 have more aggresive impact on Dterm RC stick commands. With this calculation i found, that value 2.3 is fine for me. 2.3 is equivalent to 6,35 with old calculation method (which was not possible of course, because there is 8bit limit). With higher values have quad much sharper responses and feel more "locked in". 
I think, that most freestyle pilots have setpoint at values around 1, so there is almost no change and race pilots using higher values and for those, who are limited by the value 2.54 (like me and my friends) should be solution new setpoint calculation method.
This is my first pull request to betaflight, so I hope, that I did everything well according your rules
2018-05-22 19:59:47 +02:00
Andrey Mironov
fd17292843 Added M25Q32 Winbond ID 2018-05-22 09:11:30 +03:00
Bruce Luckcuck
40a88ada81 Abstracted the PG backup and restore for use in multiple places 2018-05-21 21:31:01 -04:00
Bruce Luckcuck
fc2f01cdf7 Add default display to cli get command if value has been changed
Presents the user with the default value for reference when displaying a parameter with the "get" command - but only if the current value differs from the default.
2018-05-21 17:25:20 -04:00
mikeller
557d704b9e Fixed RC modes PG version after GPS rescue. 2018-05-21 15:07:36 +12:00
jflyper
b12a4270ba Add compass exit configurability 2018-05-21 12:03:11 +09:00
s0up
7ad65031e2 revert failsafe code, re-implement commented unit tests, add degrees suffix for min/max angle in rescue mode 2018-05-20 19:14:09 -07:00
Michael Keller
041362614b
Merge pull request #5899 from dbasch/gps_rescue_beta
[GPS RESCUE] - Add GPS rescue as a flight mode and failsafe mode
2018-05-21 14:13:50 +12:00
s0up
cc1bb05a1e revert failsafe removal of else 2018-05-20 19:08:09 -07:00
Loopur
32a5ec4250 Add barometer sensor QMP6988 2018-05-21 10:06:50 +08:00
s0up
ac6b8088c9 add gps rescue mode 2018-05-20 16:28:17 -07:00
Michael Keller
f01926b09b Moved pointers back. 2018-05-20 15:28:59 -07:00
mikeller
be8df4483e Optimised 'serialPort_t' struct. 2018-05-20 15:28:59 -07:00
mikeller
d67073c8b6 Optimised struct. 2018-05-20 15:28:59 -07:00
mikeller
4e54b1d1a5 Eliminated inefficient serial function calls at runtime. 2018-05-20 15:28:59 -07:00
mikeller
847e050955 Reorganised static variables in SmartPort code. 2018-05-20 00:55:07 +12:00
Michael Keller
dd151b3636
Merge pull request #5914 from etracer65/cli_cmd_feedback
Add responses for cli commands that were missing them for consistency
2018-05-20 00:31:57 +12:00
Michael Keller
155a71def7
Merge pull request #5913 from etracer65/cli_whitespace_ignore
Ignore leading whitespace for cli command parameters
2018-05-20 00:31:24 +12:00
Michael Keller
0b40e1c673
Merge pull request #5912 from jirif/smartport_without_esc_telemetry
Smartport not working without USE_ESC_SENSOR
2018-05-20 00:30:55 +12:00
Loopur
d36858a220 Add baro sensor of QMP6988 2018-05-18 18:37:28 +08:00
Loopur
495cfb4d07 Add barometer sensor QMP6988 2018-05-18 16:26:07 +08:00
Michael Keller
a14302afe2
Merge pull request #5905 from etracer65/rc_interp_task
Break out rc interpolation as a separate task and run before pid controller and motor update
2018-05-18 13:51:53 +12:00
Bruce Luckcuck
119571f77e Add responses for cli commands that were missing them for consistency
Most cli commands give some feedback if the command was successful. However a few did not return a response to provide an indication that the command was successful. This change adds feedback responses for the following commands:

adjrange
color
led
rxrange
serial
servo
vtx
2018-05-17 18:05:40 -04:00
Bruce Luckcuck
4423bf9018 Ignore leading whitespace for cli command parameters 2018-05-17 15:48:14 -04:00
jirif
1f04d74b62 Smartport not working without USE_ESC_SENSOR 2018-05-17 18:24:43 +02:00
mikeller
60f3f7a8bc Removed unneeded declaration of 'updateRcCommands()'. 2018-05-17 23:30:41 +12:00
Michael Keller
b5521b927d
Merge pull request #5909 from etracer65/gyro_calib_cleanup
Gyro calibration cleanup and use floating point calculations for zero offset
2018-05-17 23:19:43 +12:00
Michael Keller
82500afb1b
Merge pull request #5902 from mikeller/optimise_gyro_sanity_checks_f7
Optimised gyro sanity checks for F7.
2018-05-17 23:16:38 +12:00
Michael Keller
edfa6cfcb0
Merge pull request #5900 from jflyper/bfdev-drop-stale-gyro-support
Gradually retire stale/unused acc/gyro support
2018-05-17 23:16:21 +12:00
Bruce Luckcuck
4913099803 Gyro calibration cleanup
Data type and variable name cleanup.

Calculate the calibration sum using floats to prevent possibilities of future overflows.

Rename the calibratingG element to cyclesRemaining to be more representative of its purpose. Change its data type to int32_t to avoid calculations with signed and unsigned variables.

Fix the zero offset calculation from the calibration results to return a floating point result rather than using integer math. This may result in slight improvements in reduced gyro drift.
2018-05-16 20:38:34 -04:00
Bruce Luckcuck
ce170990a2 Fix gyro calibration zero offset calculation
It seems like the gyro calibration sample count overflow fix (#5898) caused a downstream problem with the math to calculate the zero offset.  Casting the components of the formula to (float) solves the problem.
2018-05-16 13:06:07 -04:00
Bruce Luckcuck
fdee2e5228 Break out rc interpolation as a separate task and run before pid controller and motor update
Fixes an issue with motor "spikes" when rc interpolation was enabled for throttle. The problem was that the smoothing was happening too late in the sequence and the earlier process subTaskMotorUpdate() would use the unsmoothed throttle value in the mixer if new rx data had come in between the last and current PID loop.  Also because the setPointRate was calculated at the end of the smoothing, the PID controller would always be using the value from the previous loop iteration.
2018-05-16 10:21:29 -04:00
Michael Keller
1c605c3842
Merge pull request #5898 from etracer65/gyro_cal_overflow
Fix numeric overflow for gyro calibration samples when using 32KHz sampling
2018-05-16 22:55:19 +12:00
Michael Keller
ba1cff8b39
Merge pull request #5889 from jflyper/bfdev-poc-pg-array-resource
Add handling for array of PG structures in cli resource command.
2018-05-16 22:54:51 +12:00
mikeller
0263428be7 Optimised gyro sanity checks for F7. 2018-05-16 22:45:50 +12:00