Go to Post In the end any amount of time can work, just be smart about how you use it. - Jay O'Donnell [more]
Home
Go Back   Chief Delphi > Technical > Control System > FRC Control System
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 12-01-2009, 10:00
Booksy Booksy is offline
Registered User
FRC #1244 (Viking Robotics)
Team Role: Programmer
 
Join Date: Apr 2008
Rookie Year: 2007
Location: Great White North
Posts: 97
Booksy will become famous soon enoughBooksy will become famous soon enough
Servo Camera Example Servos don't work

When I run the servo camera example, it works, except for the servos. It tracks and shows the servos turning on the laptop but the servos don't actually move. They are plugged into pwm1 and 2 and are shorted for servo output. The dsc is in port 4.

Any ideas why the servos aren't moving?

thanks
__________________
My favorite CD quote ever(taken out of context of course):
Quote:
Originally Posted by ttldomination
water would be hard to build
Reply With Quote
  #2   Spotlight this post!  
Unread 12-01-2009, 10:12
Russ Beavis Russ Beavis is offline
Registered User
no team
 
Join Date: Nov 2005
Location: Manchester, NH - DEKA R&D Corp.
Posts: 341
Russ Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond reputeRuss Beavis has a reputation beyond repute
Re: Servo Camera Example Servos don't work

Does your DSC have power (all 3 power LEDs near the power input connector)? What's the status of the RSL (Robot Signal Light)? Is your robot enabled and in the proper mode?

Russ
Reply With Quote
  #3   Spotlight this post!  
Unread 12-01-2009, 10:24
Booksy Booksy is offline
Registered User
FRC #1244 (Viking Robotics)
Team Role: Programmer
 
Join Date: Apr 2008
Rookie Year: 2007
Location: Great White North
Posts: 97
Booksy will become famous soon enoughBooksy will become famous soon enough
Re: Servo Camera Example Servos don't work

Yes it does.

Wierd thing is when I do another frc project and tell the servo to go to the position of a control, it works fine. It just wont work with the camera example. I have tried turning off the smoothing also with no effect.
__________________
My favorite CD quote ever(taken out of context of course):
Quote:
Originally Posted by ttldomination
water would be hard to build
Reply With Quote
  #4   Spotlight this post!  
Unread 12-01-2009, 11:34
Booksy Booksy is offline
Registered User
FRC #1244 (Viking Robotics)
Team Role: Programmer
 
Join Date: Apr 2008
Rookie Year: 2007
Location: Great White North
Posts: 97
Booksy will become famous soon enoughBooksy will become famous soon enough
Re: Servo Camera Example Servos don't work

Should I be able to just run the examples as is from the examples folder, or do I have to put them inside a robot project? Do I have to change some settings on the DS?

Help?...

Has anyone else experienced similar problems? I actually haven't had an example work yet.
__________________
My favorite CD quote ever(taken out of context of course):
Quote:
Originally Posted by ttldomination
water would be hard to build
Reply With Quote
  #5   Spotlight this post!  
Unread 12-01-2009, 12:13
Luke Pike's Avatar
Luke Pike Luke Pike is offline
Programmer
FRC #1501 (THRUST)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Huntington
Posts: 114
Luke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to all
Re: Servo Camera Example Servos don't work

Did you change the IP address in the project? If not, you need to set it to communicate with the cRIO. If you did, I'm not sure what the problem is.
Reply With Quote
  #6   Spotlight this post!  
Unread 12-01-2009, 12:36
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Servo Camera Example Servos don't work

LabVIEW or C++?

If it is LabVIEW, find where the example is controlling the servos and replace it with a control. Then you can easily command them to move.

If they move, it is the example code's fault somewhere in deciding where to go.

Otherwise, it may be wiring (which you seem to have disproven), the watchdog, opening the servo reference, communication with the DS, etc...

Also, try highlight execution mode.
Reply With Quote
  #7   Spotlight this post!  
