Skip to content

Commit 5ee0945

Browse files
Fixed issue that prevented to set robot limits when robot is not in control. Fixes #36.
1 parent e144e4a commit 5ee0945

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/robot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ namespace franky {
1414
#endif
1515

1616
#define LIMIT_INIT(name, value_panda, value_fer) \
17-
name, SEL_VAL(value_panda, value_fer), control_mutex_, [this] { return is_in_control_unsafe(); }
17+
name, SEL_VAL(value_panda, value_fer), control_mutex_, [this] { return !is_in_control_unsafe(); }
1818

1919
//! Connects to a robot at the given FCI IP address.
2020
Robot::Robot(const std::string &fci_hostname) : Robot(fci_hostname, Params()) {}

0 commit comments

Comments
 (0)