FIRST Tech Challenge Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Servos not working

in the schematic editor, the two servos we have connected work perfectly fine. In the remote control editor, for one the buttons, we chose the action "move to position", selected one of the servos, and set a certain position for it, then generated the code for it. If we run the prototype from the remote control editor, the servos respond perfectly good according to the position set and everything. However, when we run the teleop (without making any changes to the code generated)  the NXT automatically exits the program and displays "file error".

We have tested out other programs that dont include the code for the servo, and work perfectly fine. The error comes up just when the servos are added into the teleop code. Any Help to fix that?

And thats the code generated for the servo.

4545.png

0 Kudos
Message 1 of 5
(6,522 Views)

Hi Paqiu,

I reproduced the program using OSX 10.9 and Windows 7 operating systems, and was able to run the teleop program without error.

Are you sure the brick has sufficient memory? Try deleting images and sounds, and any old programs from the brick using the NXT Terminal.

0 Kudos
Message 2 of 5
(5,600 Views)

thanks for the advise, ill try that as soon as i can

0 Kudos
Message 3 of 5
(5,600 Views)

Did this end up working for you?

0 Kudos
Message 4 of 5
(5,600 Views)

Definitely, we had so much memory been used, now it works perfectly fine, Thanks

0 Kudos
Message 5 of 5
(5,600 Views)