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

79 commits

Author SHA1 Message Date
jflyper
944a2986a5 Use busDevice_s for reconfigurability 2018-05-04 17:09:56 +09:00
Michael Keller
cb19bb16d4
Merge pull request #5793 from etracer65/max7456_double_increment
Fix incorrect double increment in MAX7456 screen drawing
2018-05-03 23:32:21 +12:00
Bruce Luckcuck
b328d1dbbc Fix incorrect double increment in MAX7456 screen drawing
The for loop variable was being erroneously double incremented when a character was updated. This would cause fewer characters to be checked/updated during each cycle based on how many were found to be updated.
2018-05-01 12:38:45 -04:00
Bruce Luckcuck
932998a33c Avoid 0xFF character when writing to MAX7456 in auto-increment mode
The 0xFF character is used as an "escape" character by the MAX7456 when using auto-increment mode. The last byte of the characters used for the logo is the 0xFF character and this was causing the version and CMS instructions to not display.

Changed the logic to avoid the 0xFF character during the auto-increment phase and added a second pass if needed to update those characters in direct addressing mode.
2018-05-01 12:07:40 -04:00
blckmn
a9f74cd6df Removed excess trailing spaces before new lines on licenses. 2018-04-25 20:58:00 +10:00
blckmn
46fe22b4bd Direct license replacement 2018-04-22 09:22:46 +10:00
Michael Keller
dd25358a63
Merge pull request #3028 from cleanflight/improve-osd-slave-comms (#5405)
Improve OSD slave timeout/disconnect/reconnect handling.
2018-03-15 02:30:46 +13:00
Andrey Mironov
ac26c975dd Adjustable OC for F405 and F411 2018-02-17 14:12:16 +03:00
mikeller
2d930b28ce Moved vcd parameter group to pg/. 2017-12-24 15:13:48 +13:00
mikeller
200167aaf7 Moved max7456 parameter group into pg/ directory. 2017-12-24 09:09:26 +13:00
mikeller
b489d0ba9d Renamed 'parameter_group' to 'pg'. 2017-12-19 23:36:31 +13:00
Martin Budden
7be1d09e50 MAX7456 code tidy 2017-11-29 09:20:45 +00:00
jflyper
0e60400350 Use max7456SpiClock in ENABLE_MAX7456 macro 2017-11-13 09:23:29 +09:00
Michael Keller
5e77763c7b Merge pull request #4224 from jflyper/bfdev-max7456-add-debug-mode
MAX7456: Convert debug statements into debug modes
2017-10-21 09:05:06 +13:00
jflyper
e50414459d Forgot about this one 😭 2017-10-20 23:48:26 +09:00
Dan Nixon
932caac42b Remove duplicate code in MAX7456 driver
Removes some duplicate code for handling black and white brightness on
initialisation.
2017-10-01 14:45:43 +01:00
jflyper
40eb071677 And another... 2017-09-24 22:12:11 +09:00
jflyper
9c30465f99 Remove a conditional block; let gcc do the job 2017-09-24 20:31:57 +09:00
jflyper
47b9bc878b Convert debug statements into debug modes 2017-09-24 19:36:35 +09:00
jflyper
268318eec6 Touching up
Disable debug variable assignment
2017-09-23 01:21:00 +09:00
jflyper
5a7ed7b686 Handle SPI clock for CPU over clocked environment 2017-09-15 11:10:28 +09:00
Martin Budden
3d4f0bb137 Whitespace tidy 2017-07-05 06:36:22 +01:00
jflyper
682d4d4014 Preset CS lines for SPI devices initial high 2017-06-20 21:10:31 +09:00
Dan Nixon
7919a6ffbd Add MAX7456 image options to CMS 2017-06-12 12:14:52 +01:00
Dan Nixon
28fcfcd34e Add inversion and brightness support to MAX7456 driver 2017-06-12 12:13:54 +01:00
Martin Budden
3a5010ea65 Replace sprintf with tfp_sprintf 2017-05-28 07:17:35 +01:00
Martin Budden
23f158913e Moved time functions out of system.h into time.h 2017-05-26 14:03:28 +01:00
Hydra
723831b579 SPRACINGF3NEO - Use RTC6705 clk hack.
CF/BF - Fix typo in max7456DmaInProgress.  Always define an
implementation even when there is no TX-DMA.

CF/BF - Ensure that max7456 communication does not disrupt RTC6705
communication when using the same SPI port for both.

CF/BF - Port RTC6705 to use the VTX API.

* Support VTX channel/band/power on OSD for ALL vtx APIs - previously it only supported RTC6705.
* Remove all FEATURE_VTX usage.
* Remove all `#define VTX` usage.

