Skip to content

Allow non-integer LoRa Frequencies #25

@nesanakin

Description

@nesanakin

On the ground unit, the 'freq' setting should allow for non-integer frequencies for the LoRa radio. Due to the flooring division on line 392 of main.py:

freq_mhz = freq_hz // 1000000

Frequencies are rounded to integer MHz values. For example, I am using 919875000 Hz, which is incorrectly rounded to 919000000 Hz. A simple change to use regular division:

    freq_mhz = freq_hz / 1000000

Corrects the issue.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions