Hi,
I have a variable "uint16_t clock" declared in my structure and I initialize this value to the simulator time by doing:
Pkt->clock = (tos_state.tos_time/4000000.0);
Suppose the simulator time is 19.1410 which I get by doing:
dbg(DBG_ROUTE,"Time is %.4f", tos_state.tos_time/4000000.0);
The value of Pkt->clock is 13, which is the hex value of 19.
I have tried declaring "clock" as int and float but it didnt help. Can someone please tell me how can I make Pkt->clock take the value 19.1410?
Thanks,
Yogesh.
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
_______________________________________________ Tinyos-users mailing list [email protected] http://mail.Millennium.Berkeley.EDU/mailman/listinfo/tinyos-users
