Skip to content

Commit e1d32fc

Browse files
committed
okay throttle not work so just disable
1 parent f3192e9 commit e1d32fc

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/rover_manager/src/cbsDevice.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,9 @@ void CBSDevice::pollRX(){
122122
new_buff.erase(std::remove(new_buff.begin(), new_buff.end(), '\r'), new_buff.end()); // Remove '\r'
123123
new_buff.erase(std::remove(new_buff.begin(), new_buff.end(), '\n'), new_buff.end()); // Remove '\n'
124124

125+
#ifdef RUN_DEBUG_MSGS
125126
RCLCPP_INFO_THROTTLE(manager->get_logger(), *manager->get_clock(), 1000, "Serial Line Read: [%s] on device %s", new_buff.c_str(), this->id.c_str());
127+
#endif
126128
switch(this->parse_seq){
127129
case PARSE_SEQUENCE::GENERIC:
128130
// parseGenericBuff(new_buff);
@@ -139,7 +141,9 @@ void CBSDevice::pollRX(){
139141
}
140142
// this->parseBuff(new_buff);
141143
}else{
144+
#ifdef RUN_DEBUG_MSGS
142145
RCLCPP_INFO_THROTTLE(manager->get_logger(), *manager->get_clock(), 1000, "Msg too small to parse. This indicates we are reading faster than the device is writing. (which is good) %s", this->id.c_str());
146+
#endif
143147
}
144148
// }else{
145149

0 commit comments

Comments
 (0)