From 4ec997352ce53364a64400b408d2b8538e1f1729 Mon Sep 17 00:00:00 2001 From: vivek-shankar Date: Sun, 29 Jan 2017 05:11:28 -0500 Subject: [PATCH] loop rate change --- src/roscontroller.cpp | 8 ++++---- src/test1.bzz | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/roscontroller.cpp b/src/roscontroller.cpp index 0151187..e130c54 100644 --- a/src/roscontroller.cpp +++ b/src/roscontroller.cpp @@ -68,14 +68,14 @@ namespace rosbzz_node{ /*run once*/ ros::spinOnce(); /*loop rate of ros*/ - if( get_update_mode() == CODE_STANDBY){ + /*if( get_update_mode() == CODE_STANDBY){ ros::Rate loop_rate(10); loop_rate.sleep(); } - else{ - ros::Rate loop_rate(10); + else{*/ + ros::Rate loop_rate(50); loop_rate.sleep(); - } + //} /*sleep for the mentioned loop rate*/ timer_step+=1; diff --git a/src/test1.bzz b/src/test1.bzz index 6901142..8d4bc80 100644 --- a/src/test1.bzz +++ b/src/test1.bzz @@ -1,6 +1,5 @@ - # We need this for 2D vectors # Make sure you pass the correct include path to "bzzc -I ..." include "/home/ubuntu/buzz/src/include/vec2.bzz"