mirror of
https://gitlab.com/obbart/universal_robots_ros_driver.git
synced 2026-04-10 10:00:48 +02:00
Fix: New order in digital outputs
0-7: standard digital out 8-15: configurable digital out 16-17: tool digital out
This commit is contained in:
@@ -300,12 +300,12 @@ void UrDriver::setDigitalOut(unsigned int n, bool b) {
|
|||||||
if (firmware_version_ < 2) {
|
if (firmware_version_ < 2) {
|
||||||
sprintf(buf, "sec setOut():\n\tset_digital_out(%d, %s)\nend\n", n,
|
sprintf(buf, "sec setOut():\n\tset_digital_out(%d, %s)\nend\n", n,
|
||||||
b ? "True" : "False");
|
b ? "True" : "False");
|
||||||
} else if (n > 9) {
|
} else if (n > 15) {
|
||||||
sprintf(buf,
|
sprintf(buf,
|
||||||
"sec setOut():\n\tset_configurable_digital_out(%d, %s)\nend\n",
|
"sec setOut():\n\tset_tool_digital_out(%d, %s)\nend\n",
|
||||||
n - 10, b ? "True" : "False");
|
n - 16, b ? "True" : "False");
|
||||||
} else if (n > 7) {
|
} else if (n > 7) {
|
||||||
sprintf(buf, "sec setOut():\n\tset_tool_digital_out(%d, %s)\nend\n",
|
sprintf(buf, "sec setOut():\n\tset_configurable_digital_out(%d, %s)\nend\n",
|
||||||
n - 8, b ? "True" : "False");
|
n - 8, b ? "True" : "False");
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user