-
Notifications
You must be signed in to change notification settings - Fork 61
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
Feature/external event #9
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice addition! We could also use this to hardware sync with a 3D lidar right?
} | ||
|
||
void ExternalEvent::setupPublisher() { | ||
// TODO(rikba): I don't know why this needs to be redeclared here. It was |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm also not fully sure but has sth to do when the node handle actually gets initialized.
@@ -160,6 +171,10 @@ void setup() { | |||
FALLING); | |||
attachInterrupt(digitalPinToInterrupt(cam2.exposurePin()), exposureEnd2, | |||
FALLING); | |||
#ifdef EXT_EVENT | |||
attachInterrupt(ext_event0.eventPin(), extEvent0, EXT_EVENT_LOGIC); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need
attachInterrupt(ext_event0.eventPin(), extEvent0, EXT_EVENT_LOGIC); | |
attachInterrupt(digitalPinToInterrupt(ext_event0.eventPin()), extEvent0, EXT_EVENT_LOGIC); |
Add the possibility to add an external interrupt as a "sensor" input. ExternalEvent stamps the signal and publishes std_msgs::Time.
Requires: #8
Tested:
