Go to Post Celebrate your failures as well as your successes. - Taylor [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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-09-2014, 16:08
5383robotsrule's Avatar
5383robotsrule 5383robotsrule is offline
Registered User
FTC #5384 (code red robotics family of teams)
Team Role: Driver
 
Join Date: Dec 2012
Rookie Year: 2005
Location: michigan
Posts: 19
5383robotsrule is an unknown quantity at this point
Exclamation ftc mecanum code

Hi I was wondering if anyone had any FTC mechanum teleop code.It would be greatly appreciated
__________________
there are no mistakes only lessons
nothing is impossible some things are harder than others :yikes
Reply With Quote
  #2   Spotlight this post!  
Unread 12-09-2014, 20:19
Darkseer54's Avatar
Darkseer54 Darkseer54 is offline
Former Controls Captain and Driver
AKA: Zach Kaplan
FRC #1086 (Blue Cheese)
Team Role: Alumni
 
Join Date: Nov 2012
Rookie Year: 2013
Location: Richmond, VA
Posts: 137
Darkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of lightDarkseer54 is a glorious beacon of light
Re: ftc mechanum code

Not exactly what you asked for, but for frc we just implemented Ether's math (click here for the documents) and went from there. Start with the "mecanum & omni with gyro for field-centric control", it should give you all the math to setup the motors initially. If you don't have a gyro you can just set it to zero or not include it at all. Hope this helps!
Reply With Quote
  #3   Spotlight this post!  
Unread 12-09-2014, 22:35
dawonn's Avatar
dawonn dawonn is offline
Mentor
AKA: Dereck
FRC #2586 (Calumet Copperbots)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Auburn Hills, Mi
Posts: 53
dawonn is an unknown quantity at this point
Re: ftc mechanum code

Don't skip the gyro, it's the difference between frustrating year and an awesome year.

You don't have to use field centric control with a gyro either, that can be a headache too.
Reply With Quote
  #4   Spotlight this post!  
Unread 13-09-2014, 17:03
5383robotsrule's Avatar
5383robotsrule 5383robotsrule is offline
Registered User
FTC #5384 (code red robotics family of teams)
Team Role: Driver
 
Join Date: Dec 2012
Rookie Year: 2005
Location: michigan
Posts: 19
5383robotsrule is an unknown quantity at this point
Re: ftc mecanum code

the problem with the gyro is we don't have a gyro to use . i am also not very good at coding so i don't understand how to do a lot of stuff with coding.
__________________
there are no mistakes only lessons
nothing is impossible some things are harder than others :yikes

Last edited by 5383robotsrule : 13-09-2014 at 17:06.
Reply With Quote
  #5   Spotlight this post!  
Unread 13-09-2014, 17:47
Whippet's Avatar
Whippet Whippet is offline
MIT Class of 2020
AKA: Luis Trueba
FRC #4301 (New Tech Narcissists)
Team Role: Alumni
 
Join Date: Feb 2011
Rookie Year: 2011
Location: Cambridge, MA
Posts: 1,187
Whippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond reputeWhippet has a reputation beyond repute
Send a message via Yahoo to Whippet
Re: ftc mecanum code

https://www.hitechnic.com/cgi-bin/co...on&key=NGY1044

This one should work for your purposes and wouldn't be hard to wire.
__________________
2010: FRC 3043, Build Assistant
2011: FRC 3043, Head of Minibot subteam; FLL 12762, Team Captain
2012: FRC 3043, Electrical; FLL 12762, Team Captain; FTC 5670, Team Captain
2013: FRC 4301, Electrical, Team Co-Captain
2014: FRC 4301, Electrical/Programming, Team Co-Captain
2015: FRC 4301, Electrical/Programming, Team Captain
2016: FRC 4301, Chief Technical Officer; FTC 10860, 10861, and 11004: Mentor. Winner, Hub City Regional (3310 & 4063)
Reply With Quote
  #6   Spotlight this post!  
Unread 13-09-2014, 19:22
5383robotsrule's Avatar
5383robotsrule 5383robotsrule is offline
Registered User
FTC #5384 (code red robotics family of teams)
Team Role: Driver
 
Join Date: Dec 2012
Rookie Year: 2005
Location: michigan
Posts: 19
5383robotsrule is an unknown quantity at this point
Re: ftc mecanum code

this will work but i would prefer a code that doesn't require the gyro because this is kind of expensive and also the mechanum wheels cost $60 per set of 4 and we want 2 sets so thats $175 with gyro so it is expensive.
__________________
there are no mistakes only lessons
nothing is impossible some things are harder than others :yikes
Reply With Quote
  #7   Spotlight this post!  
Unread 13-09-2014, 19:58
orangemoore orangemoore is offline
Registered User
AKA: Roger Moore
FRC #3135 (Robotic Colonels)
Team Role: College Student
 
Join Date: Dec 2012
Rookie Year: 2013
Location: Chicago
Posts: 2,309
orangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond repute
Re: ftc mechanum code

Quote:
Originally Posted by dawonn View Post
Don't skip the gyro, it's the difference between frustrating year and an awesome year.

You don't have to use field centric control with a gyro either, that can be a headache too.
You don't need the gyro for Mecanum. We used it just fine without it this year. It is true that it would give a better experience but it totally is extra something to do if you have the time (and money).

It is something we have planned on adding every year never gotten it done. Now our switch to RobotC might make it harder to get to it this year.
__________________
Stronghold


Student 2013-2016
3135 -- Robotic Colonels
3507 -- Robotheosis (FTC)
Reply With Quote
  #8   Spotlight this post!  
Unread 14-09-2014, 11:49
5383robotsrule's Avatar
5383robotsrule 5383robotsrule is offline
Registered User
FTC #5384 (code red robotics family of teams)
Team Role: Driver
 
Join Date: Dec 2012
Rookie Year: 2005
Location: michigan
Posts: 19
5383robotsrule is an unknown quantity at this point
Re: ftc mecanum code

Do you have any teleop code from your mechanum code from previous years
__________________
there are no mistakes only lessons
nothing is impossible some things are harder than others :yikes
Reply With Quote
  #9   Spotlight this post!  
Unread 14-09-2014, 12:15
orangemoore orangemoore is offline
Registered User
AKA: Roger Moore
FRC #3135 (Robotic Colonels)
Team Role: College Student
 
Join Date: Dec 2012
Rookie Year: 2013
Location: Chicago
Posts: 2,309
orangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond reputeorangemoore has a reputation beyond repute
Re: ftc mecanum code

Here are the screen shots of our code.
There are 3 pictures.

The way it works by adding and subtracting the values of the joysticks depending of the wheel. The middle attempts to normalize the value of the joysticks because if you don't it will end up driving really fast all the time.

**I have not included our code from last year directly because we had a really weird problem with our code that we couldn't figure out. When ever the joystick value got higher than aprox. 100 the motor outputs were reversed. I rewrote this code several times and could never get it to work.
Attached Thumbnails
Click image for larger version

Name:	TeleOp.jpg
Views:	62
Size:	184.8 KB
ID:	17310  Click image for larger version

Name:	NormTrue.png
Views:	40
Size:	131.5 KB
ID:	17311  Click image for larger version

Name:	NormFalse.png
Views:	32
Size:	134.6 KB
ID:	17312  
__________________
Stronghold


Student 2013-2016
3135 -- Robotic Colonels
3507 -- Robotheosis (FTC)
Reply With Quote
  #10   Spotlight this post!  
Unread 14-09-2014, 12:53
5383robotsrule's Avatar
5383robotsrule 5383robotsrule is offline
Registered User
FTC #5384 (code red robotics family of teams)
Team Role: Driver
 
Join Date: Dec 2012
Rookie Year: 2005
Location: michigan
Posts: 19
5383robotsrule is an unknown quantity at this point
Talking Re: ftc mecanum code

thanks so much for the screenshots these will come in handy for programming our robot. i really appreciate it. now my team will be able to do mechanum. we have been debating on whether or not to use mechanum it all depended on if we had code or not.i could talk to one of our coders to fix your code problem.
__________________
there are no mistakes only lessons
nothing is impossible some things are harder than others :yikes
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 09:58.

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