Go to Post The size of your team has nothing to do with the size of your heart. - Amanda Morrison [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

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-02-2011, 10:37
Ian McShane Ian McShane is offline
Registered User
FRC #3585 (Rogue Robots)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: NH
Posts: 141
Ian McShane will become famous soon enoughIan McShane will become famous soon enough
How do i change pwm for a specific motor and/or servo in teleop?

in other words, i need to know how to change the port/pwm, in the programming for a specific servo and/or motor vi,

Last edited by Ian McShane : 12-02-2011 at 11:40. Reason: apparently it was originally unclear
Reply With Quote
  #2   Spotlight this post!  
Unread 12-02-2011, 10:47
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,579
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: How do i change pwm for a specific motor and/or servo in teleop?

I have no idea why you'd want to change the pwm for a specific motor in telop. Are you going to physically move a pwm cable from one position to another in the middle of a match?

If you posted more then "..." and thoroughly described what you wanted to do and why, we might be able to help you. Based on your previous posts, I think you would benefit from reading How to Ask Questions the Smart Way. It takes extra time to compose good questions, but you get answers much faster if people can understand what you're asking, why you're asking it, and what you already tried.

Last edited by Joe Ross : 12-02-2011 at 10:50.
Reply With Quote
  #3   Spotlight this post!  
Unread 12-02-2011, 10:54
Vikesrock's Avatar
Vikesrock Vikesrock is offline
Team 2175 Founder
AKA: Kevin O'Connor
no team
Team Role: Engineer
 
Join Date: Mar 2006
Rookie Year: 2007
Location: Manchester, NH
Posts: 3,305
Vikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond reputeVikesrock has a reputation beyond repute
Send a message via AIM to Vikesrock Send a message via MSN to Vikesrock Send a message via Yahoo to Vikesrock
Re: How do i change pwm for a specific motor and/or servo in teleop?

It looks like you have posted a number of questions here that all boil down to not really knowing how Labview and the provided WPILib VIs work. I highly recommend you forget about the specifics for a minute and try to get a grasp on the basics.

I would recommend you go to this website:
http://www.frcmastery.com/

Watch videos 1-4 under "2011 FRC Steps to Robot Success". Watch video 5 if you get far enough to work on autonomous mode.
__________________


2007 Wisconsin Regional Highest Rookie Seed & Regional Finalists (Thanks 930 & 2039)
2008 MN Regional Semifinalists (Thanks 2472 & 1756)
2009 Northstar Regional Semifinalists (Thanks 171 & 525)
Reply With Quote
  #4   Spotlight this post!  
Unread 12-02-2011, 10:56
Mtg Ruler Mtg Ruler is offline
Registered User
FRC #1986 (Team Titanium)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Lee's Summit, MO
Posts: 21
Mtg Ruler is an unknown quantity at this point
Re: How do i change pwm for a specific motor and/or servo in teleop?

For Motors: WPI Robotics Library->Actuators->MotorControl->Set Speed
Speed is [-1,1]

For Servo Angles: WPI Robotics Library->Actuators->Servo->Set Angle
Angle is in degrees

For Servo Position: WPI Robotics Library->Actuators->Servo->Set Position
Angle is [0,1]

You will also need to open a reference for that motor/servo in Begin.vi


To change the PWM, you will need some additional code that will take some kind of input and convert it into pulse (ex. pressing a button sets the motor output to 1)
Reply With Quote
  #5   Spotlight this post!  
Unread 12-02-2011, 11:31
Ian McShane Ian McShane is offline
Registered User
FRC #3585 (Rogue Robots)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: NH
Posts: 141
Ian McShane will become famous soon enoughIan McShane will become famous soon enough
Re: How do i change pwm for a specific motor and/or servo in teleop?

Thank you mtg.
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


All times are GMT -5. The time now is 20:33.

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