Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow choosing the domain for LR1121 modules #2618

Merged
merged 1 commit into from Mar 31, 2024

Conversation

pkendall64
Copy link
Collaborator

Allow the user to change the regulatory domain from the web UI for devices using the LR1121.

@JyeSmith JyeSmith merged commit 3c04b8d into ExpressLRS:master Mar 31, 2024
43 checks passed
@pkendall64 pkendall64 deleted the fixes/lr1121-choose-domain branch March 31, 2024 21:57
mha1 added a commit to mha1/ExpressLRS that referenced this pull request Apr 18, 2024
cleanup rebase

first shot at LUA and WebUI user interface for selecting scondary serial pins and protocol

fixes build checks

cosmetics and added comment about DShot not working on GPIO0

PWM testing/fixes (ExpressLRS#2588)

* Revert "Fix for 10KHz 0% and 100% on 8285 receviers (ExpressLRS#2496)"

This reverts commit 12659fb.

* Much simpler handling of 0 high/low times

* Optimisation of timing in PWM timer interrupt

t

* Extend minimum time for next NMI

* Rename pin/i to gpio as thats what it really is.

cleanup

name changes for WebUI and LUA

fixed my serial1-config html extension (one </div> too many)

added Serial2 feature badge

increase-SX1276-SyncPktIntervalDisconnected-for-25Hz (ExpressLRS#2589)

Ignore trailing items with 0 duration (ExpressLRS#2612)

This fixes spurious channel data for inverted PPM and glitches

cleanup rebase

fixes build checks

cleanup

name changes for WebUI and LUA

fixed my serial1-config html extension (one </div> too many)

added Serial2 feature badge

Fix "Not set" UID badge (ExpressLRS#2619)

Allow choosing the SubGHz domain for LR1121 modules (ExpressLRS#2618)

restrict selection of Serial2 RX/TX to specific pins if Serial2 pins are defined in hardware.html

fixes feature selections not greyed out at initialization

include fix ExpressLRS#2623

LUA: bind Serial2 RX/TX to pins if defined for target, else allow any pin

WebUI: show Serial2 mode selection only if Serial2 TX is assigned

proper solution to showing/hiding Serial2 protocol selection.

WebUI: prevent multiple I2C SCL/SDA selections (ExpressLRS#2624)

* fixes issue ExpressLRS#2623

* do it properly

fix antenna value for Diversity/Gemini receivers (ExpressLRS#2622)

Fix LR1121 binding (ExpressLRS#2617)

* fix LR1121 binding

* remove magic

LUA script for assigning I2C and Serial2 modes:

- added logic to prevent multiple assignments of SCL/SDA and RX2/TX2

add r flag to encode string as raw string to fix deprecation (ExpressLRS#2598)

- SBUS Serial2 init with 8E2 instead of 8N2

- SBUS driver object needs to know which serial stream it is running on to allow SBUS on one and DJI on the other serial device

cleanup

updated to @pkendall64's review comments

changes:
- _('is-airport').onchange to call serial and serial1 onchange()
- added serial1 protocol to SetDefaults()

removed duplicate line of code
mha1 added a commit to mha1/ExpressLRS that referenced this pull request Apr 18, 2024
cleanup rebase

first shot at LUA and WebUI user interface for selecting scondary serial pins and protocol

fixes build checks

cosmetics and added comment about DShot not working on GPIO0

PWM testing/fixes (ExpressLRS#2588)

* Revert "Fix for 10KHz 0% and 100% on 8285 receviers (ExpressLRS#2496)"

This reverts commit 12659fb.

* Much simpler handling of 0 high/low times

* Optimisation of timing in PWM timer interrupt

t

* Extend minimum time for next NMI

* Rename pin/i to gpio as thats what it really is.

cleanup

name changes for WebUI and LUA

fixed my serial1-config html extension (one </div> too many)

added Serial2 feature badge

increase-SX1276-SyncPktIntervalDisconnected-for-25Hz (ExpressLRS#2589)

Ignore trailing items with 0 duration (ExpressLRS#2612)

This fixes spurious channel data for inverted PPM and glitches

cleanup rebase

fixes build checks

cleanup

name changes for WebUI and LUA

fixed my serial1-config html extension (one </div> too many)

added Serial2 feature badge

Fix "Not set" UID badge (ExpressLRS#2619)

Allow choosing the SubGHz domain for LR1121 modules (ExpressLRS#2618)

restrict selection of Serial2 RX/TX to specific pins if Serial2 pins are defined in hardware.html

fixes feature selections not greyed out at initialization

include fix ExpressLRS#2623

LUA: bind Serial2 RX/TX to pins if defined for target, else allow any pin

WebUI: show Serial2 mode selection only if Serial2 TX is assigned

proper solution to showing/hiding Serial2 protocol selection.

WebUI: prevent multiple I2C SCL/SDA selections (ExpressLRS#2624)

* fixes issue ExpressLRS#2623

* do it properly

fix antenna value for Diversity/Gemini receivers (ExpressLRS#2622)

Fix LR1121 binding (ExpressLRS#2617)

* fix LR1121 binding

* remove magic

LUA script for assigning I2C and Serial2 modes:

- added logic to prevent multiple assignments of SCL/SDA and RX2/TX2

add r flag to encode string as raw string to fix deprecation (ExpressLRS#2598)

- SBUS Serial2 init with 8E2 instead of 8N2

- SBUS driver object needs to know which serial stream it is running on to allow SBUS on one and DJI on the other serial device

cleanup

updated to @pkendall64's review comments

changes:
- _('is-airport').onchange to call serial and serial1 onchange()
- added serial1 protocol to SetDefaults()

removed duplicate line of code
mha1 added a commit to mha1/ExpressLRS that referenced this pull request Apr 18, 2024
cleanup rebase

first shot at LUA and WebUI user interface for selecting scondary serial pins and protocol

fixes build checks

cosmetics and added comment about DShot not working on GPIO0

PWM testing/fixes (ExpressLRS#2588)

* Revert "Fix for 10KHz 0% and 100% on 8285 receviers (ExpressLRS#2496)"

This reverts commit 12659fb.

* Much simpler handling of 0 high/low times

* Optimisation of timing in PWM timer interrupt

t

* Extend minimum time for next NMI

* Rename pin/i to gpio as thats what it really is.

cleanup

name changes for WebUI and LUA

fixed my serial1-config html extension (one </div> too many)

added Serial2 feature badge

increase-SX1276-SyncPktIntervalDisconnected-for-25Hz (ExpressLRS#2589)

Ignore trailing items with 0 duration (ExpressLRS#2612)

This fixes spurious channel data for inverted PPM and glitches

cleanup rebase

fixes build checks

cleanup

name changes for WebUI and LUA

fixed my serial1-config html extension (one </div> too many)

added Serial2 feature badge

Fix "Not set" UID badge (ExpressLRS#2619)

Allow choosing the SubGHz domain for LR1121 modules (ExpressLRS#2618)

restrict selection of Serial2 RX/TX to specific pins if Serial2 pins are defined in hardware.html

fixes feature selections not greyed out at initialization

include fix ExpressLRS#2623

LUA: bind Serial2 RX/TX to pins if defined for target, else allow any pin

WebUI: show Serial2 mode selection only if Serial2 TX is assigned

proper solution to showing/hiding Serial2 protocol selection.

WebUI: prevent multiple I2C SCL/SDA selections (ExpressLRS#2624)

* fixes issue ExpressLRS#2623

* do it properly

fix antenna value for Diversity/Gemini receivers (ExpressLRS#2622)

Fix LR1121 binding (ExpressLRS#2617)

* fix LR1121 binding

* remove magic

LUA script for assigning I2C and Serial2 modes:

- added logic to prevent multiple assignments of SCL/SDA and RX2/TX2

add r flag to encode string as raw string to fix deprecation (ExpressLRS#2598)

- SBUS Serial2 init with 8E2 instead of 8N2

- SBUS driver object needs to know which serial stream it is running on to allow SBUS on one and DJI on the other serial device

cleanup

updated to @pkendall64's review comments

changes:
- _('is-airport').onchange to call serial and serial1 onchange()
- added serial1 protocol to SetDefaults()

removed duplicate line of code
mha1 added a commit to mha1/ExpressLRS that referenced this pull request Apr 19, 2024
cleanup rebase

first shot at LUA and WebUI user interface for selecting scondary serial pins and protocol

fixes build checks

cosmetics and added comment about DShot not working on GPIO0

PWM testing/fixes (ExpressLRS#2588)

* Revert "Fix for 10KHz 0% and 100% on 8285 receviers (ExpressLRS#2496)"

This reverts commit 12659fb.

* Much simpler handling of 0 high/low times

* Optimisation of timing in PWM timer interrupt

t

* Extend minimum time for next NMI

* Rename pin/i to gpio as thats what it really is.

cleanup

name changes for WebUI and LUA

fixed my serial1-config html extension (one </div> too many)

added Serial2 feature badge

increase-SX1276-SyncPktIntervalDisconnected-for-25Hz (ExpressLRS#2589)

Ignore trailing items with 0 duration (ExpressLRS#2612)

This fixes spurious channel data for inverted PPM and glitches

cleanup rebase

fixes build checks

cleanup

name changes for WebUI and LUA

fixed my serial1-config html extension (one </div> too many)

added Serial2 feature badge

Fix "Not set" UID badge (ExpressLRS#2619)

Allow choosing the SubGHz domain for LR1121 modules (ExpressLRS#2618)

restrict selection of Serial2 RX/TX to specific pins if Serial2 pins are defined in hardware.html

fixes feature selections not greyed out at initialization

include fix ExpressLRS#2623

LUA: bind Serial2 RX/TX to pins if defined for target, else allow any pin

WebUI: show Serial2 mode selection only if Serial2 TX is assigned

proper solution to showing/hiding Serial2 protocol selection.

WebUI: prevent multiple I2C SCL/SDA selections (ExpressLRS#2624)

* fixes issue ExpressLRS#2623

* do it properly

fix antenna value for Diversity/Gemini receivers (ExpressLRS#2622)

Fix LR1121 binding (ExpressLRS#2617)

* fix LR1121 binding

* remove magic

LUA script for assigning I2C and Serial2 modes:

- added logic to prevent multiple assignments of SCL/SDA and RX2/TX2

add r flag to encode string as raw string to fix deprecation (ExpressLRS#2598)

- SBUS Serial2 init with 8E2 instead of 8N2

- SBUS driver object needs to know which serial stream it is running on to allow SBUS on one and DJI on the other serial device

cleanup

updated to @pkendall64's review comments

changes:
- _('is-airport').onchange to call serial and serial1 onchange()
- added serial1 protocol to SetDefaults()

removed duplicate line of code
mha1 added a commit to mha1/ExpressLRS that referenced this pull request Apr 20, 2024
cleanup rebase

first shot at LUA and WebUI user interface for selecting scondary serial pins and protocol

fixes build checks

cosmetics and added comment about DShot not working on GPIO0

PWM testing/fixes (ExpressLRS#2588)

* Revert "Fix for 10KHz 0% and 100% on 8285 receviers (ExpressLRS#2496)"

This reverts commit 12659fb.

* Much simpler handling of 0 high/low times

* Optimisation of timing in PWM timer interrupt

t

* Extend minimum time for next NMI

* Rename pin/i to gpio as thats what it really is.

cleanup

name changes for WebUI and LUA

fixed my serial1-config html extension (one </div> too many)

added Serial2 feature badge

increase-SX1276-SyncPktIntervalDisconnected-for-25Hz (ExpressLRS#2589)

Ignore trailing items with 0 duration (ExpressLRS#2612)

This fixes spurious channel data for inverted PPM and glitches

cleanup rebase

fixes build checks

cleanup

name changes for WebUI and LUA

fixed my serial1-config html extension (one </div> too many)

added Serial2 feature badge

Fix "Not set" UID badge (ExpressLRS#2619)

Allow choosing the SubGHz domain for LR1121 modules (ExpressLRS#2618)

restrict selection of Serial2 RX/TX to specific pins if Serial2 pins are defined in hardware.html

fixes feature selections not greyed out at initialization

include fix ExpressLRS#2623

LUA: bind Serial2 RX/TX to pins if defined for target, else allow any pin

WebUI: show Serial2 mode selection only if Serial2 TX is assigned

proper solution to showing/hiding Serial2 protocol selection.

WebUI: prevent multiple I2C SCL/SDA selections (ExpressLRS#2624)

* fixes issue ExpressLRS#2623

* do it properly

fix antenna value for Diversity/Gemini receivers (ExpressLRS#2622)

Fix LR1121 binding (ExpressLRS#2617)

* fix LR1121 binding

* remove magic

LUA script for assigning I2C and Serial2 modes:

- added logic to prevent multiple assignments of SCL/SDA and RX2/TX2

add r flag to encode string as raw string to fix deprecation (ExpressLRS#2598)

- SBUS Serial2 init with 8E2 instead of 8N2

- SBUS driver object needs to know which serial stream it is running on to allow SBUS on one and DJI on the other serial device

cleanup

updated to @pkendall64's review comments

changes:
- _('is-airport').onchange to call serial and serial1 onchange()
- added serial1 protocol to SetDefaults()

removed duplicate line of code
mha1 added a commit to mha1/ExpressLRS that referenced this pull request Apr 21, 2024
cleanup rebase

first shot at LUA and WebUI user interface for selecting scondary serial pins and protocol

fixes build checks

cosmetics and added comment about DShot not working on GPIO0

PWM testing/fixes (ExpressLRS#2588)

* Revert "Fix for 10KHz 0% and 100% on 8285 receviers (ExpressLRS#2496)"

This reverts commit 12659fb.

* Much simpler handling of 0 high/low times

* Optimisation of timing in PWM timer interrupt

t

* Extend minimum time for next NMI

* Rename pin/i to gpio as thats what it really is.

cleanup

name changes for WebUI and LUA

fixed my serial1-config html extension (one </div> too many)

added Serial2 feature badge

increase-SX1276-SyncPktIntervalDisconnected-for-25Hz (ExpressLRS#2589)

Ignore trailing items with 0 duration (ExpressLRS#2612)

This fixes spurious channel data for inverted PPM and glitches

cleanup rebase

fixes build checks

cleanup

name changes for WebUI and LUA

fixed my serial1-config html extension (one </div> too many)

added Serial2 feature badge

Fix "Not set" UID badge (ExpressLRS#2619)

Allow choosing the SubGHz domain for LR1121 modules (ExpressLRS#2618)

restrict selection of Serial2 RX/TX to specific pins if Serial2 pins are defined in hardware.html

fixes feature selections not greyed out at initialization

include fix ExpressLRS#2623

LUA: bind Serial2 RX/TX to pins if defined for target, else allow any pin

WebUI: show Serial2 mode selection only if Serial2 TX is assigned

proper solution to showing/hiding Serial2 protocol selection.

WebUI: prevent multiple I2C SCL/SDA selections (ExpressLRS#2624)

* fixes issue ExpressLRS#2623

* do it properly

fix antenna value for Diversity/Gemini receivers (ExpressLRS#2622)

Fix LR1121 binding (ExpressLRS#2617)

* fix LR1121 binding

* remove magic

LUA script for assigning I2C and Serial2 modes:

- added logic to prevent multiple assignments of SCL/SDA and RX2/TX2

add r flag to encode string as raw string to fix deprecation (ExpressLRS#2598)

- SBUS Serial2 init with 8E2 instead of 8N2

- SBUS driver object needs to know which serial stream it is running on to allow SBUS on one and DJI on the other serial device

cleanup

updated to @pkendall64's review comments

changes:
- _('is-airport').onchange to call serial and serial1 onchange()
- added serial1 protocol to SetDefaults()

removed duplicate line of code
mha1 added a commit to mha1/ExpressLRS that referenced this pull request Apr 23, 2024
cleanup rebase

first shot at LUA and WebUI user interface for selecting scondary serial pins and protocol

fixes build checks

cosmetics and added comment about DShot not working on GPIO0

PWM testing/fixes (ExpressLRS#2588)

* Revert "Fix for 10KHz 0% and 100% on 8285 receviers (ExpressLRS#2496)"

This reverts commit 12659fb.

* Much simpler handling of 0 high/low times

* Optimisation of timing in PWM timer interrupt

t

* Extend minimum time for next NMI

* Rename pin/i to gpio as thats what it really is.

cleanup

name changes for WebUI and LUA

fixed my serial1-config html extension (one </div> too many)

added Serial2 feature badge

increase-SX1276-SyncPktIntervalDisconnected-for-25Hz (ExpressLRS#2589)

Ignore trailing items with 0 duration (ExpressLRS#2612)

This fixes spurious channel data for inverted PPM and glitches

cleanup rebase

fixes build checks

cleanup

name changes for WebUI and LUA

fixed my serial1-config html extension (one </div> too many)

added Serial2 feature badge

Fix "Not set" UID badge (ExpressLRS#2619)

Allow choosing the SubGHz domain for LR1121 modules (ExpressLRS#2618)

restrict selection of Serial2 RX/TX to specific pins if Serial2 pins are defined in hardware.html

fixes feature selections not greyed out at initialization

include fix ExpressLRS#2623

LUA: bind Serial2 RX/TX to pins if defined for target, else allow any pin

WebUI: show Serial2 mode selection only if Serial2 TX is assigned

proper solution to showing/hiding Serial2 protocol selection.

WebUI: prevent multiple I2C SCL/SDA selections (ExpressLRS#2624)

* fixes issue ExpressLRS#2623

* do it properly

fix antenna value for Diversity/Gemini receivers (ExpressLRS#2622)

Fix LR1121 binding (ExpressLRS#2617)

* fix LR1121 binding

* remove magic

LUA script for assigning I2C and Serial2 modes:

- added logic to prevent multiple assignments of SCL/SDA and RX2/TX2

add r flag to encode string as raw string to fix deprecation (ExpressLRS#2598)

- SBUS Serial2 init with 8E2 instead of 8N2

- SBUS driver object needs to know which serial stream it is running on to allow SBUS on one and DJI on the other serial device

cleanup

updated to @pkendall64's review comments

changes:
- _('is-airport').onchange to call serial and serial1 onchange()
- added serial1 protocol to SetDefaults()

removed duplicate line of code
mha1 added a commit to mha1/ExpressLRS that referenced this pull request Apr 25, 2024
cleanup rebase

first shot at LUA and WebUI user interface for selecting scondary serial pins and protocol

fixes build checks

cosmetics and added comment about DShot not working on GPIO0

PWM testing/fixes (ExpressLRS#2588)

* Revert "Fix for 10KHz 0% and 100% on 8285 receviers (ExpressLRS#2496)"

This reverts commit 12659fb.

* Much simpler handling of 0 high/low times

* Optimisation of timing in PWM timer interrupt

t

* Extend minimum time for next NMI

* Rename pin/i to gpio as thats what it really is.

cleanup

name changes for WebUI and LUA

fixed my serial1-config html extension (one </div> too many)

added Serial2 feature badge

increase-SX1276-SyncPktIntervalDisconnected-for-25Hz (ExpressLRS#2589)

Ignore trailing items with 0 duration (ExpressLRS#2612)

This fixes spurious channel data for inverted PPM and glitches

cleanup rebase

fixes build checks

cleanup

name changes for WebUI and LUA

fixed my serial1-config html extension (one </div> too many)

added Serial2 feature badge

Fix "Not set" UID badge (ExpressLRS#2619)

Allow choosing the SubGHz domain for LR1121 modules (ExpressLRS#2618)

restrict selection of Serial2 RX/TX to specific pins if Serial2 pins are defined in hardware.html

fixes feature selections not greyed out at initialization

include fix ExpressLRS#2623

LUA: bind Serial2 RX/TX to pins if defined for target, else allow any pin

WebUI: show Serial2 mode selection only if Serial2 TX is assigned

proper solution to showing/hiding Serial2 protocol selection.

WebUI: prevent multiple I2C SCL/SDA selections (ExpressLRS#2624)

* fixes issue ExpressLRS#2623

* do it properly

fix antenna value for Diversity/Gemini receivers (ExpressLRS#2622)

Fix LR1121 binding (ExpressLRS#2617)

* fix LR1121 binding

* remove magic

LUA script for assigning I2C and Serial2 modes:

- added logic to prevent multiple assignments of SCL/SDA and RX2/TX2

add r flag to encode string as raw string to fix deprecation (ExpressLRS#2598)

- SBUS Serial2 init with 8E2 instead of 8N2

- SBUS driver object needs to know which serial stream it is running on to allow SBUS on one and DJI on the other serial device

cleanup

updated to @pkendall64's review comments

changes:
- _('is-airport').onchange to call serial and serial1 onchange()
- added serial1 protocol to SetDefaults()

removed duplicate line of code
mha1 added a commit to mha1/ExpressLRS that referenced this pull request May 2, 2024
cleanup rebase

first shot at LUA and WebUI user interface for selecting scondary serial pins and protocol

fixes build checks

cosmetics and added comment about DShot not working on GPIO0

PWM testing/fixes (ExpressLRS#2588)

* Revert "Fix for 10KHz 0% and 100% on 8285 receviers (ExpressLRS#2496)"

This reverts commit 12659fb.

* Much simpler handling of 0 high/low times

* Optimisation of timing in PWM timer interrupt

t

* Extend minimum time for next NMI

* Rename pin/i to gpio as thats what it really is.

cleanup

name changes for WebUI and LUA

fixed my serial1-config html extension (one </div> too many)

added Serial2 feature badge

increase-SX1276-SyncPktIntervalDisconnected-for-25Hz (ExpressLRS#2589)

Ignore trailing items with 0 duration (ExpressLRS#2612)

This fixes spurious channel data for inverted PPM and glitches

cleanup rebase

fixes build checks

cleanup

name changes for WebUI and LUA

fixed my serial1-config html extension (one </div> too many)

added Serial2 feature badge

Fix "Not set" UID badge (ExpressLRS#2619)

Allow choosing the SubGHz domain for LR1121 modules (ExpressLRS#2618)

restrict selection of Serial2 RX/TX to specific pins if Serial2 pins are defined in hardware.html

fixes feature selections not greyed out at initialization

include fix ExpressLRS#2623

LUA: bind Serial2 RX/TX to pins if defined for target, else allow any pin

WebUI: show Serial2 mode selection only if Serial2 TX is assigned

proper solution to showing/hiding Serial2 protocol selection.

WebUI: prevent multiple I2C SCL/SDA selections (ExpressLRS#2624)

* fixes issue ExpressLRS#2623

* do it properly

fix antenna value for Diversity/Gemini receivers (ExpressLRS#2622)

Fix LR1121 binding (ExpressLRS#2617)

* fix LR1121 binding

* remove magic

LUA script for assigning I2C and Serial2 modes:

- added logic to prevent multiple assignments of SCL/SDA and RX2/TX2

add r flag to encode string as raw string to fix deprecation (ExpressLRS#2598)

- SBUS Serial2 init with 8E2 instead of 8N2

- SBUS driver object needs to know which serial stream it is running on to allow SBUS on one and DJI on the other serial device

cleanup

updated to @pkendall64's review comments

changes:
- _('is-airport').onchange to call serial and serial1 onchange()
- added serial1 protocol to SetDefaults()

removed duplicate line of code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants