Why does it pause and say "sending" when the ball transfers? It seems like you have real time communications because score and ending happen instantaneously. Yet sending the ball has some delay.
@kincaid05 To send Bluetooth messages, I use a special "protocol" to confirm each packet. Sending the ball takes 3 data packages (1 for the position and 2 for two-dimensional speed), and all packages need to be confirmed for the next transmission to start. So, the NXTs need to send 7 packages for the ball to appear on the other NXT.
Score updates only need 1 data package, so there is no need to wait for a confirmation, which is the same for the "end"-package.
Why does it pause and say "sending" when the ball transfers? It seems like you have real time communications because score and ending happen instantaneously. Yet sending the ball has some delay.
kincaid05 2 months ago
@kincaid05 To send Bluetooth messages, I use a special "protocol" to confirm each packet. Sending the ball takes 3 data packages (1 for the position and 2 for two-dimensional speed), and all packages need to be confirmed for the next transmission to start. So, the NXTs need to send 7 packages for the ball to appear on the other NXT.
Score updates only need 1 data package, so there is no need to wait for a confirmation, which is the same for the "end"-package.
felfrei 2 months ago
@Coolie747: What do you mean?
felfrei 1 year ago
What is the script for nxt c++ ?
zexbomb69 1 year ago
@zexbomb69 Are you talking about the RobotC-Sourcecode? I did not publish it.
felfrei 1 year ago