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

Fix for bad position nn60.00, and nicer DAO computation #41

Merged
merged 4 commits into from
Oct 11, 2021

Conversation

dl9sau
Copy link

@dl9sau dl9sau commented Oct 6, 2021

sprintf("%f", ... rounds up.
In the special case of minute of position > 59.9990 the result is 60.0.
This results in a wrong APRS position location (i.e. 53.60.00N).

This patch also makes create_dao_aprs() nicer and fixes "TODO: optimize ugly float to char to string to int conversion?".

I tested the patch, and the author of the dao_aprs extension, dj1an, has confirmed everythin is still ok.

Thomas Osterried added 3 commits October 6, 2021 23:56
In the special case of minute of position > 59.9990 the result is 60.0.
This results in a wrong APRS position location (i.e. 53.60.00N).

This patch also makes create_dao_aprs() nicer and fixes "TODO: optimize ugly float to char to string to int conversion?".

I tested the patch, and the author of the dao_aprs extension, dj1an, has confirmed everythin is still ok.
@dl9sau
Copy link
Author

dl9sau commented Oct 8, 2021

Another fix for a different par:
time_t is never negative. Removed if (time_t t <) case.

if ? ... : ... syntax is efficient and nerdy, but not everyone likes it,
and I admit, it's better readable ;)
@dl9sau
Copy link
Author

dl9sau commented Oct 10, 2021

Modification for code readers.
if ? ... : ... syntax is efficient and nerdy, but not everyone likes it,
and I admit, it's better readable ;)

@dl9sau dl9sau closed this Oct 10, 2021
@dl9sau dl9sau reopened this Oct 10, 2021
@dl9sau
Copy link
Author

dl9sau commented Oct 10, 2021

close pull request did not what I expected ;)

@peterus peterus merged commit d2aa064 into lora-aprs:master Oct 11, 2021
@peterus
Copy link
Member

peterus commented Oct 11, 2021

@dl9sau Thank you very much for your changes ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants