1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-26 17:55:19 +03:00
Commit graph

132 commits

Author SHA1 Message Date
Bertrand Songis
1b35f2bd35
Trainer function can now replace the channels values instead of to the sticks positions (#6561) 2019-10-24 12:03:19 +02:00
Raphael Coeffic
0bc7135e40 Disable trainer signal based input when trainer signal is lost (#6905)
* Disable trainer signal based input when trainer signal is lost

* Cosmetics
2019-10-09 18:22:23 +02:00
Kilrah
16ace5cb57 Merge branch '2.3.1' into 2.3 2019-10-07 18:13:19 +02:00
Bertrand Songis
f78dbafa17
[X9D] P3 fix 2019-10-07 12:40:11 +02:00
Kilrah
20f87078aa Merge branch '2.3.0' into 2.3 2019-09-24 09:39:33 +02:00
Bertrand Songis
602a6a1f5d
Cosmetics 2019-09-23 10:16:32 +02:00
Bertrand Songis
2bc42d9ecb
128 bytes RAM saved 2019-09-13 08:21:35 +02:00
Bertrand Songis
34cfcc3fe4
Cosmetics 2019-06-01 15:51:50 +02:00
Bertrand Songis
c28210e3e4 Rotary encoder refactoring 2019-04-30 14:55:21 +02:00
Bertrand Songis
73fa1c59b1 Gyro scaled output result not needed in RAM 2019-04-05 15:28:44 +02:00
3djc
d775a91545 Add gyro settings computations 2019-04-04 10:43:43 +02:00
Bertrand Songis
01bf3d2ef6 Compilation fixes 2019-04-03 08:07:05 +02:00
Bertrand Songis
a13ee14bbb [X-LiteS] Gyro added 2019-04-02 20:12:50 +02:00
Bertrand Songis
cb6ee5e0b0 Compilation fixes on all boards 2019-03-15 12:24:22 +01:00
Bertrand Songis
ed91931184 More AVR removal 2018-08-05 13:12:51 +02:00
Bertrand Songis
ea76998beb More AVR removal 2018-08-05 12:39:05 +02:00
Bertrand Songis
ea7ade197e MODULE_ALWAYS_SEND_PULSES define removed 2018-08-04 21:14:44 +02:00
3djc
3556d7c0e8 Apply #6036 equivalent to 2.3 2018-07-12 12:22:07 +02:00
Bertrand Songis
d2697345e1 VIRTUAL_INPUTS #define removed 2018-07-11 18:54:05 +02:00
Arne Schwabe
cbf60380f2 Assume CURVES are always defined 2018-07-05 12:05:55 +02:00
Arne Schwabe
d831b0f55e More AVR cleanup 2018-07-05 12:05:54 +02:00
3djc
dd632969f3 Massive clean thanks to Schwabe : unifdef -m -DCPUARM -UCPUM64 -UCPUM2560 -UPCBSTD -UPCBMEGA2560 -UPCBGRUVIN9X -UPCB9X $(find . -name "*.cpp" -or -name "*.h") 2018-07-05 08:04:55 +02:00
Bertrand Songis
9c4a81a6ee
Fixes #5816 (#5830) 2018-04-15 09:46:17 +02:00
3djc
6bd38ce13a Replicate center trim beep behavior also when crossing trims (#5693)
* Replicate center trim beep behavior also when crossing trims

* Cosmetics
2018-03-04 13:11:22 +01:00
3djc
fdf4d4926f POC for review and discussion 2018-02-28 11:34:32 +01:00
3djc
1ebd2894c2 Apply THR trim when cross triming (#5664) 2018-02-11 23:26:29 +01:00
Bertrand Songis
6af5f94f90 Flash savings on 9X 2018-01-26 19:06:59 +01:00
Arne Schwabe
4925e756a6 Save memory (move usb mass storage buffer to reusableBuffer) (#5579)
* Save 128 byte by moving variable to stack

* Make usb mass storage buffer smaller on F2 processors and put into reuseablebuffer

- Lower USB mass storage buffer to 512 bytes per default on F2
  targets, makes usb speed slightly slower ~600 kB/s instead ~700 KB/s
  in my tests, saving 3584 bytes
- Save another ~300 bytes by putting that buffer into reusableBuffer

* Don't put id into reusuableBuffer

All uses of id can be on the stack as well. Makes no difference for ram usage but makes it safer to reuse reusableBuffer

* Only link cdc serial when needed

We always linked usb cdc even in non debug builds. CDC uses about ~600 byte of RAM for its buffers and structures.
2018-01-26 19:00:47 +01:00
Bertrand Songis
c4001c8507
Bsongis/frsky xlite (#5574)
FrSky X-Lite support added
2018-01-02 14:36:48 +01:00
3djc
394bc1689f Massive cleaning (#5538) 2017-12-18 20:54:22 +01:00
Bertrand Songis
0359cb244e Bsongis/server compilation fix (#4763)
* Fix following automatic server emails

CMake options:
-DTHR_TRACE=YES -DVARIO=YES -DGAUGES=NO -DAUTOSWITCH=YES -DTRANSLATIONS=FR -DACCURAT_THROTTLE_STATS=NO -DSP22=NO -DPCB=9X -DARITHMETIC_OVERFLOW_CHECK=NO -DFONT=SQT5 -DHELI=NO -DEEPROM_PROGRESS_BAR=YES -DTEMPLATES=NO -DFRSKY_STICKS=NO -DVOICE=NO -DDBLKEYS=NO -DGRAPHICS=YES -DFAI=YES -DBATTGRAPH=YES -DTURNIGY_TRANSMITTER_FIX=NO -DPWM_BACKLIGHT=NO -DNAVIGATION=NO -DBOLD=YES -DDSM2=NO -DGVARS=NO -DAUTOSOURCE=YES -DCURVES=NO -DWS_HOW_HIGH=YES -DPPM_LIMITS_SYMETRICAL=NO -DHAPTIC=NO -DUNITS=METRIC -DPPM_UNIT=PERCENT_PREC1 -DAUDIO=YES -DGPS=NO -DPPM_CENTER_ADJUSTABLE=NO -DSPLASH=YES -DFAS_OFFSET=NO -DFLIGHT_MODES=NO -DOVERRIDE_CHANNEL_FUNCTION=YES

* Fix some missing translations for avr

* Compilation fixes
2017-04-08 12:39:30 +02:00
Max Paperno
57dc0159d6 [Simulator] Asynchronous SimulatorInterface & a few new features. (#4738)
* [Simulator] Create RadioKeyWidget class for UI buttons & refactor ButtonsWidget; Refactor SimulatedUIWidget (and subtypes) to use new RadioKeyWidgets/ButtonsWidget; Centralize help text for key mappings and get creative with some icons; Simplify some radio UI setups with rectangular buttons.

* [Simulator] Convert all simulator data I/O to signals/slots mechanism:
    * SimulatorInterface/OpenTxSimulator:
       - Now inherits from QObject to allow signal/slot interface;
       - Allows data exchange on a per-item basis (eg. each I/O value is treated separately instead of sending whole arrays or structs of data);
       - Checks for data changes and only emits signals when change is detected (GUI can now assume only new values are being sent);
       - Manages its own 10ms timer (doesn't rely on GUI to do that);
       - Sends "heartbeat" signals @ 1Hz for status monitoring;
    * Simulator GUI:
       - All data is exchanged between GUI elements as well as SimulatorInterface via signals/slots using standardized methods;
       - Data is sent immediately, and only, when actually changed (eg. a control is moved) instead of in bulk at specific time intervals;
       - Similarly, an asynchronous method is used for reading incoming data, w/out timers or loops;
       - Improve VirtualJoystickWidget to be more encapsulated and configurable;
       - Pause telemetry simulator if window is hidden;

* [Simulator] Move SimulatorInterface instance to separate thread, ensure safe asynchronous operations & proper timer interactions; Protect/remove some functions, & reorganize the order (cosmetics).

* [Simulator] Traces are now delivered to OpenTxSimulator and one or more QIODevice(s) can be added as recipient(s); Add SimulatorInterface::getCapability() for compile-time settings; Remove reversed POT1/SLIDER1 mixer exception (Taranis) requirement for SIMU; Fix plus/minus key delay on wheel event w/out encoder.

* [Simulator] Add current knob/slider/trim input value in tool-tips (KnobWidget and SliderWidget).

* [Simulator] Fix trims widget internal value not properly updating, and remove trim influence on virtual joystick X/Y value display (closes #4671).

* [SimulatorInterface] Add handling of transmitter input voltage, including a rough conversion of volts to ADC value for different boards, and default battery volts lookup function; Clear analogs array before starting.

* [Simulator] Add SimulatorInterface::init() method to separate pre-startup tasks; Report actual trim range, not just extended on/off; Change how radio widget states are restored; VirtualJoystickWidget: Connect trim changes directly from simulator, connect joystick events directly, report stick mode directly instead of setting values/constraints externally.

* [Simulator] Calculate default Tx V input based on configured range in radio settings (or warning V+2 for radios which don't support a range).

* [Simulator] Add functional aux. trims for Horus (closes #4699).

* [Companion] Remove problematic QMessageLogContext from AppDebugMessageHandler::messageOutput().

* [Simulator] Prevent trim change via slider if disabled for flight mode (closes #4600).

* [OpenTxSimulator] Fixes for Qt < 5.4.

* [OpenTxSimulator] Fix slot name.
2017-04-02 12:17:37 +02:00
Max Paperno
aaaaf1a806 [simulation] Fix reported multi-position switch output being outside of normal range due to SIMU exception in mixer.cpp. 2017-03-27 01:31:59 -04:00
Bertrand Songis
40ece81de2 X10 (#4377)
[X10] New radio supported!
2017-02-04 10:42:50 +01:00
Bertrand Songis
d52f89674c [X7] Pots calibration fix - #4143 2016-12-19 17:52:16 +01:00
Bertrand Songis
82d6b96f8b X7D renamed to X7 2016-12-12 07:39:51 +01:00
Bertrand Songis
edee15b21d Typos 2016-09-13 20:16:48 +02:00
Bertrand Songis
7d1732b314 [HORUS] Curves on outputs were not taken into account 2016-08-27 09:49:37 +02:00
Bertrand Songis
d3ae3c035d Bsongis/gui refactoring for x7 d (#3701)
* [X7D] New board added
* Cosmetics
2016-08-18 11:49:16 +02:00
3djc
52435703a0 3djc/telem rename (#3678)
* Rename EXT option to TELEMETRY

* Change test accordingly

* Rename FRSKY to TELEMETRY_FRSKY

* Rename ARDUPILOT to TELEMETRY_ARDUPILOT

* More renames (JETI, MAVLINK, NMEA)

* Fixes to make commit-test happy

* Further tests added to commit-test

* Cleanup

* Rename EXTSTD to TELEMETRY_NONE
2016-08-02 21:53:25 +02:00
Bertrand Songis
0ad015f3e7 Cosmetics 2016-07-23 19:28:30 +02:00
Bertrand Songis
4cc49d0d30 [Horus] Mouse analogs now OK 2016-06-25 18:16:05 +02:00
Bertrand Songis
f69295b8f9 [Horus] Mouse analogs 2016-06-25 00:08:17 +02:00
reichi
0c926e5d19 Allow software based volume control (#3556)
* Allow software based volume control
- enable it for AR9X
- rename "HARDWARE_VOLUME" defines to "MASTER_VOLUME"
- adjust build-firmware.py and fwoptions.py

* Software based volume control: Do it right

* whitespace cleanup

* software volume: cleanup/revert some leftovers of undone changes
2016-06-09 22:50:06 +02:00
Bertrand Songis
9c0e0a136a Simplification for div_and_round function 2016-04-16 18:26:14 +02:00
Andre Bernet
1f6a711d24 [Horus] Extra trims added (#3393) 2016-04-02 16:45:43 +04:00
Bertrand Songis
746dc450fa Telemetry files split 2016-03-28 11:24:55 +02:00
Bertrand Songis
2a4bc2cf6a Fixes #2022 2016-01-30 11:23:34 +01:00
Bertrand Songis
fe865dfdae Cosmetics 2016-01-30 11:14:43 +01:00
Bertrand Songis
da76106465 Cosmetics 2016-01-20 15:19:53 +01:00