Skip to content

Commit

Permalink
Moved setting framerate from start to configure so that it is set wit…
Browse files Browse the repository at this point in the history
…hout needing to restart the stream
  • Loading branch information
Mitchell Wills authored and Aero committed Feb 23, 2014
1 parent 3be551d commit cd3ccd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prosilica_camera/src/nodes/prosilica_node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ class ProsilicaNode
else if (config.trigger_mode == "fixedrate") {
trigger_mode_ = prosilica::FixedRate;
desired_freq_ = config.trig_rate;
cam_->setFrameRate(desired_freq_);
}
else if (config.trigger_mode == "polled") {
trigger_mode_ = prosilica::Software;
Expand Down Expand Up @@ -362,7 +363,6 @@ class ProsilicaNode
trigger_sub_ = nh_.subscribe(trig_timestamp_topic_, 1, &ProsilicaNode::syncInCallback, this);
}
else if (trigger_mode_ == prosilica::FixedRate){
cam_->setFrameRate(desired_freq_);
}
else {
assert(trigger_mode_ == prosilica::Freerun);
Expand Down

0 comments on commit cd3ccd7

Please sign in to comment.