[Tinyos-help] compile error when using Fakelocation
vasanth rajamani
mikku100 at hotmail.com
Thu Mar 29 15:59:32 PDT 2007
HiMy understanding is that the only way to Location information in TOSSIM is by using the FakeLocation componentfound in TestTinyViz. Is there any other way?I tried using FakeComponent and am getting a compile error.Here is how my wiring diagram looksInside myComponent.nc :myComponentM.Location -> FakeLocationM.Location;Inside myComponentM.nc :module myComponentM {uses {.... interface Location;....}I have an event implemented for the interface location which looks roughly like this event void Location.locationDone(location_3d_t *loc) { myPos.x = loc->x; myPos.y = loc->y; myPos.z = loc->z}When I compile the code I get the following error:FakeLocationM.nc: In function `Location.getLocation':FakeLocationM.nc:54: ADC_X.getData not connectedmake: *** [exe0] Error 1I found the following related posts earlier but they didn't help me much.http://mail.millennium.berkeley.edu/pipermail/tinyos-help/2005-January/007229.htmlhttp://mail.millennium.berkeley.edu/pipermail/tinyos-help/2006-June/017757.htmlAny idea what I'm doing wrong?ThanksVasanth
_________________________________________________________________
Your friends are close to you. Keep them that way.
http://spaces.live.com/signup.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20070329/d59a4fd1/attachment.htm
More information about the Tinyos-help
mailing list