Go to Post NOOOOOOOOOOOOooooooo!!!!! I hate regolith. - apalrd [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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
  #1   Spotlight this post!  
Unread 09-02-2010, 17:33
umangv620 umangv620 is offline
Programming Captain
AKA: Umang
FRC #1403 (Cougar Robotics)
Team Role: Programmer
 
Join Date: Jan 2010
Rookie Year: 2008
Location: New Jersey
Posts: 80
umangv620 will become famous soon enoughumangv620 will become famous soon enough
Need help w/ moving Camera Servo motors.

I am trying to move the Camera Servo Motor(Axis 2 - plugged into PWM 5 w/ Jumper) through Joystick 2(USB 2). I want it so when I press button 2, the camera should face down, and when I press button 3, the camera should face up.

I attached my current code for the Camera. Both the Joystick(Joystick 2) and the Servo(Camera Motor) are both initialized in the begin.vi, and both closed in finish.vi. The Camera.vi is being called in Robot Main.vi inside the giant while loop.

Right now, when I run the code, the Servo motor does not move at all, so i decided to debug it by running the code in light bulb mode. What I noticed was that the initial position was 0.00, and after subtracting 1(moving it down), the new position was still 0.00. I don't know why the position is not being updated for every time the loop executes and moves it down.
Attached Thumbnails
Click image for larger version

Name:	untitled.JPG
Views:	106
Size:	122.0 KB
ID:	8588  
__________________
Team 1403 Cougar Robotics

2009-2011 Programming Captain

2010
NJ-Regional - Chairmans Award
Reply With Quote
 


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
HELP- Need Globe Motors ASAP Brandon Holley General Forum 0 03-11-2009 10:37
need help with motors EagleMentor Programming 3 06-02-2009 17:37
Need help with mini motors R.C. Motors 11 03-07-2008 16:25
help getting servo values from camera ruddy Programming 12 30-11-2007 23:18
Window Motors. Need help!!!! Mohsin Motors 1 27-02-2004 13:05


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

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