Hot answers tagged nxt
The NXT actually uses IEEE 794 32-bit floating point number format in little endian byte order. I like using this site for conversions. So, to decode your messages: TX: 00 09 00 05 60 EA 00 00 00 Byte 0: 0x00 - response required Byte 1: 0x09 - write message command Byte 2: 0x00 - Mailbox 1 Byte 3: 0x05 - Message size of 5 bytes Bytes 4-7: 0x60 ...
It could be that one wheel slips more than the other. This happens when the tires get dirty. Also, you can adjust your center of balance so that more weight is on the drive wheels and they will slip less. You can also use the gyro sensor to compensate for any slippage of the wheels.
Not sure what language you are using, or calls you are making before this, but: float var_Min = var_R; if (var_G > var_Min) var_Min = var_G; if (var_B > var_Min) var_Min = var_B; Should be (note the use of < rather than >) float var_Min = var_R; if (var_G < var_Min) var_Min = var_G; if (var_B < var_Min) var_Min = var_B; Your posted code ...
https://bitbucket.org/Thad_Hughes/cortex/src Here's something in NXC and python that routes from NXT1 to NXT2 through the PC; emulating a non-master/slave config between all three devices. Has the added benefit of a seamless pairing method. It could be helpful to give a little more detail (what languages you are using, what direction(s) of communication ...
Yes it is possible. You just need to write a program for NXT1 that forwards the messages from the PC to NXT2.
That's not possible - sensor ports don't have the hardware to drive motors. That said, you can buy a motor multiplexer like this one to do the job for you, if competition rules allow this.
Only top voted, non community-wiki answers of a minimum length are eligible