Note that due to the async nature of tramp/smartaudio it's not possible
to know the current band/channel after requesting a change (as the
request hasn't been processed) so it makes no sense to try and save the
config - and on the tramp/smartaudio vtx the vtx maintains it's state.
So on an RTX6705 equipped FC the user should now MANUALLY save the
config using the save config stick position.

CF/BF - Move CMS for RTC6705 into vtx_rtc6705.c for consistency with
other VTX CMS menus.

CF/BF - Update RTC6705 via SOFT SPI to use VTX API.

* Achieved by simply aligning the API at the driver level and removing
all legacy conditional compilation checks.

CF/BF - Use new IO for RTC6705 CLK Hack

CF/BF - Port VTX button from CF v1.x.

Features:
* Channel Cycle
* Band Cycle
* Power Cycle
* Save Settings
* Works with any VTX using VTX API.

CF/BF - Allow support for Internal and External VTX - External takes
precedence when configured.

CF/BF - Fix display of VTX power in CMS.

* Issue occured when CMS was transitioned from integer to list of
strings.

CF/BF - Disable SMARTAUDIO and TRAMP on the SPRacingF3NEO due to flash
size.

CF/BF - Cleanup const usage of bass-by-value parameters.  Cleanup
naming.

CF/BF - Cleanup naming.  Removing noise-words. Improving consistency.

CF/BF - Improve readability by further naming cleanups.

CF/BF - Remove some magic numbers in the RTC6705 VTX code.

CF/BF - Use braces on some procedural macros.

CF/BF - Improve code readability by renaming rtc6705SetChannel to
rtc6705SetBandAndChannel.

CF/BF - Remove editor mishap.

CF/BF - Make the rtc6705Dev variable static.

CF/BF - remove duplicate state variablertc6705Dev_t - vtxDevice_t had
all we needed.  Use brackets on some procedural style macros.  Make all
the vtx vtable static const.

CF/BF - making some declarations const.

CF/BF - Fix vtx_power maximum value (out by one).
2017-04-21 11:49:31 +12:00
Hydra
ca5bafeab9 CF/BF - SPRACINGF3OSD initial target support inc support for OSD SLAVE via MSP_DISPLAYPORT.
OSD is tested and working on an SPRACINGF3EVO stacked with an SPRACINGF3OSD.
2017-04-09 14:17:17 +01:00
jflyper
674e001803 Signal check is now every 1 sec instead of 1/60 sec
Plus lots of code cleaning, mostly cosmetic.
2017-01-04 17:38:00 +09:00
jflyper
457afbcaf0 MAX7456: Detect video standard dynamically 2016-11-23 21:14:29 +09:00
Martin Budden
e4cb051b13 Fixup after rebase 2016-11-19 06:47:53 +00:00
Martin Budden
7c8d1967d0 Improved OSD & displayPort initialisation. Allowed nested screen grabbing 2016-11-19 06:47:53 +00:00
jflyper
11128daaa6 Touch ups
- Renamed some variables
- Video system constants are now defined in vcd.h
- Removed video system default initializer from max7456.c
2016-11-17 02:48:01 +09:00
jflyper
062e8b7b26 MAX7456: Adjustable screen area position offsets
There are displays and goggles with slightly different timing
characteristics compared the standard ones. With such devices, screen
area may be too high or too low that top or bottom most characters may
be truncated.

This PR provides a way to adjust the screen area position so that
entire screen area can be shifted up or down, or left or right.

A new vcdProfile_t (VCD = Video Character Device) is defined and
video_system was moved from osdProfile also.
2016-11-16 23:30:10 +09:00
Martin Budden
c90a0d1a04 Merge pull request #1518 from blckmn/simplified_owners
Simplified owners
2016-11-11 08:51:43 +01:00
Martin Budden
dea71df659 Converted tabs to spaces 2016-11-11 07:25:20 +00:00
blckmn
58105c25ac Simplified Owner management 2016-11-10 18:56:13 +11:00
Martin Budden
a7a428a5bb Code tidy and addition of GPL headers 2016-11-06 10:29:11 +00:00
borisbstyle
3c4608d6fa Merge branch 'master' into development 2016-09-26 00:51:27 +02:00
Marcin Baliniak
bae96d9595 Fixed ident style and compilation for targets with MAX on DMA 2016-09-25 17:51:27 +02:00
Dan Nixon
03f340fe14 Merge branch 'master' into development
Conflicts:
	src/main/build/version.h
	src/main/drivers/max7456.c
	src/main/io/osd.c
	src/main/io/osd.h
	src/main/target/OMNIBUSF4/target.c
2016-09-25 11:31:44 +01:00
Marcin Baliniak
419547a2bf Merge remote-tracking branch 'upstream/master' 2016-09-25 11:57:43 +02:00
Marcin Baliniak
171b03bfb7 efactor MAX7456 driver code 2016-09-25 11:42:53 +02:00
Dan Nixon
9a00028eb3 Fix brace style in max7456.c 2016-09-25 09:54:04 +01:00
Dan Nixon
bd699f1353 Replace uint8_t with bool, refactor item display code
Removes uplicate code from OSD element display
2016-09-24 15:01:01 +01:00
Dan Nixon
aea5666cfb Refactor OSD code 2016-09-24 13:57:26 +01:00
borisbstyle
d135edda21 Coding Style 2016-09-24 13:50:08 +02:00
Marcin Baliniak
fa64da4986 Lock MAX7456 updates during font update 2016-09-23 14:43:51 +02:00
Marcin Baliniak
1e2a961bcd New stack for OSD with full menus for PIDs etc.
There is a lot of changes and fixes in driver also
2016-09-18 21:27:09 +02:00