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;
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 =
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
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