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

19 commits

Author SHA1 Message Date
mikeller
cedcf2d7e2 Added calibration menu to CMS. 2019-11-19 13:59:52 +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
542146c702 Motor code refactor (Phase 1) 2019-07-17 01:33:39 +09:00
Bruce Luckcuck
9081bd3338 Add CMS menu entry level control of forced reboot on changes
CMS menu items can now be defined with a `REBOOT_REQUIRED` flag. If the user changes flagged elements the the exit/save options will change to `EXIT&REBOOT` and `SAVE&REBOOT` - ensuring that the changed items will be handled properly. This should be used for options where runtime changes either won't take effect (because they are read at boot), or for items that could have unexpected behavior if changed.

Several appropriate menus have been updated to include the flag.

To accomodate the dynamic nature of the save/exit options, the individual options have been removed from the main menu and replaced with a `SAVE/EXIT` submenu. This is the same menu that is presented as the quick-access popup save menu (yaw-right). This menu will adapt to requiring a reboot if any flagged setting is changed. Additionally the `REBOOT_REQD` arming disabled reason will be set (cleared by the reboot).
2019-05-20 12:39:36 -04:00
mikeller
4fb58b340e Extend the scope of BOXPARALYZE to cover stick commands, adjustments, and CMS. 2019-05-06 01:28:37 +12:00
Michael Keller
364afcbf25
Merge pull request #4521 from martinbudden/bf_cms_onglobalexit
Remove almost entirely unused CMS ononGlobalExit function
2017-11-10 10:35:13 +13:00
Martin Budden
243e8390a2 Removed CMS menu guards when not debugging 2017-11-09 19:09:17 +00:00
Martin Budden
9a9884e4af Remove almost entirely unused CMS ononGlobalExit function 2017-11-09 19:06:25 +00:00
mikeller
a8d34dabb0 Changed defines for GYRO/ACC/MAG/BARO/GPS/SONAR/OSD/BLACKBOX/CMS to conform to the USE_ convention. 2017-11-05 10:15:24 +13:00
mikeller
31df82db2d Reworked arming conditions. 2017-06-30 08:43:46 +12:00
Dan Nixon
427c5fe524 OSD unit test 2017-06-27 10:01:35 +01:00
Martin Budden
e41d6a3b5b Preparation for conversion to parameter groups 2017-02-01 10:44:12 +00:00
Martin Budden
79d4b2146d Preparation for conversion to parameter groups 2017-02-01 08:46:19 +00:00
Anders Hoglund
7b6ccaca6b Fix compile warning in cms_unittest. 2016-11-19 18:12:51 +01:00
Anders Hoglund
3285543cf0 PR 1604 incomplete. One more element to init. 2016-11-19 17:34:04 +01:00
Martin Budden
da1c5fbb3a Added all virtual functions to test displayport in cms_unittest 2016-11-19 15:43:52 +00:00
Martin Budden
e4cb051b13 Fixup after rebase 2016-11-19 06:47:53 +00:00
Martin Budden
c97e71e995 Made OSD device independent, now uses displayPort 2016-11-19 06:47:53 +00:00
Martin Budden
2c9d71aeae Added CMS test code 2016-11-07 20:51:08 +00:00