Go to Post Part of FRC is to introduce you to how engineering is in real life: you can't use a redo card if you're landing something on the moon. - The other Gabe [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 25-01-2015, 16:16
PredaFran PredaFran is offline
Amateur Programmer
AKA: Francisco
FRC #5285 (Sea Kings Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: California
Posts: 25
PredaFran is an unknown quantity at this point
Question Help with Swerve Drive

As a C++ programmer, this is my first year programming with motors,encoders,the roboRio,etc. and my Team has been developing a swerve drive off-season,and my experience is not helping me with it, so i have been doing a lot of research about it, looking for templates,basics but i still cant manage to do it, so i came here to ask help, suggestions, tips. Everything that can help me


Info about the swerve drive: (attached an image)
*4 motors will be linked using chains, in groups, left(upper and lower) and right(upper and lower)
* it will only be able to rotate 180° to the lafet and 180° to the right
* we are still deciding if we are going to use the CANTalons or Victors

All suggestion are accepte
Thanks
Attached Thumbnails
Click image for larger version

Name:	IMG_20150125_131118.jpg
Views:	67
Size:	1.91 MB
ID:	17982  
Reply With Quote
  #2   Spotlight this post!  
Unread 25-01-2015, 16:32
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,089
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Help with Swerve Drive

Quote:
Originally Posted by PredaFran View Post
*4 motors will be linked using chains, in groups, left(upper and lower) and right(upper and lower)
swerve has at least 8 motors (4 steering + 4 propulsion). which set of 4 are you referring to above?


Reply With Quote
  #3   Spotlight this post!  
Unread 25-01-2015, 16:33
PredaFran PredaFran is offline
Amateur Programmer
AKA: Francisco
FRC #5285 (Sea Kings Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: California
Posts: 25
PredaFran is an unknown quantity at this point
Re: Help with Swerve Drive

Quote:
Originally Posted by Ether View Post
swerve has at least 8 motors (4 steering + 4 propulsion). which set of 4 are you referring to above?


Sorry, 4 motors in the wheels, and 2 that move the chains that steer
Reply With Quote
  #4   Spotlight this post!  
Unread 25-01-2015, 16:36
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,089
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Help with Swerve Drive

Quote:
Originally Posted by PredaFran View Post
Sorry, 4 motors in the wheels, and 2 that move the chains that steer
So, you have independent control of the wheel speed for each of the 4 wheels, but the front and back wheels on each side are chained together for steering?


Reply With Quote
  #5   Spotlight this post!  
Unread 25-01-2015, 16:37
PredaFran PredaFran is offline
Amateur Programmer
AKA: Francisco
FRC #5285 (Sea Kings Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: California
Posts: 25
PredaFran is an unknown quantity at this point
Re: Help with Swerve Drive

Quote:
Originally Posted by Ether View Post
So, you have independent control of the wheel speed for each of the 4 wheels, but the front and back wheels on each side are chained together for steering?


Yeah
Reply With Quote
  #6   Spotlight this post!  
Unread 25-01-2015, 16:41
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,089
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Help with Swerve Drive

Quote:
Originally Posted by PredaFran View Post
Yeah
when you steer the front right wheel to the right, does the rear right wheel steer to the right also, or to the left?


Reply With Quote
  #7   Spotlight this post!  
Unread 25-01-2015, 16:45
PredaFran PredaFran is offline
Amateur Programmer
AKA: Francisco
FRC #5285 (Sea Kings Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: California
Posts: 25
PredaFran is an unknown quantity at this point
Re: Help with Swerve Drive

Quote:
Originally Posted by Ether View Post
when you steer the front right wheel to the right, does the rear right wheel steer to the right also, or to the left?


to the right too
Reply With Quote
  #8   Spotlight this post!  
Unread 25-01-2015, 16:53
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,089
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Help with Swerve Drive

Quote:
Originally Posted by PredaFran View Post
to the right too
What kind of driver interface do you have in mind?


Reply With Quote
  #9   Spotlight this post!  
Unread 25-01-2015, 16:57
PredaFran PredaFran is offline
Amateur Programmer
AKA: Francisco
FRC #5285 (Sea Kings Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: California
Posts: 25
PredaFran is an unknown quantity at this point
Re: Help with Swerve Drive

Quote:
Originally Posted by Ether View Post
What kind of driver interface do you have in mind?


Smartdashboard
Reply With Quote
  #10   Spotlight this post!  
Unread 25-01-2015, 17:06
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,089
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Help with Swerve Drive

Quote:
Originally Posted by PredaFran View Post
Smartdashboard
Configured how? What is the interface presented to the driver?


Reply With Quote
  #11   Spotlight this post!  
Unread 25-01-2015, 17:08
PredaFran PredaFran is offline
Amateur Programmer
AKA: Francisco
FRC #5285 (Sea Kings Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: California
Posts: 25
PredaFran is an unknown quantity at this point
Re: Help with Swerve Drive

Quote:
Originally Posted by Ether View Post
Configured how? What is the interface presented to the driver?


wait, sorry for that, we are going to use the FRC driver station
Reply With Quote
  #12   Spotlight this post!  
Unread 25-01-2015, 17:12
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,089
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Help with Swerve Drive

Quote:
Originally Posted by PredaFran View Post
wait, sorry for that, we are going to use the FRC driver station
So, no joysticks. No Xbox controller. Just the FRC Driver station?


Reply With Quote
  #13   Spotlight this post!  
Unread 25-01-2015, 17:17
PredaFran PredaFran is offline
Amateur Programmer
AKA: Francisco
FRC #5285 (Sea Kings Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: California
Posts: 25
PredaFran is an unknown quantity at this point
Re: Help with Swerve Drive

Quote:
Originally Posted by Ether View Post
So, no joysticks. No Xbox controller. Just the FRC Driver station?


ohh, didnt get that, we are going to use the 3d extreme pro joystick for the driver, because its 3-axis

Last edited by PredaFran : 25-01-2015 at 17:46.
Reply With Quote
  #14   Spotlight this post!  
Unread 25-01-2015, 17:19
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,089
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Help with Swerve Drive

Quote:
Originally Posted by PredaFran View Post
ohh, didnt gert that, we are going to use the 3d extreme pro joystick for the driver, because its 3-axis
What does your drive team want each axis to do?


Reply With Quote
  #15   Spotlight this post!  
Unread 25-01-2015, 17:23
PredaFran PredaFran is offline
Amateur Programmer
AKA: Francisco
FRC #5285 (Sea Kings Robotics)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: California
Posts: 25
PredaFran is an unknown quantity at this point
Re: Help with Swerve Drive

Quote:
Originally Posted by Ether View Post
What does your drive team want each axis to do?


X-Axis: left, right
Y-Axis: fowards and backwards
y-rotate: rotate in the place and while moving

By the way, thanks a lot for the help so far, we really appreciate it

Last edited by PredaFran : 25-01-2015 at 17:30.
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 13:57.

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