* Add FY805 protocol
* Fix stray space
* Fix multi sending 120% instead of 100%.
* Implement a custom telemetry for the multi module
The custom telemetry allows the module to tell the telemetry protocol to OpenTX and also allows signaling the status of the Module (e.g. invalid protocol) to OpenTX
This should also close#3979.
* Cosmetics and a few small bugfixes
* remove empty if
* Move status line directly below the mode to be always visible when selecting a protocol
* warn if internal RF module is on
* Replace sprint with small helper function to build on AVR ARM (AR9X, 9XPRO, …)
* TR in wrong order, RF_PROTO_OFF inverted
* Refactor definition of Multimodule protocols to have one central place to define all multi protocol properties
* Also update protocols in companion
* Update multi version number to display as a.b.c.d
Also use SNR instead RSSI for FlySky since SNR gives a better indication of signal quality and also our current implementation of RSSI warning cannot really handle negative values
* Add constants for LUA telemetry
This commit added 896 bytes to flash size which is a significant size. An alternative would to just document the values in the lua telemetry function.
Shortening some of the UNIT names (e.g. UNIT_MW instead of UNIT_milliwatts) or shortening UNIT_ to U_ could save a few bytes but the
* #if 0 ... #endif constants
* horus has 2MB flash
* Mark gtest variables cached
Set GTEST location variables as CACHE so they can be modified when gtest is in a different location from the cmake call (/usr/src, /usr/include is not writable on OS X)
* Uppercase location and write Google Test like Google does
* Change the companion bundle name to not include the version
This show only up in the Apple Menu, a version numbers look really strange there. The title of the main window and CMD-TAB still show 2.2 there.
* Drop OpenTX instead of version
* Ignore deprecated register warning for the the STM include files
Ignore the warning with the use of #pragma which is not elegant but otherwise we would have to change the vendor files
* Remove usage of register in C/C++ files.
Modern compilers ignore it anyway and C++11 actually deprecates it. Removing also removes a number of clang warnings about this
* [Companion] Add logic to add background and DS_Store. Start with Cpack for OS X
* Major overhaul of the OpenTX packing for OS X
* Update DS_Store to not show toolbar (noticed by @Kilrah, thanks!)
* Minor fixes
* set BU_CHMOD_ITEMS to avoid packaging errors
* Rename the app to a nicer name on OS X (OpenTX Companion 2.2.app instead of companion.app)
* Embed dfu-util into bundle (first part of #3908)
* Fix showing status bar showing in disk image
* Workaround for CMAKE_OSX_DEPLOYMENT_TARGET
* Multiple fixes for German translation
* Add changes/better wording by @rcbebo82, thanks!
* Use less controversial translation for killed
* change all line ending to '\n'
* Also add translations from pull request #3929
* Fix too long strings for 128x64 UIs
This helps us people with non AZERTY keyboards that have Z left to the X. Doesn't help German layouts with 'Y' next to 'X' but that key is already used as trim key.
Taranis menu always use 8 channels as default opposed to 9x and Horus, which use the maximum number as default channel count (which is 6 on dsm2). This commit does not change that logic.
* Fix Multimodule showing up as Crossfire when only multimode and not crossfire is enabled.
* Don't hardcode telemetry to be Frysky on non STM32 arm targets
* Port multi module code to 9X platforms
* Allow Spektrum telemetry protocol to be selected as protocol for the telemetry selection
* Fix infinite loop in spektrum code
* Fix cosmetics
Changes also done for Horus and Taranis UI where appropriate
* Implementation of Spektrum Telemetry for the DYI Multimodule.
I can only test a subset of sensors and these look okay
* Implement conversion from Fahrenheit to Celsius
* Minor fixes for Spektrum telemetry
* Add some more sensors, show sensor ID instead of instance in the overview
* Add cmake configuration for Libfox.
CMake on OS X does not find libfox in the homebrew location otherwise
* Fix findpackage(Fox) for case sensitive systems
The second element of the modulePulsesData was never forced to be correctly aligned. Without the new
pulses and without the Multimodule code the second element was never misaligned since the PXX pulses
union member was always the largest member and was 4 byte aligned by coincidence, also making the
second modulePulseData array member 4 byte aligned.
With the Multimodule option enabled the dsm pulses struct becomes the largest union member with 607 bytes
and the second modulePulsesData is not aligned to anything anymore which completely screws up the pulses
generation.
Forcing the alignment of the ModulePulsesData fixes this issue.
Only tested on my X9D+. It allows me to boot the device into the OpenTX firmware by using 'make flash' (on switch must be on), combined with -DUSB=SERIAL and -DCLI=YES and the reboot command I can test a new firmware on the device without removing/plugging the usb cable
Changing the size of a struct by accident lead to random the wrong data from the eeprom and can screw the eeprom up pretty bad. Better bail out if the eeprom size changes and let the developer make that an intentional choice. The template magic is there to print out the actual and expected size:
/Users/arne/oss/opentx/radio/src/datastructs.h:1045:3: error: static_assert failed "struct size changed"
static_assert(expectedSize == realSize, "struct size changed");
^ ~~~~~~~~~~~~~~~~~~~~~~~~
/Users/arne/oss/opentx/radio/src/datastructs.h:1181:3: note: in instantiation of function template specialization 'check_size<TrainerData, 168, 16>' requested here
CHKSIZE(TrainerData, 168);