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

9732 commits

Author SHA1 Message Date
githubDLG
93bdec6edc modify current meter scale
modify current meter scale according comments.
2018-09-19 08:42:03 +08:00
Bruce Luckcuck
325ba33a3f Fix zero throttle deadband when using switched 3D modes
When using switched 3D modes the throttle stick ranges from 0-100% controlling the motors in only one direction. The problem was that the 3D Throttle Deadband was being applied to the minimum throttle making a much larger throttle deadband from zero throttle.  So in the case of the default deadband of 50, the throttle stick movement would be equivalent to 100us of deadband (output is halved so requires double the input).  This would be like trying to fly with `min_check` set to 1100.

The fix uses `min_check` to set the deadband when in switched 3D modes. This produces the same throttle deadband as normal non-3D flight.
2018-09-18 20:39:04 -04:00
Michael Keller
811775748b Made CLI error messages consistent. 2018-09-19 10:35:13 +12:00
Bruce Luckcuck
a38242bc2e More optimizations and changes from review
Split the "normal" and "absolute" adjustments into two separate lists to avoid iterating through entries twice.
2018-09-18 13:36:58 -04:00
Bruce Luckcuck
044648ca12 Optimize in-flight adjustments to only process configured ranges
Previously the logic would process all possible ranges defined by MAX_ADJUSTMENT_RANGE_COUNT even if some (or even all) ranges were not configured.  This change first builds a list of configured ranges and only processes thos entries.

