View Single Post
  #4   Spotlight this post!  
Unread 10-04-2010, 22:46
NalaTI NalaTI is offline
Registered User
AKA: Alan
FTC #2848 (Techno Guards)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2005
Location: California
Posts: 106
NalaTI is just really niceNalaTI is just really niceNalaTI is just really niceNalaTI is just really nice
Re: [FTC]: RobotC Issue

Quote:
Code:
#pragma config(Servo, servo1, blocker, tServoNormal)
#pragma config(Servo, servo2, ramp, tServoNormal)
#pragma config(Servo, servo3, leftarm, tServoNormal)
#pragma config(Servo, servo4, rightarm, tServoNormal)

-- Snip -- 

short blocker=0;
short ramp=0;
short leftarm=0;
short rightarm=0;
The obvious thing that I see is that you are creating shorts with the same name as the servos and you are setting them to zero. Since this is an index into an array, and it is an enum, you are, in essence, telling the controller that all the servos are at location 0... which unfortunately is attached to a Motor Controller...

Definitely use the setup tool (as Michale suggested) to rebuild the setup #PRAGMA information block. Then, since they're already set up, delete the code declaring the shorts later.

Hope that helps
__________________

Last edited by NalaTI : 10-04-2010 at 22:51.
Reply With Quote