Unread 12-01-2009, 18:01
Booksy Booksy is offline
Registered User
FRC #1244 (Viking Robotics)
Team Role: Programmer
 
Join Date: Apr 2008
Rookie Year: 2007
Location: Great White North
Posts: 97
Booksy will become famous soon enoughBooksy will become famous soon enough
Re: Servo Camera Example Servos don't work

Sorry for the late update, But I did get it working. The labview example didn't have the watchdog. Adding the watchdog fixed the problem. I found my answer on the FIRST forums. Thanks.
__________________
My favorite CD quote ever(taken out of context of course):
Quote:
Originally Posted by ttldomination
water would be hard to build
Reply With Quote
  #8   Spotlight this post!  
Unread 04-03-2009, 12:44
pawan89 pawan89 is offline
Registered User
no team
 
Join Date: Mar 2009
Location: United States
Posts: 2
pawan89 is an unknown quantity at this point
Re: Servo Camera Example Servos don't work

Quick question. So I have been going about adapting the Two Color Servo Camera example... But where exactly is the ServoCamera.vi example everyone is mentioning? I am not able to find it anywhere
Reply With Quote
  #9   Spotlight this post!  
Unread 04-03-2009, 13:27
pawan89 pawan89 is offline
Registered User
no team
 
Join Date: Mar 2009
Location: United States
Posts: 2
pawan89 is an unknown quantity at this point
Re: Servo Camera Example Servos don't work

Quote:
Originally Posted by pawan89 View Post
Quick question. So I have been going about adapting the Two Color Servo Camera example... But where exactly is the ServoCamera.vi example everyone is mentioning? I am not able to find it anywhere
Ok so I realize most of you on a FRC team have it installed on your computers and it can be found in the /examples/FRC directory. Is that right? Would I have to go through the whole installation to extract this example as well? Or can the individual file be downloaded somewhere?
Reply With Quote
  #10   Spotlight this post!  
Unread 04-03-2009, 14:47
StephenB StephenB is offline
Registered User
no team (Team NI)
 
Join Date: Feb 2009
Rookie Year: 2003
Location: Austin
Posts: 11
StephenB will become famous soon enough
Re: Servo Camera Example Servos don't work

Quote:
Originally Posted by Booksy View Post
Sorry for the late update, But I did get it working. The labview example didn't have the watchdog. Adding the watchdog fixed the problem. I found my answer on the FIRST forums. Thanks.
If you are using LabVIEW update 3.0a, the user watchdog is off by default... and if it is enabled and you run new code that has no user watchdog VIs... then it is automatically disabled.

Point being, if you opened up the code and it did not work until you added user watchdog VIs to it... you are using the wrong version of LabVIEW. Update your software: http://www.usfirst.org/community/frc....aspx?id=10934
Reply With Quote
  #11   Spotlight this post!  
Unread 04-03-2009, 17:09
gwytheyrn gwytheyrn is offline
Registered User
AKA: David
FRC #0461 (West Side Boiler Invasion)
Team Role: Programmer
 
Join Date: Dec 2007
Rookie Year: 2004
Location: Indiana
Posts: 44
gwytheyrn is infamous around these parts
Send a message via AIM to gwytheyrn
Re: Servo Camera Example Servos don't work

You can get it here: http://usfirst.org/community/frc/content.aspx?id=10934
(Look in software updates, it's the second from bottom I think...)
alternatively, the direct link
http://joule.ni.com/nidu/cds/view/p/lang/en/id/1215 for LV
http://first.wpi.edu/FRC/frcupdates.html for C++
Reply With Quote
Reply


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
Servos don't work jpflorido Programming 4 06-05-2006 06:34
How do the servos work? tml240 Motors 25 18-02-2004 07:47
Ideas that don't work. CanisLupis547 General Forum 6 13-01-2004 19:07
My sensors don't work Fares Programming 2 03-02-2003 18:26
Robogui ! sensors don't work Fares Programming 2 07-01-2003 16:31


All times are GMT -5. The time now is 21:22.

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