[Tinyos-help] Help with float operation and printf

2012-03-22 Thread Abdullah
Hi there, This code gives me wrong output. I don't know why! event message_t* Receive.receive(message_t *msg, void *payload, uint8_t len) { int32_t p = getRssi(msg); // t1 = p - c, where c = -67.03 int32_t t1 = p + 67.03; // t2 = t1 / a, where a = -15.73 int32_t t2 = t1 / -15.73;

Re: [Tinyos-help] Help with float operation and printf

2012-03-22 Thread Michael Schippling
You are not using floating point variables. Also printf uses a %f for flat format. MS Abdullah wrote: Hi there, This code gives me wrong output. I don't know why! event message_t* Receive.receive(message_t *msg, void *payload, uint8_t len) { int32_t p = getRssi(msg); // t1 =

Re: [Tinyos-help] help us to solve this parse error in tinyos1.x

2012-03-22 Thread Michael Schippling
it would be a bit of a help to include the errant source file. MS priya wrote: help us to solve this parse error in tinyos1.x $ make pc compiling MHLeachPSC to a pc binary ncc -o build/pc/main.exe -g -O0 -board=micasb -pthread -target=pc -Wall -Wshado w -DDEF_TOS_AM_GROUP=0x7d -Wnesc-all

[Tinyos-help] TOSSIM-CC2420

2012-03-22 Thread sid sid
Dear all I would like to simulate my application into TOSSIM-CC2420 I read in the internet that you must follow the instructions in $TOSROOT/beta/TOSSIM-CC2420/README.txt, so could you please give me the link to download the beta/TOSSIM-CC2420 file and some comment about this file Thank