[Tinyos-help] question on simple_transmit from Rfm_model.c
Liu Haibin
liu.haibin at gmail.com
Fri Jun 2 02:29:49 PDT 2006
Hi,
I have a question about the following code from Rfm_model.c. The parameter
bit can be 1 or 0. When simple_trasmit is transmitting bit 1,
transmitting[modeID] is set to 1, meaning it's transmitting. However, when
simple_transmit is transmitting bit 0, transmitting[modeID] is set to 0,
meaning it's not transmitting (actually it's transmitting bit 0). Why is it
so? I must have the concept wrong. Could any help me on this?
void simple_transmit(int moteID, char bit) {
int i;
transmitting[moteID] = bit;
for (i = 0; i < tos_state.num_nodes; i++) {
radio_active[i] += bit;
}
}
Regards,
Haibin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.millennium.berkeley.edu/pipermail/tinyos-help/attachments/20060602/b0a6b5ee/attachment.html
More information about the Tinyos-help
mailing list