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

736 commits

Author SHA1 Message Date
Michael Keller
54c8477b4d
Merge pull request #9359 from mikeller/add_osd_to_status
Added OSD status to CLI 'status' output.
2020-01-16 12:54:11 +13:00
Michael Keller
099e0a6064 Added OSD status to CLI 'status' output. 2020-01-15 23:32:38 +13:00
Michael Keller
2f78b3189c
Merge pull request #9317 from mikeller/make_unit_tests_more_comprehensive
Changed 'ASSERT_' in unit tests to 'EXPECT_' for more comprehensive failure reporting.
2020-01-15 13:15:15 +13:00
Michael Keller
924fd3414f
Merge pull request #9319 from mikeller/fix_osd_tests_for_real
Removed wonkiness and interdependencies from OSD unit tests.
2020-01-14 12:58:40 +13: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
df778d6ba1 Removed wonkiness and interdependencies from OSD unit tests. 2019-12-27 16:57:38 +13:00
Michael Keller
71661acde2 Changed 'ASSERT_' in unit tests to 'EXPECT_' for more comprehensive failure reporting. 2019-12-27 14:30:24 +13:00
Michael Keller
dcdcc9bd5e
Unify rx spi exti handling (#9268)
Unify rx spi exti handling
2019-12-26 12:50:53 +13:00
mikeller
0dcdeaa105 Unified the handling of the EXTI pin for SPI RX. 2019-12-24 16:05:36 +13: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
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
mikeller
5f3d56cd2c Renaming 'featureEnable' / 'featureDisable' to make their use a bit more obvious. 2019-12-09 23:48:59 +13:00
Michael Keller
9425831756
Refactored 'WAS_EVER_ARMED' arming flag to be only enabled on f… (#9248)
Refactored 'WAS_EVER_ARMED' arming flag to be only enabled on first disarm.
2019-12-01 15:14:02 +13:00
mikeller
c7b16d2f3d Fixed seat-of-pants OSD unit tests. 2019-12-01 13:09:18 +13:00
Alberto García Hierro
37e66b3dda Add support for FrSky OSD
- Add displayWriteFontCharacter() for font writing, removing all max7456
specific code.
- Add displayIsReady() for asynchronous display initialization
- Add displayBeginTransaction()/displayCommitTransaction() for display
transactions, which allow performing complex drawing operations without
flickering
- Add displayGetCanvas(), which retrieves the canvas associated with a
display (if it has it)
- Add canvas implementation for pixel based access for a display
- Add FrSkyOSD driver and displayPort driver
- Enable FrSkyOSD driver for targets with flash > 256
- Rename max7456_symbols.h to osd_symbols.h
2019-11-30 22:06:36 +00:00
Michael Keller
c8b5edb415
Moved configuration validation into 'config.c'. (#9219)
Moved configuration validation into 'config.c'.
2019-11-29 12:47:29 +13:00
mikeller
438a801eb8 Fixed 'cast-function-type' warnings, reworked CMS function pointer juggle. 2019-11-29 03:45:27 +13:00
Michael Keller
140bb22b88 Removed 'checkRedirect' and references to it. 2019-11-26 19:14:47 +13:00
jflyper
2e84b0c442 Add support for character attribute rich displayport 2019-11-25 10:43:29 +09:00
mikeller
99f77fa88d Moved configuration validation into 'config.c'. 2019-11-24 21:19:26 +13:00
Michael Keller
b137bbe80c
Merge pull request #9214 from etracer65/sbus_crsf_micros_interrupt
Update SBUS and CRSF to use microsISR() in the interrupt handler
2019-11-24 13:03:02 +13:00
Michael Keller
9d9a9fe3f3
Add protocol level receiver frame rate measurement for SUMD (#9209)
Add protocol level receiver frame rate measurement for SUMD
2019-11-24 12:59:33 +13:00
Bruce Luckcuck
6c4e6cb786 Add protocol level receiver frame rate measurement for SUMD 2019-11-22 19:11:18 -05:00
Bruce Luckcuck
cb80314311 Update SBUS and CRSF to use microsISR() in the interrupt handler 2019-11-22 18:35:05 -05:00
Bruce Luckcuck
92771b666f Add protocol level receiver frame rate measurement for IBUS 2019-11-22 18:02:48 -05:00
Michael Keller
5951a48fe6
Improved tests. (#9193)
Improved tests.
2019-11-22 00:07:11 +13:00
Michael Keller
f2a16157de Removed useless test. 2019-11-21 19:53:27 +13:00
mikeller
5808bfd6f3 Improved tests. 2019-11-21 19:51:53 +13:00
Bruce Luckcuck
f35dd086ac Fix small angle check when ACC is disabled or not defined
Fixes related to #9185
2019-11-20 00:20:20 -05:00
Michael Keller
881a256980
Restructure CRSF frame processing and RC channel handling to pr… (#9190)
Restructure CRSF frame processing and RC channel handling to prevent erroneous dropped frames
2019-11-20 08:17:13 +13:00
Michael Keller
a94e78a37a
Fix small angle check reversed logic (#9188)
Fix small angle check reversed logic
2019-11-20 08:17:00 +13:00
mikeller
cedcf2d7e2 Added calibration menu to CMS. 2019-11-19 13:59:52 +13:00
Bruce Luckcuck
09406ad9d9 Restructure CRSF frame processing and RC channel handling
Prevents channel data packet corruption if other packets are receved before processing can complete.
2019-11-18 12:37:10 -05:00
Bruce Luckcuck
b3b3b6a7d6 Fix small angle check reversed logic 2019-11-18 10:49:50 -05:00
mikeller
a045a9c672 Improved compass calibration. 2019-11-19 01:08:44 +13:00
mikeller
cc8b8d3bf6 Improved detection of upright / 'SMALL_ANGLE' state. 2019-11-18 14:09:06 +13:00
Michael Keller
6694d4ebc8
Improved fixed wing detection. (#9186)
Improved fixed wing detection.
2019-11-18 13:26:17 +13:00
mikeller
ef556c0f59 Introduced 'baroStartCalibration()' / 'baroSetGroundLevel()' to make barometer code more self contained. 2019-11-17 23:34:10 +13:00
mikeller
e0a6f1ab14 Improved fixed wing detection. 2019-11-17 14:05:07 +13:00
mikeller
a21d0f5d31 Fixed potentially incorrect calculation in ACC calibration if non-default cycle number is used. 2019-11-17 10:58:28 +13:00
mikeller
53955a4a6b Show blackbox log number in OSD only when available. 2019-11-03 02:29:38 +13:00
mikeller
4a7904695e Moved 'config.[ch]' into the 'config/' directory. 2019-10-28 11:17:25 +13:00
Michael Keller
bb92da061e
Add debug code for blackbox output bandwidth measurement (#9060)
Add debug code for blackbox output bandwidth measurement
2019-10-22 11:28:46 +13:00
Michael Keller
9e44cd3ca5
Renamed 'rxRuntimeConfig' to 'rxRuntimeState'. (#9072)
Renamed 'rxRuntimeConfig' to 'rxRuntimeState'.
2019-10-22 11:27:36 +13:00
jflyper
0b392a9d6e Modify blackbox_unitest.cc for inclusion of debug.h 2019-10-21 23:10:53 +09:00
Michael Keller
2888bdd2b8
Revise feature logic to separate runtime and config settings (#9029)
Revise feature logic to separate runtime and config settings
2019-10-22 01:11:02 +13:00
mikeller
0a0d3631a7 Renamed 'rxRuntimeConfig' to 'rxRuntimeState'. 2019-10-22 00:12:51 +13:00
Bruce Luckcuck
e64703308b Revise feature logic to separate runtime and config settings
Isolates and prevents changes to runtime active features. Any changes to enabled features are deferred until after a save/reboot. Simplifies the previous logic.

Prevents potential failures when features are changed at runtime but the underlying code is not capabile of dynamic reconfiguration.
2019-10-21 20:25:03 +13:00
Bruce Luckcuck
5c98726318 Replace individual CMS vtx menus with a single entry that redirects to the correct protocol menu
Instead of having individual menus for RTC6705, SmartAudio, and Tramp, Now there is a single VTX menu that detects the type of active device and redirects to the appropriate protocol menu.

Reduces confusion and chances of erroneously using the wrong VTX menu.

Fixes a problem where the Tramp menu could be used to change band/channel/power even though the VTX was a SmartAudio device.

If the VTX is not configured or not communicating, a more informative message will be presented rather than a partially populated protocol menu. For example:
```
  VTX NOT RESPONDING
  OR NOT CONFIGURED

> BACK
```

Extends the CMS menu capabilities by adding an optional `redirectCheck` function that can conditionally return a menu that should be redirected to instead of the current menu. This redirect happens before any processing happens for the original menu. Adds flexibility to make the CMS menus have a more dynamic aspect.
2019-10-19 20:17:43 -04:00
jflyper
fb2ec7fe68 Support per MSP source arming disable control 2019-10-16 11:14:25 +09:00