Skip to content

Commit

Permalink
Fix logic of streaming command check
Browse files Browse the repository at this point in the history
Follows up 25a9c1a.
  • Loading branch information
PeterBowman committed Jun 1, 2024
1 parent 25a9c1a commit b90090b
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,10 @@ bool BasicCartesianControl::act(int command)

void BasicCartesianControl::pose(const std::vector<double> &x)
{
if (getCurrentState() != VOCAB_CC_NOT_CONTROLLING || streamingCommand != VOCAB_CC_POSE
|| streamingCommand != VOCAB_CC_MOVI // deprecated
|| !checkControlModes(VOCAB_CM_POSITION_DIRECT))
if (getCurrentState() != VOCAB_CC_NOT_CONTROLLING || (
streamingCommand != VOCAB_CC_POSE &&
streamingCommand != VOCAB_CC_MOVI // deprecated
) || !checkControlModes(VOCAB_CM_POSITION_DIRECT))
{
yCError(BCC) << "Streaming command not preset";
return;
Expand Down

0 comments on commit b90090b

Please sign in to comment.