Go to Post It's a process of elimination led by inspiration. - JaneYoung [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 20-02-2006, 13:04
Keith Watson Keith Watson is offline
Registered User
FRC #0957 (WATSON)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Wilsonville, OR
Posts: 112
Keith Watson is just really niceKeith Watson is just really niceKeith Watson is just really niceKeith Watson is just really nice
Re: repurposing servos

Is anything being displayed by your printf? You didn't mention anything about that.

This is exactly how we dump out joystick and pwm values. Saturday it showed us that one of our joysticks from last year had died. The only difference in our code syntax is this:
Code:
printf("Joystick1 X  = %u\r\n", (int)p1_x);
printf("Joystick1 Y  = %u\r\n", (int)p1_y);
The small twitch at startup comes from servo values being initialized, most to 127.

Also verify your joystick is plugged in to port 3 and your servo to pwm09.

By the way, the original version of the code has
Code:
pwm07 = p3_x;
__________________
Keith Watson - Professional Software Engineer
No relation to "Kevin" Watson, who created the camera tracking code.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Are Servos Motors? John Gutmann Motors 1 30-01-2006 18:41
CMUCam Servos not Responding on Robot krigby Programming 7 20-01-2006 23:19
Servos not getting right voltage sheyna Programming 2 17-01-2006 21:57
Standard Servos? Matt Krass FIRST Tech Challenge 4 22-11-2005 08:09
Hooking up 2 Servos kutty18 Programming 7 04-02-2005 09:26


All times are GMT -5. The time now is 02:11.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi