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

54 commits

Author SHA1 Message Date
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
borisbstyle
05908aad4d Merge branch 'master' into development 2016-09-11 01:16:53 +02:00
Marcin Baliniak
7ff10640f5 Wrong check in MAX7456 status register 2016-08-29 15:48:31 +02:00
Martin Budden
541f4d4018 Directory rearrangement to reflect cleanflight changes 2016-08-07 13:44:00 +01:00
Martin Budden
07adf66bbb Optimisation of driver header files 2016-08-07 01:14:11 +02:00
nathan
338d548e11 Merge branch 'master' of github.com:betaflight/betaflight into feature/f4-dma-osd 2016-07-16 09:25:40 -07:00
Martin Budden
141b369667 Removed trailing whitespace 2016-07-16 07:54:58 +01:00
nathan
9836eca375 f4 updates for max7456 dma and a new target (revo variant) with the osd chip 2016-07-15 00:07:03 -07:00
Martin Budden
3d8ee50934 Removed unnecesary #includes from drivers 2016-07-11 18:45:35 +01:00
Evgeny Sychov
b909c70353 merge branch master into osd-improvement-master 2016-07-09 20:19:25 -07:00
blckmn
67d448d8ea Improved Resource command output. 2016-07-09 17:03:16 +10:00
Evgeny Sychov
2d070a3507 Re-design DMA driver 2016-07-01 01:53:45 -07:00
Evgeny Sychov
ea50b3a5b7 merge upstream into osd-improvement branch 2016-06-27 11:05:53 -07:00
Evgeny Sychov
224043be4e MAX7456 driver - add support for SPI DMA 2016-06-27 10:55:41 -07:00
blckmn
869d639a00 Missed 7456 enabled targets 2016-06-24 19:51:51 +10:00
Evgeny Sychov
135ffc1c92 cleanup config.c, Makefile, OSD, and VTX 2016-06-18 00:33:10 -07:00
Evgeny Sychov
ddf0fb5fda Use io tags in vtx, move vtx initialization out of OSD init 2016-06-17 02:37:41 -07:00
nathan
b01103e655 add the center icon, this could be optional? 2016-06-16 19:40:58 -07:00
nathan
1a7ed10ef1 artificial horizon 2016-06-16 19:36:04 -07:00
nathan
e9868c4e37 namespace a few vars add some #defines for clarity 2016-06-16 19:36:00 -07:00
nathan
b95e540217 merge in savaga 2016-06-16 02:29:52 -07:00
nathan
a08e70f48c flash the led on font upload 2016-06-16 02:21:12 -07:00
Evgeny Sychov
74ec4a0337 Fix constatnt names, move vtx_channel config variable out of OSD ifdef 2016-06-15 23:54:31 -07:00
nathan
cd5335ddec max7456 driver io tags, moved some sirin #defines out (they're in common now) 2016-06-15 21:02:55 -07:00
Evgeny Sychov
067c02bbd6 remove sirinfpv related stuff from config.c, rename rtc6705 to soft_spi_rtc6705, fix some minor bugs 2016-06-14 01:05:51 -07:00
Evgeny Sychov
23240b8081 code cleanup 2016-06-13 00:35:12 -07:00