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

publishes digital input port state #8

Merged
merged 1 commit into from
Dec 12, 2016

Conversation

at-wat
Copy link
Member

@at-wat at-wat commented Dec 12, 2016

No description provided.

@at-wat at-wat self-assigned this Dec 12, 2016
@at-wat
Copy link
Member Author

at-wat commented Dec 12, 2016

tested with TF-2MD3

@at-wat
Copy link
Member Author

at-wat commented Dec 12, 2016

commands

$ rosrun ypspur_ros ypspur_ros _param_file:=PARAM_FILE _dio7_enable:=true _dio7_input:=true _dio7_name:=test1 _dio0_enable:=true _dio0_name:=test0 _dio0_output:=false _dio0_intput:=true
$ rostopic echo /ypspur_ros/digital_input
$ rostopic pub /ypspur_ros/test1 ypspur_ros/DigitalOutput "output: 1
toggle_time:
  secs: 2
  nsecs: 0" 

results

header: 
  seq: 7065
  stamp: 
    secs: 1481547851
    nsecs: 586544699
  frame_id: ''
name: ['test0', 'test1']
state: [True, True]
---
header: 
  seq: 7066
  stamp: 
    secs: 1481547851
    nsecs: 591538319
  frame_id: ''
name: ['test0', 'test1']
state: [True, False]
---

The port state change had been detected. It is also confirmed that it worked with shorting io ports with GND.

@at-wat at-wat merged commit 92c9f70 into openspur:master Dec 12, 2016
@at-wat
Copy link
Member Author

at-wat commented Dec 12, 2016

This fixes #5.

@at-wat at-wat deleted the publish-digital-input branch December 12, 2016 13:11
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.

None yet

1 participant