Mailing list archive (omnetpp-l at omnetpp.org)
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[Omnetpp-l] mobility - basicmobility.c
- Subject: [Omnetpp-l] mobility - basicmobility.c
- From: Peter O <peterob333 at xxx>
- Date: Wed, 27 May 2009 00:08:01 +0200
- Authentication-results: gmr-mx.google.com; spf=pass (google.com: domain of peterob333 at xxx designates 209.85.219.173 as permitted sender) smtp.mail=peterob333 at xxx; dkim=pass (test mode) header.i= at xxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:received:x-sender:x-apparently-to :received:received:received-spf:authentication-results:received :dkim-signature:domainkey-signature:mime-version:content-type :received:date:message-id:subject:from:to:reply-to:sender:precedence :x-google-loop:mailing-list:list-id:list-post:list-help :list-unsubscribe:x-beenthere-env:x-beenthere; bh=5ykb7BcNHyndnYZGtdpHrfydky2QdSiT4RJFxTjXdp0=; b=oLI6Y5db7AvwlC5qKB908y10JQtaUyq9m20LXKXMEj/cYEgfHJTI6dz6WIi6gmflKA VTFP8zc3uzJHH2y3h23Yz4XK5iLGD1TbAkLL9DFwtsa7UkrwySaNJ4h28weCBhvn3gDE P+EVi+6O+nUknMF2pRduNOWXHirjr+VY0lgOI=
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=wDGqWXoHODk1/YNjkTqZDz9SJ6njUe3tcCP1R0qU7OU=; b=CJm2tmCOHbWhG4F8zeQCZy4cjQ4fGW3BVck/4klbD4HNlEPIece09AjVuMYoYSTq2c XXo8KbnhEi9rmYPxAfVH9lyE6KUaHJ9qpPd58+f9L9yyI8poi6sfzm9mjQLsu82tdtMC 5dHbItjPzT4drTa99SUE4L1wH9765va6eUb4o=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-sender:x-apparently-to:received-spf:authentication-results :dkim-signature:domainkey-signature:mime-version:content-type:date :message-id:subject:from:to:reply-to:sender:precedence:x-google-loop :mailing-list:list-id:list-post:list-help:list-unsubscribe :x-beenthere-env:x-beenthere; b=MR1vGAOWiE2DkeYUi2Uo1vQQIrP3ayalj7zuya9mPRVXeNbgVZZKsbjQo3GXvl3I+G n09SjQsRKxTO9YHwE3umnIw4i+fAE5Pv2YJSc4ZV5h6H8NMBzth1eWVil9SCk6sRh66x /TwN8rcTxRZsstS0aKIKAVdiyBKAiWzugFS68=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=rVGOl+hdEBs8Lu1wlgOPnwsgTkYA3s1lkIyFVcXpSYLJU1qUJgy0qnmLSKPH7sUKvx dbWFyddevlrmFNsXM9erAO79JhckRsfPDNEMgNr+PlKqGcKadWgyDSqeY5LQRDk2JdSH aWXA0j2vOIwtdTxZlN0aAvv38XttvYPr+COjo=
- List-help: <mailto:omnetpp+help@googlegroups.com>
- List-id: <omnetpp.googlegroups.com>
- List-post: <mailto:omnetpp@googlegroups.com>
- List-unsubscribe: <http://googlegroups.com/group/omnetpp/subscribe>, <mailto:omnetpp+unsubscribe@googlegroups.com>
- Mailing-list: list omnetpp at xxx; contact omnetpp+owner at xxx
Hi,
I'm trying to make a mobility module which will move each periodic time by fix distance. Can anyone tell me where I can find more information about why the self-message is send in one period still 60 times?
After initialization of mobility module there is scheduleAt() function that send message to itself, then movement is suppose to start. But why/who send this message 60x?
handleSelfMsg() from basicMobility is telling:
/**
* The only self message possible is to indicate a new movement. If
* the host is stationary this function is never called.
*
* every time a self message arrives makeMove is called to handle the
* movement. Afterward updatePosition updates the position with the
* blackboard and the display.
But who is planing that another self-msg?
My output looks like : (but it stops when Event number is 99).
** Event #39 T=1.715189364971 sim.host[1].linearMobility (LinearMobility, id=21), on selfmsg `move' (cMessage, id=16)
stepping forward. step #=1 startPos: (2,250)
destination reached.
HostMove startPos.x: 2 startPos.y: 250 direction.x: 1 direction.y: 0 startTime: 1.715189364971 speed: 1
start setTargetPosistion: HostMove startPos.x: 2 startPos.y: 250 direction.x: 1 direction.y: 0 startTime: 1.715189364971 speed: 1
new targetPos: (3,250)
distance=1 totalTime=1 numSteps=1stepSize: (1,0)
stepSize: (1,0)target: (1,0)
end setTargetPosistion: HostMove startPos.x: 2 startPos.y: 250 direction.x: 1 direction.y: 0 startTime: 1.715189364971 speed: 1
**
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "omnetpp" group.
To post to this group, send email to omnetpp at xxx
To unsubscribe from this group, send email to omnetpp+unsubscribe at xxx
For more options, visit this group at http://groups.google.com/group/omnetpp?hl=en
-~----------~----~----~----~------~----~------~--~---
Home |
Main Index |
Thread Index