Skip to content
Snippets Groups Projects
Commit 6cfab971 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Added a small delay in the function to set the motion manager period because...

Added a small delay in the function to set the motion manager period because it is written into EEPROM.
parent 7cf13fa2
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -405,6 +405,7 @@ void CBioloidRobot::mm_set_period(double period_ms)
// internal time in 0|16 fixed point float format in seconds
period=period_ms*1000.0;
this->robot_device->write_word_register(BIOLOID_MM_PERIOD_L,period);
usleep(10000);
}
else
throw CBioloidRobotException(_HERE_,"Invalid robot device");
......@@ -493,7 +494,6 @@ void CBioloidRobot::mm_disable_balance(void)
}
else
throw CBioloidRobotException(_HERE_,"Invalid robot device");
}
bool CBioloidRobot::mm_is_balance_enabled(void)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment