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

33 commits

Author SHA1 Message Date
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
Martin Budden
18145c9d47 Fixed compiler warnings 2017-03-03 16:36:40 +00:00
Raphael Coeffic
c653a8772a tramp: fixed power menu on OSD (would allow ‘———‘) 2017-02-07 22:39:57 +01:00
Raphael Coeffic
b209998286 tramp: fixed issue with multiple changes through MSP
This bug has been introduced with 662b9552df.
2017-02-07 22:39:47 +01:00
Raphael Coeffic
662b9552df fixes issue with power changes without prior frequency change
As trampConfFreq & trampConfPower was not initialised properly with the current values, this would lead to the config not being properly changed (you cannot set the frequency to 0, which is what we tried earlier).

Also, a fixed number of retries has been added to make the code safer and finish after a fixed number of iteration, no matter what.
2017-02-06 12:07:34 +01:00
Raphael Coeffic
46b7579cac some fixes for vtx_common 2017-01-31 12:53:50 +01:00
Martin Budden
8e79e8092e Fixed up whitespace 2017-01-22 22:42:45 +00:00
Raphael Coeffic
1768c1fda8 tramp: implemented VTX_COMMON interface. 2017-01-16 17:18:10 +01:00
jflyper
f565138101 Touch-ups 2017-01-16 22:59:33 +09:00
Raphael Coeffic
9681929f98 tramp: re-enabled temperature support
Temps have been measured right on the STM32F031G6 located on the surface of the Tramp and seem to be quite accurate. Above 104C, it starts to trickle the power down.
2017-01-16 12:00:36 +01:00
Raphael Coeffic
47bbd46c88 added conditional debug (TRAMP_DEBUG) 2017-01-15 23:26:08 +01:00
Raphael Coeffic
99cff4a875 some clean-up work (@ledvinap comments) 2017-01-15 18:34:14 +01:00
Raphael Coeffic
07659576b1 fixed pre-processor directives 2017-01-15 14:11:49 +01:00
Raphael Coeffic
c29f8a79ed use separate serial functions for SmartAudio and Tramp. 2017-01-15 12:22:18 +01:00
Raphael Coeffic
dddd09ae87 tramp: moved common definitions to vtx_common 2017-01-15 11:59:44 +01:00
Raphael Coeffic
58a778c797 tramp: removed temperature support until scale is defined 2017-01-15 00:08:39 +01:00
Raphael Coeffic
0fe30c06e2 some cleanup 2017-01-15 00:07:47 +01:00
Raphael Coeffic
632ab29e48 tramp: fixed initial cms menu settings 2017-01-13 18:21:28 +01:00
Raphael Coeffic
868256617d fixed pit-mode
Beware that the so called pit-mode is more some kind of a power switch. You might need to stick the receiver antenna against the transmitter to receive the very weak signal.
2017-01-13 15:59:49 +01:00
Raphael Coeffic
0818999530 tramp: use async changes + small fixes 2017-01-13 15:59:49 +01:00
jflyper
4696c4ad45 Debugging trampReceive: array boundary checking
Removed frame timeout also.
2017-01-13 15:59:49 +01:00
jflyper
465870cb0c Delay 1sec between freq and power 2017-01-13 15:59:49 +01:00
jflyper
3d9a82e4ae Disable trampHandleResponse() instead of trampReceive() 2017-01-13 15:59:49 +01:00
jflyper
5bbf4e13c1 Fixed I (PIT) command parameter 2017-01-13 15:59:49 +01:00
jflyper
9bca2b88d0 Fixes and extensions 2017-01-13 15:59:36 +01:00
jflyper
195d3a3cf3 Serial option to production 2017-01-13 15:59:36 +01:00
jflyper
6550d738db Some enhancements 2017-01-13 15:59:36 +01:00
jflyper
0c026a237a Checksum range changed from 1 2017-01-13 15:59:36 +01:00
jflyper
74d175edfb Changes per @ledvinap's commend + some debugging 2017-01-13 15:59:36 +01:00
jflyper
eec475078c Removed debug 2017-01-13 15:59:36 +01:00
jflyper
6515ae3490 Added power and pit mode 2017-01-13 15:59:36 +01:00
jflyper
58ed2ed590 Tramp prototype driver 2017-01-13 15:59:36 +01:00