msk
29-01-2010, 15:15
My students had some weird stuff going on last night while trying to test out some of the code they wrote to turn a Relay on and off with a joystick button.
Code compiled and downloaded to the robot fine, but when enabled, the robot did nothing (even driving code that previously worked did nothing).
Switching over to the developer side, we noticed an allocation error for our Relay channel. It said that channel had already been used. We have it on the digital sidecar, using slot 6, channel 2. We have no other Relays connected, though do have Jaguars plugged into the other side of the sidecar. No where else in the code do we assign a Relay to the same channel.
Last year, we used C++ with pretty much the same code we are trying in Java now.
Any one else experience errors like this and know what we're missing?
Thanks.
Code compiled and downloaded to the robot fine, but when enabled, the robot did nothing (even driving code that previously worked did nothing).
Switching over to the developer side, we noticed an allocation error for our Relay channel. It said that channel had already been used. We have it on the digital sidecar, using slot 6, channel 2. We have no other Relays connected, though do have Jaguars plugged into the other side of the sidecar. No where else in the code do we assign a Relay to the same channel.
Last year, we used C++ with pretty much the same code we are trying in Java now.
Any one else experience errors like this and know what we're missing?
Thanks.