View unanswered posts | View active topics It is currently Tue Feb 19, 2019 11:23 am

Reply to topic  [ 2 posts ] 
Servos Aren't Working! 
Author Message
User avatar

Joined: Thu Feb 12, 2009 10:34 am
Posts: 3
Location: Fishersville, Virginia
Post Servos Aren't Working!
So we have tried about a million different things with our servos but it just won't work. We have the newest version of Robot C but I just don't know what is wrong. Here is the code:

#pragma config(Hubs,  S1, HTMotor,  HTServo,  none,     none)
#pragma config(Servo,  servo1,          servoA,               tServoNormal)
#pragma config(Servo,  servo2,          servoB,               tServoNormal)
//*!!Code automatically generated by 'ROBOTC' configuration wizard               !!*//

#include "JoystickDriver.c"

task main()
   while (true)
      servoTarget[servo1] = joystick.joy1_y1 + 127;
      servoTarget[servo2] = joystick.joy1_y2 + 127;

Can anyone pleas help us??

Gerbil Unit

Thu Feb 12, 2009 10:59 am
Profile WWW

Joined: Tue Jan 13, 2009 5:22 pm
Posts: 72
Location: USA, Pennsylvania
Post Re: Servos Aren't Working!
Have you read...

We need a Linux Version!

Thu Feb 12, 2009 4:51 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 2 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.