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

Refer to 'micropyGPS.py' for the proposed improvements #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AutoPilotjn
Copy link

@AutoPilotjn AutoPilotjn commented Feb 18, 2023

Formatted by black
Add new format in date_string ('2023-01-01'): 'l_ymd'
Add new format in speed_string ('3.2f')
add new 'timestamp_string' helper function
adjust code for being compliant with typing (pylance & mypy)
Add parser for the antenna status: PGTOP: $PGTOP,11,x
Implement suggestions from #14

  • use of fstring instead of % formating
  • use of lists instead of tuples

Adjust code in 'speed_string' when knot speed is within +-1 range (English grammar to be confirmed)
Add pytest tests for checking the above
Adjust minor clerical errors
Works with python 3.11.2
Works with MicroPython 1.19.1 after stripping annotations (refer to https://github.com/orgs/micropython/discussions/10529#discussioncomment-4764412)

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.

1 participant