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

Store the port so the in use port will be referenced when reopening. #2017

Merged
merged 1 commit into from
Apr 13, 2015

Conversation

SimonWilks
Copy link

This allows the SF0x lasers to operate on non-default ports and resolves #2004. Tested on both the default port (Serial4) and Telem2:

nsh> sf0x start /dev/ttyS2
nsh> sf0x test
sf0x: single read
sf0x: val:  0.08 m
sf0x: time: 28345363
sf0x: read #0
sf0x: val:  0.080 m
sf0x: time: 28429739
sf0x: read #1
sf0x: val:  0.080 m
sf0x: time: 29103631
sf0x: read #2
sf0x: val:  0.080 m
sf0x: time: 29606865
sf0x: read #3
sf0x: val:  0.080 m
sf0x: time: 30109990
sf0x: read #4
sf0x: val:  0.080 m
sf0x: time: 30613180
sf0x: PASS
nsh> sf0x test
sf0x: single read
sf0x: val:  0.40 m
sf0x: time: 50787312
sf0x: read #0
sf0x: val:  0.400 m
sf0x: time: 50870123
sf0x: read #1
sf0x: val:  0.400 m
sf0x: time: 50953459
sf0x: read #2
sf0x: val:  0.400 m
sf0x: time: 51457711
sf0x: read #3
sf0x: val:  0.370 m
sf0x: time: 51961960
sf0x: read #4
sf0x: val:  0.120 m
sf0x: time: 52466071
sf0x: PASS
nsh> 

@LorenzMeier
Copy link
Member

Thanks!

LorenzMeier added a commit that referenced this pull request Apr 13, 2015
Store the port so the in use port will be referenced when reopening.
@LorenzMeier LorenzMeier merged commit 3c36a61 into PX4:master Apr 13, 2015
@LorenzMeier LorenzMeier deleted the sf02_fix branch April 13, 2015 10:28
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.

sf0x doesnt work anymore in master for LightWare SF02/F Laser Rangefinder
3 participants