Project

General

Profile

Revision a224a762

IDa224a762337ae0be9e4640dd9c676f3b898efac9
Parent 619a1b8d
Child 18800d29

Added by Yuyang Guo over 2 years ago

fix scout sim BOM sender id

View differences:

scout/scoutsim/src/sim_frame.cpp
785 785
                }
786 786

  
787 787
                if(is_inrange(emitter_pos, bom_pos, bom_aperture, bom_distance)) {
788
                    string em_id_str = m_it->first.substr(m_it->first.find("_"));
788
                    string em_id_str = m_it->first.substr(m_it->first.find("_")+1);
789 789
                    int emitter_id = atoi(em_id_str.c_str());
790 790
                    it->second->update_BOM(i, 1, emitter_id);
791 791
                }

Also available in: Unified diff