Skip to content

Conversation

@Dazza0
Copy link
Contributor

@Dazza0 Dazza0 commented Jun 19, 2025

Description

This PR adds support for specifying PA power ramp time on the LR11X0 targets by adding an extra rampTimeUs parameter to the setOutputPower() function.

Note: The LR11x0 targets only support discrete ramp times. A roundRampTime() helper function is added to round up a ramp time to the nearest supported ramp time. Conversion is done via if/else if due to the discrete ramp times not scale linearly.

@StevenCellist
Copy link
Collaborator

StevenCellist commented Jun 19, 2025

Lots if whitespace changes here - any chance you can leave those out? :)
Ah.. commented here before seeing #1530. Leaving this one up to Gromes the Great.

@jgromes jgromes added the enhancement New feature or request label Jun 19, 2025
@jgromes
Copy link
Owner

jgromes commented Jun 19, 2025

@Dazza0 Thank you - everything looks good in terms of the PA ramp time, however, please leave out the whitespace changes so that we can deal with those in the separate PR.

- `setOutputPower()` now accepts a `rampTimeUs` argument
- `roundRampTime()` rounds up the ramp time to a discerte register value
  supported by the LR11X0 module.
@Dazza0 Dazza0 force-pushed the feature/add_ramp_time branch from 23f49f3 to 70b0a89 Compare June 20, 2025 05:34
@Dazza0
Copy link
Contributor Author

Dazza0 commented Jun 20, 2025

@jgromes Whitespace changes removed

@jgromes jgromes merged commit e173cb3 into jgromes:master Jun 20, 2025
31 checks passed
@jgromes
Copy link
Owner

jgromes commented Jun 20, 2025

@Dazza0 looking good now - merged, thank you!

@Dazza0 Dazza0 deleted the feature/add_ramp_time branch June 23, 2025 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants