Skip to content

Commit 00572d4

Browse files
authored
depreciating custom ethercat plugins (#73)
1 parent c9c6b10 commit 00572d4

File tree

16 files changed

+104
-20
lines changed

16 files changed

+104
-20
lines changed

ethercat_plugins/ethercat_advantech_modules/src/amax5051.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ class Advantech_AMAX5051 : public ethercat_interface::EcSlave
2121
{
2222
public:
2323
Advantech_AMAX5051()
24-
: EcSlave(0x000013FE, 0x00035051) {}
24+
: EcSlave(0x000013FE, 0x00035051)
25+
{
26+
std::cerr << "The Advantech_AMAX5051 plugin is depreciated and will be removed in the future."
27+
<< "Use the GenericEcSlave plugin instead." << std::endl;
28+
}
2529
virtual ~Advantech_AMAX5051() {}
2630
virtual void processData(size_t index, uint8_t * domain_address)
2731
{

ethercat_plugins/ethercat_advantech_modules/src/amax5056.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ class Advantech_AMAX5056 : public ethercat_interface::EcSlave
2121
{
2222
public:
2323
Advantech_AMAX5056()
24-
: EcSlave(0x000013FE, 0x00035056) {}
24+
: EcSlave(0x000013FE, 0x00035056)
25+
{
26+
std::cerr << "The Advantech_AMAX5056 plugin is depreciated and will be removed in the future."
27+
<< "Use the GenericEcSlave plugin instead." << std::endl;
28+
}
2529
virtual ~Advantech_AMAX5056() {}
2630
virtual void processData(size_t index, uint8_t * domain_address)
2731
{

ethercat_plugins/ethercat_ati_modules/src/ati_ft_sensor.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ class ATI_FTSensor : public ethercat_interface::EcSlave
2121
{
2222
public:
2323
ATI_FTSensor()
24-
: EcSlave(0x00000732, 0x26483052) {}
24+
: EcSlave(0x00000732, 0x26483052)
25+
{
26+
std::cerr << "The ATI_FTSensor plugin is depreciated and will be removed in the future."
27+
<< "Use the GenericEcSlave plugin instead." << std::endl;
28+
}
2529
virtual ~ATI_FTSensor() {}
2630
virtual void processData(size_t index, uint8_t * domain_address)
2731
{

ethercat_plugins/ethercat_beckhoff_modules/src/beckhoff_ek1100.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ class Beckhoff_EK1100 : public ethercat_interface::EcSlave
2121
{
2222
public:
2323
Beckhoff_EK1100()
24-
: EcSlave(0x00000002, 0x044c2c52) {}
24+
: EcSlave(0x00000002, 0x044c2c52)
25+
{
26+
std::cerr << "The Beckhoff_EK1100 plugin is depreciated and will be removed in the future."
27+
<< "Use the GenericEcSlave plugin instead." << std::endl;
28+
}
2529
virtual ~Beckhoff_EK1100() {}
2630
};
2731

ethercat_plugins/ethercat_beckhoff_modules/src/beckhoff_el10xx.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ class Beckhoff_EL1008 : public ethercat_interface::EcSlave
2121
{
2222
public:
2323
Beckhoff_EL1008()
24-
: EcSlave(0x00000002, 0x03f03052) {}
24+
: EcSlave(0x00000002, 0x03f03052)
25+
{
26+
std::cerr << "The Beckhoff_EL1008 plugin is depreciated and will be removed in the future."
27+
<< "Use the GenericEcSlave plugin instead." << std::endl;
28+
}
2529
virtual ~Beckhoff_EL1008() {}
2630
virtual void processData(size_t index, uint8_t * domain_address)
2731
{
@@ -116,7 +120,11 @@ class Beckhoff_EL1018 : public ethercat_interface::EcSlave
116120
{
117121
public:
118122
Beckhoff_EL1018()
119-
: EcSlave(0x00000002, 0x03fa3052) {}
123+
: EcSlave(0x00000002, 0x03fa3052)
124+
{
125+
std::cerr << "The Beckhoff_EL1018 plugin is depreciated and will be removed in the future."
126+
<< "Use the GenericEcSlave plugin instead." << std::endl;
127+
}
120128
virtual ~Beckhoff_EL1018() {}
121129
virtual void processData(size_t index, uint8_t * domain_address)
122130
{

ethercat_plugins/ethercat_beckhoff_modules/src/beckhoff_el20xx.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ class Beckhoff_EL2008 : public ethercat_interface::EcSlave
2121
{
2222
public:
2323
Beckhoff_EL2008()
24-
: EcSlave(0x00000002, 0x07d83052) {}
24+
: EcSlave(0x00000002, 0x07d83052)
25+
{
26+
std::cerr << "The Beckhoff_EL2008 plugin is depreciated and will be removed in the future."
27+
<< "Use the GenericEcSlave plugin instead." << std::endl;
28+
}
2529
virtual ~Beckhoff_EL2008() {}
2630
virtual void processData(size_t index, uint8_t * domain_address)
2731
{
@@ -130,7 +134,11 @@ class Beckhoff_EL2088 : public ethercat_interface::EcSlave
130134
{
131135
public:
132136
Beckhoff_EL2088()
133-
: EcSlave(0x00000002, 0x08283052) {}
137+
: EcSlave(0x00000002, 0x08283052)
138+
{
139+
std::cerr << "The Beckhoff_EL2088 plugin is depreciated and will be removed in the future."
140+
<< "Use the GenericEcSlave plugin instead." << std::endl;
141+
}
134142
virtual ~Beckhoff_EL2088() {}
135143
virtual void processData(size_t index, uint8_t * domain_address)
136144
{

ethercat_plugins/ethercat_beckhoff_modules/src/beckhoff_el21xx.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ class Beckhoff_EL2124 : public ethercat_interface::EcSlave
2121
{
2222
public:
2323
Beckhoff_EL2124()
24-
: EcSlave(0x00000002, 0x084c3052) {}
24+
: EcSlave(0x00000002, 0x084c3052)
25+
{
26+
std::cerr << "The Beckhoff_EL2124 plugin is depreciated and will be removed in the future."
27+
<< "Use the GenericEcSlave plugin instead." << std::endl;
28+
}
2529
virtual ~Beckhoff_EL2124() {}
2630
virtual void processData(size_t index, uint8_t * domain_address)
2731
{

ethercat_plugins/ethercat_beckhoff_modules/src/beckhoff_el31xx.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ class Beckhoff_EL3102 : public ethercat_interface::EcSlave
2121
{
2222
public:
2323
Beckhoff_EL3102()
24-
: EcSlave(0x00000002, 0x0c1e3052) {}
24+
: EcSlave(0x00000002, 0x0c1e3052)
25+
{
26+
std::cerr << "The Beckhoff_EL3102 plugin is depreciated and will be removed in the future."
27+
<< "Use the GenericEcSlave plugin instead." << std::endl;
28+
}
2529
virtual ~Beckhoff_EL3102() {}
2630
virtual void processData(size_t index, uint8_t * domain_address)
2731
{
@@ -97,7 +101,11 @@ class Beckhoff_EL3104 : public ethercat_interface::EcSlave
97101
{
98102
public:
99103
Beckhoff_EL3104()
100-
: EcSlave(0x00000002, 0x0c203052) {}
104+
: EcSlave(0x00000002, 0x0c203052)
105+
{
106+
std::cerr << "The Beckhoff_EL3104 plugin is depreciated and will be removed in the future."
107+
<< "Use the GenericEcSlave plugin instead." << std::endl;
108+
}
101109
virtual ~Beckhoff_EL3104() {}
102110
virtual void processData(size_t index, uint8_t domain_address)
103111
{

ethercat_plugins/ethercat_beckhoff_modules/src/beckhoff_el41xx.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ class Beckhoff_EL4134 : public ethercat_interface::EcSlave
2121
{
2222
public:
2323
Beckhoff_EL4134()
24-
: EcSlave(0x00000002, 0x10263052) {}
24+
: EcSlave(0x00000002, 0x10263052)
25+
{
26+
std::cerr << "The Beckhoff_EL4134 plugin is depreciated and will be removed in the future."
27+
<< "Use the GenericEcSlave plugin instead." << std::endl;
28+
}
2529
virtual ~Beckhoff_EL4134() {}
2630
virtual void processData(size_t index, uint8_t * domain_address)
2731
{
@@ -109,7 +113,11 @@ class Beckhoff_EL4132 : public ethercat_interface::EcSlave
109113
{
110114
public:
111115
Beckhoff_EL4132()
112-
: EcSlave(0x00000002, 0x10243052) {}
116+
: EcSlave(0x00000002, 0x10243052)
117+
{
118+
std::cerr << "The Beckhoff_EL4132 plugin is depreciated and will be removed in the future."
119+
<< "Use the GenericEcSlave plugin instead." << std::endl;
120+
}
113121
virtual ~Beckhoff_EL4132() {}
114122
virtual void processData(size_t index, uint8_t * domain_address)
115123
{

ethercat_plugins/ethercat_beckhoff_modules/src/beckhoff_el5101.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@ class Beckhoff_EL5101 : public ethercat_interface::EcSlave
2424
{
2525
public:
2626
Beckhoff_EL5101()
27-
: EcSlave(0x00000002, 0x13ed3052) {}
27+
: EcSlave(0x00000002, 0x13ed3052)
28+
{
29+
std::cerr << "The Beckhoff_EL5101 plugin is depreciated and will be removed in the future."
30+
<< "Use the GenericEcSlave plugin instead." << std::endl;
31+
}
2832
virtual ~Beckhoff_EL5101() {}
2933
virtual void processData(size_t index, uint8_t * domain_address)
3034
{

0 commit comments

Comments
 (0)