Reduces CPU load by skipping unnecessary processing and minimizes the impact of increasing the number of available ranges.
2018-09-18 10:31:58 -04:00
Michael Keller
949e44aae4 Fixed changed defines. 2018-09-19 02:27:51 +12:00
Michael Keller
ea6c21f1e6
Merge pull request #6447 from bforbort/vario
Enable Vario on targets that support barometers
2018-09-18 23:53:09 +12:00
Michael Keller
3a62d40372
Merge pull request #6697 from etracer65/cli_lookup_index_validation
Add CLI validation of parameters and print a corrupted value message
2018-09-18 23:39:18 +12:00
Michael Keller
3f41eb78a2
Merge pull request #6760 from andrejpodzimek/test_reintroduction
Fixing a wrong defintion of TARGET in the test Makefile.
2018-09-18 23:37:28 +12:00
Michael Keller
dcf0d8cd44
Merge pull request #6781 from aguindehi/master
Add target UAVPNG030MINI for the UAVP-NG HW-0.30-mini board
2018-09-18 23:32:00 +12:00
Bruce Luckcuck
0d7f8f5feb Fix CRSF telmetry GPS speed calculation
Calculation was assuming that the GPS groundspeed was in 1/10 m/s when in reality it's in cm/s units.  This was causing the value sent in telemetry to be 10 times too large.
2018-09-18 07:07:22 -04:00
githubDLG
3fcd83a9dc fix timer define 2018-09-18 17:14:04 +08:00
Amir Guindehi
566ad49a10 Changed PPM_IN_B from TIM_USE_PPM to TIM_USE_ANY and added a comment that this is a secondary PPM_IN which can be assigned if a user wants to use it. 2018-09-18 08:47:04 +02:00
githubDLG
6bdf3d7b67 CrazyBee F3 target update
1.add new variant: CrazyBee F3 DX
2.add Led_Strip and an extra pwm servo channel
3.change current meter scale according to hardware change
2018-09-18 14:45:21 +08:00
Amir Guindehi
cf8c1d7e0b Removed AVOID_UART1_FOR_PWM_PPM from UAVPNG030MINI target. As we do not share PPM/PWM pads and serial input this is unneeded. 2018-09-18 08:40:15 +02:00
borisbstyle
9b51fb3216
Merge pull request #6742 from ctzsnooze/update-defaults-for-yaw
defaults to improve yaw behaviour, ITermWindupPointInv already define…
2018-09-18 08:32:19 +02:00
jflyper
a2f39c8844 Refactor USB toward generic target
- Move conditionals from pg/usb.c to common_defaults_post.h
- Add detectPin to usbDev_s.
- Bump PG version for usbDev_s.
- Add resource manipulation for USB_DETECT.
2018-09-18 14:51:12 +09:00
Amir Guindehi
9e838e1451 Corrected USED_TIMERS in the UAVPNG030MINI target. 2018-09-17 20:45:42 +02:00
Amir Guindehi
aaff54cca1 Removed unneeded target definitions in target UAVPNG030MINI. 2018-09-17 17:36:23 +02:00
Amir Guindehi
54111b62d6 Fixed missing defines in UAVPNG030MINI target. It seems MPU6000_CS_PIN + MPU6000_SPI_INSTANCE got renamed to GYRO_1_CS_PIN + GYRO_1_SPI_INSTANCE. 2018-09-17 15:51:06 +02:00
Amir Guindehi
1722f20a34 Added UAVP-NG HW-0.30-mini target called UAVPNG030MINI. 2018-09-17 11:52:09 +02:00
Andrey Mironov
039f05f455 Added SPEDIXF4 target 2018-09-17 12:03:55 +03:00
Blaine
eb5af3a161 Add support for the ST LIS3MDL 3-Axis Magnetometer per #6437 2018-09-16 19:56:13 -07:00
Kenneth Mitchell
91dcea8053 Relocate G-force calculation. 2018-09-16 19:19:40 -04:00
Michael Keller
a252b1cb7e
Merge pull request #6770 from jflyper/bfdev-handle-null-spi-instance
Handle NULL SPI instance case
2018-09-17 10:13:53 +12:00
Michael Keller
5f4da5166b
Merge pull request #6765 from nyway/master
Add default CAMERA_CONTROL pin for DALRCF722DUAL
2018-09-17 09:32:51 +12:00
jflyper
8ee787043f Move default battery meter source to board config 2018-09-17 01:40:26 +09:00
ctzsnooze
9cc96bfa67 Grr missed two ITerm's in unit test clode 2018-09-16 12:04:57 +10:00
jflyper
4193890b27 Handle NULL SPI instance case 2018-09-16 03:09:45 +09:00
Thomas Miric
fb72fa7d03 Add GPS values and update others 2018-09-15 09:53:34 +02:00
ZhengNingwei
ed88607113 Add default CAMERA_CONTROL pin for DALRCF722DUAL
Add default CAMERA_CONTROL pin for DALRCF722DUAL
2018-09-15 11:07:14 +08:00
ctzsnooze
299a2d6b8b whitspace 2018-09-15 12:28:41 +10:00
ctzsnooze
ac5d2fbb3a set default to original 40% 2018-09-15 12:20:00 +10:00
ctzsnooze
37da70c555 rebase and recheck 2018-09-15 12:19:53 +10:00
jflyper
159cb5449b Avoid inactive telemetry port from being registered as a displayport device 2018-09-15 10:59:56 +09:00
ctzsnooze
80608f5f1c camelCase fix, else added, getMotorMixRange directly 2018-09-15 11:57:47 +10:00
ctzsnooze
586e674898 get motorMixRange only when needed, default inv to 1, editorial 2018-09-15 11:57:47 +10:00
ctzsnooze
942d1bb384 add const, remove float cast 2018-09-15 11:57:47 +10:00
ctzsnooze
f545637669 defaults to improve yaw behaviour, ITermWindupPointInv already defined at zero 2018-09-15 11:57:46 +10:00
Andrej Podzimek
dc76f7a473 Fixing a test TARGET definition and adding comments on disabled tests. 2018-09-14 00:44:39 +02:00
Kenneth Mitchell
1f81011f5e Fix OSD Flip arrow. 2018-09-13 18:24:55 -04:00
Michael Keller
8207dab3e5
Merge pull request #5868 from jflyper/bfdev-poc-migrate-to-dual-gyro
Configurable ACC/GYRO
2018-09-14 09:22:47 +12:00
borisbstyle
93c6f93ac1
Merge pull request #6738 from andrejpodzimek/per_target_tests
Adding a per-target unit test for timer metadata consistency.
2018-09-12 21:59:56 +02:00
Anders Hoglund
e475659e53 Fix issue 6722. SRXL data collection was not triggered. 2018-09-12 12:59:40 +02:00
borisbstyle
afccf50d96 Add Iterm Relax unittest // refactor
Refactor PID code Iterm Relax and Absolute control

Move defines for unittest to Makefile

Fix unittest isAirmodeActivated()

Absolute control unittests + optimizations

Fix dead code absolute control // unittests

Further optimizations to absolute control switch logic
2018-09-12 08:09:21 +02:00
Andrej Podzimek
c96c735430 Fixing mismatches in USED_TIMERS definitions. 2018-09-11 06:42:10 +02:00
Andrej Podzimek
9d553380c3 Adding a per-target unit test for timer metadata consistency. 2018-09-11 06:42:10 +02:00
borisbstyle
aa44fd6bbd Change default iterm_windup 2018-09-10 23:38:40 +02:00
borisbstyle
00dbaf9fa7 Cleanup code // add unittestst for iterm windup 2018-09-10 23:38:39 +02:00
Michael Keller
261f8d679a
Merge pull request #6732 from betaflight/bff3_features
Enable Iterm relax and rc smooth on bff3
2018-09-11 09:23:44 +12:00