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

15445 commits

Author SHA1 Message Date
Michael Keller
f53d812fc8
[MSP] Correctly report the configured and active OSD type (#9333)
[MSP] Correctly report the configured and active OSD type
2020-01-14 11:42:06 +13:00
Michael Keller
728acc3361
Merge pull request #9348 from jflyper/bfdev-g4
[G4][LIB] Import FW library V1.0.0
2020-01-14 07:05:23 +13:00
jflyper
5eef822b6a [G4][LIB] Import FW library V1.0.0 2020-01-13 23:55:09 +09:00
Michael Keller
b5237bba93
Fix SITL target build and runtime segfaults (#9342)
Fix SITL target build and runtime segfaults
2020-01-14 00:47:27 +13:00
Matylitski Yury
548379bab0 fixed SITL target debug build and runtime segfaults. Added motorPwmDevice vTable functions and IOConfigGPIO stub 2020-01-12 23:16:25 +03:00
Alberto García Hierro
65f84f2c86 [MSP] Correctly report the configured and active OSD type
- Tell the OSD driver the type of displayPort, so it can be retrieved
later.
- Use OSD driver code instead of device specific code to handle
MSP_OSD_CONFIG response while minimizing driver specific code.
- Add flag for signaling the use of FrSky OSD (bit 3).
- Rename OSD_FLAGS_MAX7456_DETECTED to OSD_FLAGS_OSD_DEVICE_DETECTED.
Since we only support one OSD device type at a time, we can use the
same bit to signal wether the hardware has been detected.
2020-01-04 12:35:09 +00:00
Michael Keller
6433aaa688
switched pin desriptions (#9321)
switched pin desriptions
2019-12-29 12:37:01 +13:00
Michael Keller
1bd93090a7
ICM42605 sensor support (#9316)
ICM42605 sensor support
2019-12-28 08:52:15 +13:00
DusanF
d37f7771c9
Update target.h 2019-12-27 16:59:59 +01:00
Michael Keller
9e99ad1ab3
Merge pull request #9288 from etracer65/frame_rate_calc_srxl2
Add protocol level receiver frame rate measurement for SRXL2
2019-12-27 18:17:38 +13:00
Dominic Clifton
88d9a9c96b NUCLEOH743 - Enable ICM42605 for CI code visibility. 2019-12-26 20:09:47 +01:00
Dominic Clifton
3b3ead25f0 ICM42605 - Initial sensor support. 2019-12-26 20:09:47 +01:00
Bruce Luckcuck
e8e258da08 Add protocol level receiver frame rate measurement for SRXL2 2019-12-27 01:46:32 +13:00
Michael Keller
4ba9a6ca75
Reset protocol level RX frame delta after reading (#9281)
Reset protocol level RX frame delta after reading
2019-12-27 00:54:19 +13:00
Michael Keller
dcdcc9bd5e
Unify rx spi exti handling (#9268)
Unify rx spi exti handling
2019-12-26 12:50:53 +13:00
Michael Keller
e3c9cea554
Prevent EXTI handler from crashing when EXTI lines 16-32 are us… (#9311)
Prevent EXTI handler from crashing when EXTI lines 16-32 are used.
2019-12-26 12:49:04 +13:00
Dominic Clifton
38ffacf80e Prevent EXTI handler from crashing when EXTI lines 16-32 are used.
Refer to "EXTI Event Input mapping" table in MCU reference manuals.
2019-12-24 23:09:32 +01:00
Michael Keller
5812d6291c
Fix imuComputeQuaternionFromRPY warning. (#9304)
Fix imuComputeQuaternionFromRPY warning.
2019-12-25 00:20:22 +13:00
Michael Keller
ba7b66080f
Merge pull request #9309 from TonyBlit/fix_sat_list
Clear sat list to avoid showing old data
2019-12-25 00:18:55 +13:00
Michael Keller
29723eae35
Revert "BugFix: time to first fix was sometimes abnormally high… (#9308)
Revert "BugFix: time to first fix was sometimes abnormally high due t…
2019-12-25 00:17:45 +13:00
mikeller
0dcdeaa105 Unified the handling of the EXTI pin for SPI RX. 2019-12-24 16:05:36 +13:00
Tony Cabello
c08acd3eb4 Revert "BugFix: time to first fix was sometimes abnormally high due to improper configuration of Ublox GPS"
This reverts commit 751e1ae444.
2019-12-23 23:07:10 +01:00
Michael Keller
534c396f14
Added smartport pitch and roll sensors (#9292)
Added smartport pitch and roll sensors
2019-12-24 08:40:19 +13:00
Michael Keller
9e925e4aec
Fix "may be used uninitialized" debug build warnings (#9303)
Fix "may be used uninitialized" debug build warnings
2019-12-24 08:23:02 +13:00
Bruce Luckcuck
b471577a14 Fix "may be uninitialized" debug build warnings 2019-12-23 12:44:00 -05:00
Mark Hale
a0166c4211 Added pitch and roll sensors.
Adds parity with other telemetry protocols (e.g. crsf).
2019-12-23 16:07:10 +00:00
Tony Cabello
46c0d2da7e Clear sat list to avoid showing old data 2019-12-23 12:19:56 +01:00
Michael Keller
c9674fd488
Move targets into legacy targets for 4.1.3. (#9181)
Move targets into legacy targets for 4.1.3.
2019-12-23 23:25:49 +13:00
Kenneth Mitchell
b57b280584
Fix imuComputeQuaternionFromRPY warning. 2019-12-22 09:40:24 -05:00
Michael Keller
f3036221ea
Fix CLI rc_smoothing_info frame rate display formatting (#9289)
Fix CLI rc_smoothing_info frame rate display formatting
2019-12-22 14:34:51 +13:00
Michael Keller
880ee85f7d
Fix undefined reference to mag when USE_MAG isn't defined (#9290)
Fix undefined reference to mag when USE_MAG isn't defined
2019-12-22 14:31:21 +13:00
Michael Keller
2c51c1ab94
SRXL2 frame drops reported more appropriately (#9291)
SRXL2 frame drops reported more appropriately
2019-12-22 14:17:15 +13:00
Michael Keller
3345b56ad1
Fix CLI vtx command parsing, range checks, and output order in… (#9295)
Fix CLI vtx command parsing, range checks, and output order in diff
2019-12-22 13:51:34 +13:00
Bruce Luckcuck
682e989057 Fix CLI vtx command parsing, range checks, and output order in diff
Change to use vtxTableConfig PG settings for validation rather than the current runtime values for bands, channels and power levels. Fixes command parsing when restoring a `diff` as the `vtxtable` runtime values won't be available until after the reboot.

Fix "off by one" range check for power level that was preventing use of the highest power level configured in `vtxtable`.

Reverse the order of the `vtxtable` and `vtx` outputs in a `diff`/`dump` so that `vtxtable` settings will be applied first as the `vtx` settings are dependent on them.
2019-12-17 09:52:22 -05:00
MiguelFAlvarez
544ed94adf Correct the behavior of dropped frames to report RX_FRAME_DROPPED instead of RX_FRAME_FAILSAFE. 2019-12-14 19:50:04 -06:00
Bruce Luckcuck
d890c3afcc Fix undefined reference to mag when USE_MAG isn't defined
The `mag` variable is defined as an `extern` in compass.h but the implementation in compass.c is bounded by `#ifdef USE_MAG`. So if `USE_MAG` is not debined then the `mag` variable is an undefined reference.

In imu.c the `imuMahonyAHRSupdate()` function was being passed the elements of `mag` unconditionally like `mag.magADC[X]` so in the case that `USE_MAG` wasn't defined these were invalid null references. Luckily the logic in `imuMahonyAHRSupdate()` was properly bounded so that it never tried to access these variables. But in the case of a debug build the linker is unable to build a reference to these variables since they're never defined.
2019-12-14 19:53:23 -05:00
Bruce Luckcuck
564ebfc48d Fix CLI rc_smoothing_info frame rate display formatting
The formatting of the fractional part of the frame interval was not correct. For example 9004us would be displayed as 9.4ms instead of 9.004ms.
2019-12-14 16:33:53 -05:00
Bruce Luckcuck
67c57c7a65 Reset protocol level RX frame delta after reading
Handle cases where the protocol stops processing valid frames. Before this fix the last valid frame interval would continue to be reported if no more valid frames were received. No calculation will fallback to the interval measured in the RX task which will ultimately get set to the max task interval (when no data is received) or 30ms.

Change to capturing the last valid frame time rather than the delta in the protocol level. Move the common calculation of the delta up into rx.c.
2019-12-13 17:14:16 -05:00
Michael Keller
4c58889915
Move OSD elements into their own parameter group (#9278)
Move OSD elements into their own parameter group
2019-12-11 09:37:28 +13:00
Michael Keller
0dde6822c2
Fix ESC protocol startup after rearranging MSP/OSD/CMS init (#9277)
Fix ESC protocol startup after rearranging MSP/OSD/CMS init
2019-12-11 09:37:12 +13:00
Michael Keller
359ab46037
reduce antigravity gain default to 3.5 (#9128)
reduce antigravity gain default to 3.5
2019-12-11 09:35:36 +13:00
Bruce Luckcuck
afeb88850f Move OSD elements into their own parameter group
Separates the OSD elements position/visible/profile flags from the `osdConfig` PG and moves them to a new `osdElementConfig` PG. Allows new elements to be added without having to constantly update the PG version for `osdConfig`.
2019-12-09 19:13:08 -05:00
Michael Keller
dad2b244e9
Make CMS OSD menu max7456 settings have realtime effect (#9275)
Make CMS OSD menu max7456 settings have realtime effect
2019-12-10 12:41:03 +13:00
Michael Keller
ba3cf21be6
Add support for serial passthrough via MSP (#9274)
Add support for serial passthrough via MSP
2019-12-10 12:40:28 +13:00
Michael Keller
0418fdb541
Renaming 'featureEnable' / 'featureDisable' to make their use a… (#9272)
Renaming 'featureEnable' / 'featureDisable' to make their use a bit more obvious.
2019-12-10 12:38:03 +13:00
Bruce Luckcuck
7061ef0706 Fix ESC protocol startup after rearranging MSP/OSD/CMS init
Fixes double ESC initialization.
2019-12-09 16:59:29 -05:00
Alberto García Hierro
deeabdbca3 Add support for serial passthrough via MSP
- Rename MSP_SET_4WAY_IF to MSP_SET_PASSTHROUGH
- Keep backwards compatibility with existing uses of the command
- Add 2 new values for the passthrough mode: one that sets up
a serial port given its ID and another one that sets it up from
a function ID.
2019-12-09 15:58:27 +00:00
Michael Keller
7d215e8f84
Fixed 'back' command for CMS menus. (#9266)
Fixed 'back' command for CMS menus.
2019-12-10 01:48:23 +13:00
Michael Keller
457581a753
Inhibit 'Save & Exit' menu when in RC preview. (#9267)
Inhibit 'Save & Exit' menu when in RC preview.
2019-12-10 01:48:10 +13:00
Michael Keller
692765ade9
Cleaned up CLI 'resource' implementation. (#9271)
Cleaned up CLI 'resource' implementation.
2019-12-10 01:47:45 +13:00