Skip to content

Update to new file_io messages #84

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

Merged
merged 2 commits into from
Jul 6, 2015
Merged

Update to new file_io messages #84

merged 2 commits into from
Jul 6, 2015

Conversation

mfine
Copy link
Contributor

@mfine mfine commented Jun 24, 2015

Pick up the new file_io messages. See swift-nav/libsbp#183.

/cc @fnoble @mookerji @denniszollo

self.link.send(SBP_MSG_FILEIO_READ, msg)
data = self.link.wait(SBP_MSG_FILEIO_READ, timeout=1.0)
self.link.send(SBP_MSG_FILEIO_READ_REQUEST, msg)
data = self.link.wait([SBP_MSG_FILEIO_READ_REQUEST,
Copy link
Contributor

Choose a reason for hiding this comment

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

wait only dispatches on a single msg ID, right? Would you want to do ....

data = self.link.wait(SBP_MSG_FILEIO_READ_RESPONSE, timeout=1.0)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You can wait on multiple messages... one of the benefits that came out of swift-nav/libsbp#174.

Copy link
Contributor

Choose a reason for hiding this comment

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

I totally missed that. ... Under what circumstance is the host going to have to wait on a REQUEST and not just a RESPONSE?

@mookerji
Copy link
Contributor

mookerji commented Jul 6, 2015

Looks good to me!

mfine added a commit that referenced this pull request Jul 6, 2015
Update to new file_io messages
@mfine mfine merged commit 441112e into swift-nav:master Jul 6, 2015
@mfine mfine deleted the mfine-file-io branch July 6, 2015 20:21
@imh imh removed the 5 - Done label Jul 20, 2015
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.

3 participants