Mailing list archive (omnetpp-l at omnetpp.org)
[
Date Prev][
Date Next][
Thread Prev][Thread Next][
Date Index][
Thread Index]
[Omnetpp-l] Re: mobility - basicmobility.c
- Subject: [Omnetpp-l] Re: mobility - basicmobility.c
- From: peterob333 at xxx
- Date: Tue, 26 May 2009 16:07:10 -0700 (PDT)
- 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 :mime-version:content-type:content-transfer-encoding:received:date :in-reply-to:x-ip:references:user-agent:x-http-useragent: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=PJY/Y78sBIofmGLFCZ/fK3r1LZ4Meoc48zhgRsxKiEw=; b=n7ktU4AzR2FQw4ujBKlt0jDhuFTe9dKF6RxSWDg6HnKJ1KQ3nzYim6NlalRHlbTZmg rumo/E+oc9UZEDjj1TjXLFSTgc06OQ9Df/x6UYtDPzVE7wCUpPHnJaVFoLarxJTGk4I5 4xjQJQFziOYVYIx89Ghyj4BGJDB6y/c2nbXEk=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-sender:x-apparently-to:mime-version:content-type :content-transfer-encoding:date:in-reply-to:x-ip:references :user-agent:x-http-useragent: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=krZDpOhBJBmpYeB68ASI2Pis3lOE/F5PLkc6rIvQlObaMmqTEU5zr8J0wbyT/zTS+7 FEfhR8iG1lSdDd3IwSq5YLSB2tNIAVPmaYFYigQnD4+jkkThou4jHBpsdgcZ8TsADuUf LBFSZOMXMHJhF+vTmbsXnTRoswnDx6WC0B/2w=
- 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
looks like a have to use LineSegmentsMobilityBase instead
On May 27, 12:08 am, Peter O <peterob... at xxx> wrote:
> 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