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

libsbp python bindings. #31

Merged
merged 1 commit into from
Mar 17, 2015
Merged

libsbp python bindings. #31

merged 1 commit into from
Mar 17, 2015

Conversation

mookerji
Copy link
Contributor

libsbp python bindings using Construct, a declarative binary parsing
library for Python. Following up with a separate PR for a test
harness.

/cc @mfine, @fnoble, @imh


from construct import *
from swift.sbp import SBP
from swift.sbp.utils import fmt_repr
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this import swift.sbp right? Or is it swiftnav.sbp?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

uh, that's a typo. actually a really weird one.....

@mfine
Copy link
Contributor

mfine commented Mar 13, 2015

Generated bindings are looking good!

# EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.

"""Utility functions for shared
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incomplete docstring?

@fnoble
Copy link
Contributor

fnoble commented Mar 16, 2015

This is looking great! Still some formatting issues with the output when comment lines wrap 80 cols but functionally looks good (although didn't test myself yet).

libsbp python bindings using Construct, a declarative binary parsing
library for Python. Following up with a separate PR for a test
harness.

/cc @mfine, @fnoble, @imh
crc = data['crc']
return SBP(msg_type, sender, length, payload, crc)

def to_json_dict(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow, i'm troubled that this wasn't caught (by python)

@mfine
Copy link
Contributor

mfine commented Mar 17, 2015

Only caught a minor indent issue. Looking good!

mookerji added a commit that referenced this pull request Mar 17, 2015
@mookerji mookerji merged commit 74a4e59 into swift-nav:master Mar 17, 2015
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