Revision 1d198f8b
more bug fixes to BOM control
scout/.gitignore | ||
---|---|---|
36 | 36 |
*/CMakeFiles |
37 | 37 |
*/CMakeCache.txt |
38 | 38 |
libscout/Makefile |
39 |
libscout/cmake_install.cmake
|
|
39 |
*/cmake_install.cmake
|
|
40 | 40 |
*/Makefile |
41 | 41 |
|
42 | 42 |
*.swp |
scout/scoutsim/src/scout.cpp | ||
---|---|---|
453 | 453 |
void Scout::update_BOM(int bom_index, |
454 | 454 |
unsigned int bom_value, |
455 | 455 |
unsigned int sender) { |
456 |
ROS_INFO("BOM%d: %d", bom_index, bom_value); |
|
457 | 456 |
BOM_readings[bom_index] = bom_value; |
458 | 457 |
BOM_senders[bom_index] = sender; |
459 | 458 |
} |
scout/scoutsim/src/sim_frame.cpp | ||
---|---|---|
792 | 792 |
} |
793 | 793 |
else { |
794 | 794 |
|
795 |
it->second->update_BOM(i, 1, 0);
|
|
795 |
it->second->update_BOM(i, 0, 0);
|
|
796 | 796 |
// TODO: change to last arg to actual sender ID |
797 | 797 |
|
798 | 798 |
} |
Also available in: Unified diff