Skip to content

Commit

Permalink
Add start and end to channel
Browse files Browse the repository at this point in the history
  • Loading branch information
JensVanhooydonck committed May 11, 2024
1 parent a631c88 commit 4cb009a
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,14 @@ namespace ethercat_interface {
for_name = channel_config["for"].as<std::string>();
}

if (channel_config["start"]) {
start = channel_config["start"].as<bool>();
}

if (channel_config["end"]) {
end = channel_config["end"].as<bool>();
}

return true;
}

Expand Down Expand Up @@ -242,6 +250,8 @@ namespace ethercat_interface {
double factor = 1;
double offset = 0;
std::string for_name;
bool start = false;
bool end = false;

private:
std::vector<double> *command_interface_ptr_;
Expand Down

0 comments on commit 4cb009a

Please sign in to comment.