Project

General

Profile

Revision 93cebb99

ID93cebb998b81dc98f54dac5728560ecc511c7224
Parent e99a72bf
Child 7327a8ed

Added by Yuyang Guo over 10 years ago

added BomControl class and to the scout sensor

View differences:

scout/scoutsim/src/sim_frame.cpp
786 786

  
787 787
                if(is_inrange(emitter_pos, bom_pos, bom_aperture, bom_distance)) {
788 788
                        
789
                        it->second->update_BOM(i, true);
789
                        it->second->update_BOM(i, 1, 0);
790
                            // TODO: change to last arg to actual sender ID
790 791
                        
791 792
                    }
792 793
                else {
793 794
                        
794
                        it->second->update_BOM(i, false);
795
                        it->second->update_BOM(i, 1, 0);
796
                            // TODO: change to last arg to actual sender ID
795 797
                        
796 798
                }
797 799
                }

Also available in: Unified diff