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

94 commits

Author SHA1 Message Date
Martin Budden
9a9884e4af Remove almost entirely unused CMS ononGlobalExit function 2017-11-09 19:06:25 +00:00
Martin Budden
f8c47f6751 Size optimise CMS modules. Improve const correctness 2017-11-09 17:24:44 +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
allenyan
4df1084d1d Add RunCam Device Protocol Support(DisplayPort, DeviceSetting Access, 5 key osd cable simulation) 2017-10-19 16:19:27 +08:00
Martin Budden
8dd4a584c1 Fixed whitespace 2017-08-17 08:32:37 +01:00
Martin Budden
c0961d7f4c Fixed some comparion sign warnings in MAX macros 2017-08-16 08:55:12 +01:00
jflyper
4a2ef89ea8 Revert left stick constraints and introduce context 2017-07-30 19:12:22 +09:00
Dan Nixon
c23b07bdda Pad table strings in the CMS
Ensures that switching from a longer string to a shorter one does not
leave chars from the longer string.

e.g. BATTERY -> GYRO would result in GYROERY
2017-07-16 11:15:51 +01:00
Martin Budden
3d4f0bb137 Whitespace tidy 2017-07-05 06:36:22 +01:00
blckmn
67d2c3ef25 Minor makefile change to support windows better
Removed uninitialised warnings
2017-07-02 06:55:14 +10: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
jflyper
5694b97dda Prevent CMS from freezing after flash erase 2017-05-29 09:28:18 +09:00
Martin Budden
23f158913e Moved time functions out of system.h into time.h 2017-05-26 14:03:28 +01:00
jflyper
f26144db72 Support SmartAudio V1 2017-05-02 22:17:03 +09:00
Michael Keller
e5d1382f59 Merge pull request #2833 from jflyper/bfdev-cms-refactor
[CMS] Multi-page bug fix and refactor
2017-05-02 10:19:14 +12:00
jflyper
f4c21d06a9 Disabled page debugging 2017-05-01 11:56:25 +09:00
jflyper
4c114db666 Fix pageCount calculation 2017-05-01 10:40:44 +09:00
Hydra
2b1dac4c6d CF/BF - First cut of allow building of the OSD SLAVE board without all
the flight controller code.

Likely the dependencies can be further improved.  This is a
minimal-impact solution while there are a lot of other Betaflight PR's
still pending.
2017-04-12 00:39:27 +01:00
jflyper
b10412ac9b Tidy 2017-04-07 18:04:56 +09:00
jflyper
f15d5dd12c More strict stick commands 2017-04-07 12:54:37 +09:00
jflyper
602b656b01 Refactor CMS
- Introduce 'page'
- Handle more than 2 pages correctly
2017-04-07 05:15:27 +09:00
jflyper
5d92b62393 Resurrect multi-display cycling 2017-04-02 22:42:35 +09:00
Martin Budden
694875d0aa Fix max7456 defines 2017-02-22 14:06:46 +00:00
Martin Budden
79d4b2146d Preparation for conversion to parameter groups 2017-02-01 08:46:19 +00:00
jflyper
0cbe440cea Rebased 2016-12-05 11:43:34 +09:00
Martin Budden
8d3c825646 Converted currentTime to currentTimeUs 2016-12-01 20:00:44 +00:00
jflyper
fc1c8d7596 OME_Funcall now chains functions based on p->func's return value 2016-11-25 22:01:28 +09:00
jflyper
f1035c52eb Minor touch up
OME_Submenu unconditionally calls cmsMenuChange, so p->func test is not
required.
2016-11-25 20:20:29 +09:00
jflyper
5d5ded2131 FREE mode band/chan change requires SET to be executed 2016-11-25 18:27:55 +09:00
jflyper
ed09ee4a9b Trial for displaying optional string on right column for submenus 2016-11-24 16:33:21 +09:00
Martin Budden
c97e71e995 Made OSD device independent, now uses displayPort 2016-11-19 06:47:53 +00:00
jflyper
2fded736fa Auto repeat for left and right keys
Key repeat effect is implemented in two phases.
First phldase is to decrease rcDelayMs reciprocal to hold time.
When rcDelayMs reached a certain limit (scheduling interval),
repeat rate will not raise anymore, so we call key handler
multiple times (repeatCount).

XXX Caveat: Most constants are adjusted pragmatically.
XXX Rewrite this someday, so it uses actual hold time instead of
holdCount, which depends on the scheduling interval.
2016-11-15 01:23:16 +09:00
Martin Budden
7c8cb3205d Removed trailing spaces 2016-11-11 07:48:00 +00:00
Martin Budden
f68e6a4d2f Improved CMS const correctness. Added CMS and USE_MSP_DISPLAYPORT to common.h 2016-11-08 15:46:05 +00:00
jflyper
c9b7ac21c1 Added onChange function call to scalar data types
This will make changed values to take effect immediately in the profile
related menus.

It’s only used for profile selection now; will be used more through out
the menu contents.
2016-11-08 18:22:00 +09:00
jflyper
0f121c69bb Merge pull request #9 from martinbudden/jf_osd6
CMS currentTime tidy
2016-11-08 18:03:38 +09:00
jflyper
6bcec1bcd7 Merge pull request #7 from martinbudden/jf_osd7
Added CMS test code
2016-11-08 17:59:58 +09:00
Martin Budden
1bbc0420ad CMS currentTime tidy 2016-11-08 06:30:24 +00:00
jflyper
7861603c96 Optional string for OME_Label
OME_Label now has an optional string (data).
Profile number is now displayed PID menu using this facility.
2016-11-08 14:20:12 +09:00
Martin Budden
2c9d71aeae Added CMS test code 2016-11-07 20:51:08 +00:00
jflyper
576ad19914 Add OME_Funcall to call a function.
With the introduction of the CME_Menu, OME_Submenu became unsuitable
for general function calls. Actually, it works and call the designated
function, but attempt to externally traverse the menu structure fail
because it expects CME_Menu * as data for OME_Submenu.
2016-11-08 05:27:09 +09:00
jflyper
5a6828b87f RAMDOM!!! 2016-11-07 20:35:01 +09:00
Martin Budden
d8a83518db CMS file renaming. displayPort renaming 2016-11-06 20:24:33 +00:00
Renamed from src/main/io/cms.c (Browse further)