Support remote update of lighthouse calibration#127
Open
geonnave wants to merge 7 commits intoDotBots:mainfrom
Open
Support remote update of lighthouse calibration#127geonnave wants to merge 7 commits intoDotBots:mainfrom
geonnave wants to merge 7 commits intoDotBots:mainfrom
Conversation
62f5f3d to
3fd577d
Compare
3fd577d to
0e74cc9
Compare
Contributor
Author
|
With the busy days of IETF meeting, visit and talk at HKUST-GZ, adjusting the Mari paper, contributing to OpenSwarm deliverables... I could not advance this PR. I think this is really important as @AmyMcMahon2 has a demo for early/mid April, however I will not be able to work on it next week as I will be on PTO. @aabadie if you have some time, could you please take a look? All the plumbing is here and the principle works, the only missing part is finding out why the device reboots/crashes when I write to the flash. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The plan:
swarmit -c ../swarmit-argus.toml -n A001 calibrate ~/.dotbot/calibration.outRegarding the transfer, my approach is to send the homography matrices one by one, the packets will be like this:
The calibration is stateless on the device side: every time it receives a calibration packet, it writes
countto the flash config area, as well as the thehomographymatrix (at the correct ìndexas indicated in the packet). This means that the samecount` will be written several times (one for each packet), but there is no harm on that.Update: this now works! Remains to be tested with a real lighthouse though.
How to test the remote calibration update:
I also used these snippets to generate some dummy calibration files: