change in loop rate while in update mode
This commit is contained in:
parent
4dbd506fbb
commit
6fc6d91ddb
|
@ -68,9 +68,16 @@ namespace rosbzz_node{
|
|||
/*run once*/
|
||||
ros::spinOnce();
|
||||
/*loop rate of ros*/
|
||||
ros::Rate loop_rate(10);
|
||||
/*sleep for the mentioned loop rate*/
|
||||
if( get_update_mode() == CODE_STANDBY){
|
||||
ros::Rate loop_rate(2);
|
||||
loop_rate.sleep();
|
||||
}
|
||||
else{
|
||||
ros::Rate loop_rate(10);
|
||||
loop_rate.sleep();
|
||||
}
|
||||
/*sleep for the mentioned loop rate*/
|
||||
|
||||
timer_step+=1;
|
||||
maintain_pos(timer_step);
|
||||
|
||||
|
|
Loading…
Reference in New Issue