Commit Graph
11751 Commits
Author SHA1 Message Date
Raphael Coeffic 94764d8fa9 Updated X10 generated structs 2021-11-10 11:05:47 +01:00
Raphael Coeffic 5142d9f4fc Fixed NV14 target 2021-11-10 09:41:40 +01:00
Raphael Coeffic 668174dd53 Use RSSI dialog for ACCESS as well 2021-11-10 09:02:24 +01:00
Raphael Coeffic f6789866c2 Properly set the receiver id before fetching settings 2021-11-10 08:22:54 +01:00
Peter Feerick f1d50c585a Bump libopenui, resolves #1017 2021-11-10 11:18:45 +10:00
Raphael Coeffic 26756a6a0b Fix binding being canceled on BindWaitDialog being closed 2021-11-09 11:28:45 +01:00
Peter FeerickandGitHub 3ad98bacf4 [NV14] Use trim hats to emulate key events when standalone lua script running (#985)
* Preliminary trims as keys for lua
Largely based on open-flysky implementation

* Add `isLuaStandaloneRunning()`

* Add more virtual events

* Tweak virtual events further

* Finish remapping keys to virtual events

* Move some virtuals to right trim hat

* Add missing "defined"

* Revert to common EVT_VIRTUAL_MENU mapping

* Make keys/trims reset backlight like other radios
2021-11-09 12:50:20 +11:00
Peter FeerickandGitHub 63bfc1cf5a Fix CurveEdit crash on NV14 and enable horizontal scolling (#965)
* [nv14] Add crash causing missing curveDataEdit

* Allow horizontal touch sliding
Thanks for catching this @kevinkoenig

* Prevent hori scroll where it shouldn't scroll
Why `model_inputs` scrolls is still a mystery, but it behaves now

* DRY is in effect
2021-11-08 22:07:16 +11:00
Peter FeerickandGitHub e6697639c7 Rename modelBmp using new 'displayName', add more options (#544)
* Make img buf only size of img not whole widget

* Don't draw buffer if there's no image

* If there's no image, draw model name

* Add some options, draw model name if img not set
Add options for text colour, size, fill enable and colour

* Use valid values for defaults

* Get right colours

* Add concept of a 'friendly name to widgets'
Allows for separation of internal and user visible names

* Use new theme constants

* Use right version of libopenui

* `displayName` instead of `friendlyName`

* Allow using theme colour or custom for name
2021-11-08 21:27:38 +11:00
Raphael Coeffic 17bbb8b799 Fixed R9M ACCESS binding 2021-11-08 10:27:09 +01:00
Raphael Coeffic ce97a9fc77 FIx "cannot bind packed field" (GGC-ARM) 2021-11-07 20:37:59 +01:00
Raphael Coeffic b7ddca5fdb Exclude PXX2 module and receiver option UI files when PXX2 not enabled 2021-11-07 20:17:43 +01:00
Raphael Coeffic 33e5aac846 Module and receiver options 2021-11-07 20:05:58 +01:00
mhotarandPeter Feerick 809db51509 Svg images added to img-src folders 2021-11-07 15:11:34 +10:00
Raphael Coeffic 5fbd4d3b1f Fixed targets without PXX2 support 2021-11-06 17:52:09 +01:00
Raphael Coeffic eb9425678f Fixed registering/binding 2021-11-06 15:59:34 +01:00
Raphael Coeffic 3588c8d963 Cleanup first a bit 2021-11-06 15:59:34 +01:00
Raphael CoefficandRaphael Coeffic 18e339e65c Add support for D16/R9 options
Allows for selecting receiver channels (1-8 / 9-16) and telemetry usage (on/off).

Resolves #941
2021-11-06 15:58:45 +01:00
Kevin KoenigGitHubkkoenig1@optonline.com <kkoenig1@optonline.com>
4c0518d2d9 Fix continuously touch end events and ensuretouchEnd if no scroll
* minor changes to touch and slide processing.  set event to TE_NONE so you don't continuously get touch end events.
also make sure you get touchEnd if you slid but there is no sliding window (e.g. no scroll happened)

* revert slide operations back to their original state

* fix merge issue

* one more try and it should be right now

Co-authored-by: kkoenig1@optonline.com <kkoenig1@optonline.com>
2021-11-04 21:57:37 +11:00
dlktdrandPeter Feerick d12dd81fcd Should be SBUS not PPM 2021-11-04 15:25:34 +10:00
dlktdrandPeter Feerick 4ae6152d62 Color LCD Fix SBUS rate. PPM use defines 2021-11-04 15:25:34 +10:00
dlktdrandPeter Feerick 172caf09bc Fix SBUS period not functioning, use defines over fixed numbers
SBUS period wasn't functional before. It was using the ppm.framelength, both in color and B/W.

Reduced maximum period to 32.5ms as it overflows the unsigned 16bit int otherwise

Tested with scope, color only.
2021-11-04 15:25:34 +10:00
dlktdrandPeter Feerick 5ef5b1e282 Fix Sbus single stepping 2021-11-04 15:25:34 +10:00
dlktdrandPeter Feerick 06522db5b9 Add defines for magic numbers 2021-11-04 15:25:34 +10:00
Raphael CoefficandRaphael Coeffic 74ea7812e2 Add ALLOW_TRAINER_MULTI to enable Multi-trainer on targets with PXX2 internal module
Please note that this requires the S.PORT connection to the internal ISRM to be cut, as it would otherwise be pulled low by the ISRM (without using it otherwise).
2021-11-02 14:26:40 +01:00
Raphael CoefficandRaphael Coeffic 3247b59f5e Fix some power-up issues
Resolves #519
2021-11-01 11:01:32 +01:00
Raphael CoefficandRaphael Coeffic aabfc6f6b1 More cleanup 2021-11-01 11:01:32 +01:00
Raphael CoefficandRaphael Coeffic 5af7b7edc7 Some cleanup 2021-11-01 11:01:32 +01:00
Raphael CoefficandRaphael Coeffic b4e8ff3d6b Fix ADC pin definition (port A) 2021-11-01 11:01:32 +01:00
Raphael CoefficandRaphael Coeffic 7e34635dd7 NV14: fix attempt for external power mod
Use `EXTERNAL_MODULE_OFF()` function rather than defining `EXTERNAL_MODULE_PWR_OFF()` macro in `hal.h`.
2021-11-01 11:01:32 +01:00
Raphael Coeffic ba6881eb0f Remove compiler warning about potsPos[idx] 2021-10-31 09:30:21 +01:00
Peter FeerickandGitHub cabf8cca45 Merge pull request #28 from kevinkoenig/fix-slide-touch
Fix slide touch - merge commit to save grief with another PR
2021-10-29 11:33:59 +10:00
Peter FeerickandPeter Feerick 2b0a4ab27c Remove BMP_ARGB4444 override since autodetected
Fixes #966
2021-10-29 10:15:03 +10:00
Peter FeerickandPeter Feerick cd84f8665a Use ModelTextEdit in model edit screens!! 2021-10-28 09:28:17 +10:00
Peter FeerickandPeter Feerick 2f3919c4b9 Rebuild window when SF entry cleared
Resolves #322
2021-10-28 09:28:01 +10:00
eshifriandPeter Feerick 7aec59f05c Bypass widget options setup when they are not available #890 2021-10-27 09:41:54 +10:00
Peter FeerickandPeter Feerick 3041185ec3 Fix channel override icon state not being updated
Reported by @mervdale
2021-10-27 09:39:03 +10:00
Peter FeerickandPeter Feerick 8bb04e2a38 Fix widget options not triggering storageDirty
Fixes #958
2021-10-27 09:38:18 +10:00
eshifriandPeter Feerick 036af8e3e2 save timer name #949 2021-10-27 09:17:57 +10:00
c59f579bbe Add special function to disable the touch screen (#942)
* added a new special function to disable the touch screen

* Bump libopenui

* Don't try to disable touch if no hardware touch

* Disable processing of SF if no touch hardware

Co-authored-by: Peter Feerick <peter.feerick@gmail.com>
2021-10-25 23:20:57 +11:00
eshifriandPeter Feerick e4b5460e5c initialize timers array #943 2021-10-25 12:36:49 +11:00
eshifriandGitHub 4e571c1325 Improvements to time and timer display #911 (#912)
* Fix time display #911

* move TIMEHOUR definition

* change time format

* Refactoring

* rename

* remove unncessary code

* Change hour/minute format

* pack TimerDisplayOptions structure
2021-10-25 12:36:16 +11:00
gagarinlgandPeter Feerick 45db1393d6 added a way to disable touch screen event handling
Needed for EdgeTX issue #185
2021-10-24 22:32:03 +11:00
2b8dfeef59 Fix PNG transparency not working 🙂 (#878)
* Force BitmapBuffer format for widget ModelBmp and the file viewer
This patch run with the patch fix-transpareny in libopenui

* Bump libopenui

Co-authored-by: Runsys16 <rene.negre@orange.com>
2021-10-24 10:58:30 +11:00
28f224e64a Fix drawBitmapAbs transparency (i.e. PNGs) (#27)
* fix tansparency: when a bitmap change dimension, the function
drawBitmapAbs() is called.
this function respect the original format now !

* A BitmapBuffer can be draw inside another BitmaBuffer (ex: function
paint( BitmapBuffer * dc )) If the format is different, now the drawing
is correct.

Co-authored-by: Runsys16 <rene.negre@orange.com>
2021-10-23 12:07:03 +11:00
Peter FeerickandPeter Feerick 3e8faa381b Bump libopenui, add needed const 2021-10-22 21:03:16 +11:00
kkoenig1@optonline.comandPeter Feerick 45e4f05b16 readded separators correctly this time 2021-10-22 20:36:05 +11:00
kkoenig1@optonline.comandPeter Feerick cda649db1f Revert "added menu separators"
This reverts commit 35a4ebc7fe5b86eec23ddf8a9291d539f44e14b4.
2021-10-22 20:36:05 +11:00
kkoenig1@optonline.comandPeter Feerick bd3781c95e added menu separators 2021-10-22 20:36:05 +11:00
Marco RobustiniandPeter Feerick f6870976f9 Update it.h.txt 2021-10-22 18:30:46 +11:00