mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 01:29:33 +00:00
radio signalling moved to abstract radio medium
This commit is contained in:
parent
bb1bd3a706
commit
c2f7780b68
@ -26,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: MRM.java,v 1.8 2009/02/18 12:08:10 fros4943 Exp $
|
||||
* $Id: MRM.java,v 1.9 2009/02/24 15:05:36 fros4943 Exp $
|
||||
*/
|
||||
|
||||
package se.sics.mrm;
|
||||
@ -147,7 +147,6 @@ public class MRM extends AbstractRadioMedium {
|
||||
// Radio OK to receive
|
||||
//logger.info("OK, creating connection and starting to transmit");
|
||||
newConnection.addDestination(listeningRadio, probData[1]);
|
||||
listeningRadio.signalReceptionStart();
|
||||
}
|
||||
} else if (probData[1] > currentChannelModel.getParameterDoubleValue("bg_noise_mean")) {
|
||||
// Interfere radio
|
||||
|
@ -26,7 +26,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: UDGM.java,v 1.21 2009/02/21 09:49:51 fros4943 Exp $
|
||||
* $Id: UDGM.java,v 1.22 2009/02/24 15:05:54 fros4943 Exp $
|
||||
*/
|
||||
|
||||
package se.sics.cooja.radiomediums;
|
||||
@ -156,7 +156,6 @@ public class UDGM extends AbstractRadioMedium {
|
||||
} else {
|
||||
// Radio OK to receive
|
||||
newConnection.addDestination(listeningRadio);
|
||||
listeningRadio.signalReceptionStart();
|
||||
}
|
||||
} else if (distance <= moteInterferenceRange) {
|
||||
// Interfere radio
|
||||
|
Loading…
Reference in New Issue
Block a user