Re: [Tinyos-help] Logarithmic function

2011-07-31 Thread Geo Gkolfin
Firstly, excuse me for insisting so much on this, but I really do not know what to do. I use telosb motes and an external sensor and I need to use the natural logarithmic function in order to convert the adc value of the sensor. I tried: #include math.h ... x=log(y); but at make I get:

Re: [Tinyos-help] Logarithmic function

2011-07-31 Thread Geo Gkolfin
Oops, my bad! Actually logf() works fine. It computes ln correctly. I still cannot find it in any of the math.h files but it works. Sorry again. ___ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu

Re: [Tinyos-help] Logarithmic function

2011-07-31 Thread Michael Schippling
I have two different versions of msp430 tools courtesy of different mystery TOS installations, one in /usr and one in /opt. They both have the same directory structure, so the only math.h file I could find was: .../msp430/msp430/include/math.h Both contain a logf() declaration, and a

Re: [Tinyos-help] Logarithmic function

2011-07-31 Thread Geo Gkolfin
Dear Mr Michael Schippling Thank you so much for both your help and your irony. I am afraid I was looking at avr! After your enlightening reply I was able (at last) to find logf. Unfortunately I cannot understand the base 10 ironic part of your mail. But logf(2.718) returns 1 so I guess logf

Re: [Tinyos-help] Logarithmic function

2011-07-31 Thread Michael Schippling
The base10 log ironic part was a reference to how bad my memory is of math functions that I don't often use... I also forgot that avr math.h uses doubles... hope things keep working for you MS Geo Gkolfin wrote: Dear Mr Michael Schippling Thank you so much for both your help and your irony.

[Tinyos-help] LinkETX in CTP

2011-07-31 Thread sadun silva
Dear all, in CTP does the linkEtx =10 (essentially 1.0) means the throughput is 100%? I'm trying to comprehend the linkEtx value's relationship to the throughput. can someone help me in this? Thanks all for the great community support. silva ___

Re: [Tinyos-help] LinkETX in CTP

2011-07-31 Thread Manjunath Doddavenkatappa
It means packet reception ratio (PRR --- num packets transmitted successfully/total number of packets transmitted) is 1.0. Moreover, ETX in CTP is bi-directional, it accounts for the quality of link from receiver to transmitter (on which ACKs are transmitted) On the otherhand, throughput of a

[Tinyos-help] TinyOS-2.1.x when disable CRC, but can not receive the message even any bad packets?

2011-07-31 Thread Liang
Hi all I want to disable the CRC of the packet,so I can receive all packets which cover those bad packets.but I can not receive any messages. what I have changed is like Damien O'Rourke: go to CC2420ControlP and comment out the line “( 1 CC2420_MDMCTRL0_AUTOCRC );”. the src of transmit node

[Tinyos-help] RPL + Node ID 2 = magic?

2011-07-31 Thread Johny Mattsson
Hello, Could someone please shine some light on the change from r5657 which added the following to RPLRankP.nc in IP_DIO.recv(): if(TOS_NODE_ID == 2 dio-dagRank == ROOT_RANK) return; When I merged in this change to my working tree I had my comms broken as I was using node IDs 1 and 2

Re: [Tinyos-help] tinyos instation fail

2011-07-31 Thread Shamali Gunawardena
Thanks Eric. You have no idea how long I have been struggling with it. now I manage to install without any issues. But I still can make even the simple make file I get a load of errors.   I have copied  just the first few lines. I still get some errors from the command make all make