Go to Post You know FIRST is on the level of sports when you can give predictions like sports casters do. :) - RoboMaster [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 08-02-2016, 20:20
youngpilot youngpilot is offline
Registered User
AKA: Mary Luking
FRC #2640 (The Hotbotz)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: North Carolina
Posts: 7
youngpilot is an unknown quantity at this point
"Control Motor" Programming

Myself and the other programmer on our team are in our 2nd year of programming...so we still have questions and lots to learn! Anyways, this year we are doing something we didn't do last year- programming using "control motor" under WPI Robot Library....we have to program the motor through a Victor using a PWM....so that's achievable through "control motor".

We'd love some guidance on how to do this. Background-----the motor controls a sort of "lift" mechanism. If anyone needs further detail, please ask!

I would share some screenshots of the program...but we really don't have anything right now since we're new to it. However, the other programmer on my team did accomplish getting the motor going, but only in one direction...I can provide this if you all would need, just wanting to get this question out ASAP first.

Thanks so much-- we're just looking for guidance and maybe some examples of how to achieve this...who knows, we may be doing this completely wrong, but we're kind of stuck with this new task we didn't experience last year, and wanted to ask the experienced first!

Thank you again.
Reply With Quote
  #2   Spotlight this post!  
Unread 08-02-2016, 20:32
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,713
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: "Control Motor" Programming

It's pretty straight forward.
I've attached a snippet of the basics.

There is a stand-alone example under Support ->Find FRC examples...
Then in the roboRIO file->Robot and Motor->Motor Control.lvproj

You are going to need to think about adding limit switches to the top and bottom of the lift to automatically stop the motor from overdriving the mechanical stops.
Attached Thumbnails
Click image for larger version

Name:	SingleMotorExample.png
Views:	35
Size:	25.6 KB
ID:	20011  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #3   Spotlight this post!  
Unread 11-02-2016, 08:54
youngpilot youngpilot is offline
Registered User
AKA: Mary Luking
FRC #2640 (The Hotbotz)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2014
Location: North Carolina
Posts: 7
youngpilot is an unknown quantity at this point
Re: "Control Motor" Programming

Thank you for the help! That example worked great after playing with it a little, so thanks again. We'll definitely look into the limit switches to help, we played around with them last year so that shouldn't be too much of a problem.
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 08:07.

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