Go to Post Dean Kamen is a pretty smart dude. If he wants to talk to me, I want to listen. - Taylor [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 22-01-2011, 11:30
ElliotCourant's Avatar
ElliotCourant ElliotCourant is offline
Elliot Courant
AKA: Elliot Courant
FRC #3038 (ICE Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Minnesota
Posts: 19
ElliotCourant is an unknown quantity at this point
How would you control a single motor from C++

I need to control one of the four motors on our robots independently.
How would I specify which motor I need to control and things like how fast and which direction to move it in?
Reply With Quote
  #2   Spotlight this post!  
Unread 22-01-2011, 11:57
Katelin3038's Avatar
Katelin3038 Katelin3038 is offline
Katelin3038
FRC #3038 (I.C.E. Robotics Team 3038)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Chisago
Posts: 1
Katelin3038 is an unknown quantity at this point
Re: How would you control a single motor from C++

There i veiwed it haha!
Reply With Quote
  #3   Spotlight this post!  
Unread 22-01-2011, 12:24
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: How would you control a single motor from C++

Quote:
Originally Posted by ElliotCourant View Post
I need to control one of the four motors on our robots independently.
How would I specify which motor I need to control and things like how fast and which direction to move it in?
http://mmrambotics.ca/wpilib/class_jaguar.html. I assume you're using the Jaguar motor controller, so the Jaguar class.

Alternatively, you could be using a Spike,
http://mmrambotics.ca/wpilib/class_relay.html

Alternatively, using a Victor,
http://mmrambotics.ca/wpilib/class_victor.html


Quote:
Originally Posted by Katelin3038 View Post
There i veiwed it haha!
What?
Reply With Quote
  #4   Spotlight this post!  
Unread 26-01-2011, 20:32
ElliotCourant's Avatar
ElliotCourant ElliotCourant is offline
Elliot Courant
AKA: Elliot Courant
FRC #3038 (ICE Robotics)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Minnesota
Posts: 19
ElliotCourant is an unknown quantity at this point
Re: How would you control a single motor from C++

Thank You
__________________
"Error, Cannot Find Back-End!" -WindRiver C++ Error
"If you aren't getting any errors while you are programming, then you are doing something wrong." -Elliot Courant
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 02:47.

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