Go to Post They call us super nerds. I say thank you :D - Gregor [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-01-2007, 18:30
pbrules15 pbrules15 is offline
Registered User
AKA: Ronny
no team
 
Join Date: Jan 2006
Location: Newton, KS
Posts: 9
pbrules15 is an unknown quantity at this point
Problem with easy c pro and mechanum wheels

We are trying to write some code in easy c pro to control our mechanum wheels. I have seen the code from team 40 and it is does not do what we want it to do. Each mechanum wheel has its own drive motor and we are controlling them with 2 joysticks in the tank format. We would like to have our x axis of our joysticks control the movement left to right with the mechanum wheels (move both joysticks left, straif left. Move both joysticks right, straif right).

Here is the problem, I have written the code to control it in tank setup, and I have written code to control the straif setup. Independently, the two work fine, but I cannot figure out how to join them together. When combining the two, the robot spazzes out all the motors at once. I can still control the robot but it is not smooth at all.

My code is attached. Please help.

Thank you
Attached Files
File Type: zip tank.zip (15.6 KB, 97 views)

Last edited by pbrules15 : 21-01-2007 at 18:32.
  #2   Spotlight this post!  
Unread 22-01-2007, 07:45
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: Problem with easy c pro and mechanum wheels

So you want the robot to drive forward like a tank.
Two sticks forward.

You want it to rotate like a tank
One stick forward and one back.

You want to strafe side to side with one stick or both?
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
  #3   Spotlight this post!  
Unread 22-01-2007, 19:29
pbrules15 pbrules15 is offline
Registered User
AKA: Ronny
no team
 
Join Date: Jan 2006
Location: Newton, KS
Posts: 9
pbrules15 is an unknown quantity at this point
Re: Problem with easy c pro and mechanum wheels

That is correct. Although, today I have found my problem, and now it works perfect. Well, almost. All the wheels do not move at exactly the same speed and the robot drifts a little bit, but I think the problem could be our joysticks.

But I do have another question. I have heard that in Easy C Pro you can type in the code manually instead of using the flow chart. But I cannot figure out how! I checked the help file. It says that you can, but I cannot figure out how. How?

Last edited by pbrules15 : 22-01-2007 at 19:33.
  #4   Spotlight this post!  
Unread 22-01-2007, 20:26
Madison's Avatar
Madison Madison is offline
Dancing through life...
FRC #0488 (Xbot)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1999
Location: Seattle, WA
Posts: 5,244
Madison has a reputation beyond reputeMadison has a reputation beyond reputeMadison has a reputation beyond reputeMadison has a reputation beyond reputeMadison has a reputation beyond reputeMadison has a reputation beyond reputeMadison has a reputation beyond reputeMadison has a reputation beyond reputeMadison has a reputation beyond reputeMadison has a reputation beyond reputeMadison has a reputation beyond repute
Re: Problem with easy c pro and mechanum wheels

Quote:
Originally Posted by pbrules15 View Post
That is correct. Although, today I have found my problem, and now it works perfect. Well, almost. All the wheels do not move at exactly the same speed and the robot drifts a little bit, but I think the problem could be our joysticks.

But I do have another question. I have heard that in Easy C Pro you can type in the code manually instead of using the flow chart. But I cannot figure out how! I checked the help file. It says that you can, but I cannot figure out how. How?
Does your mecanum drive have any feedback installed or is it completely open loop? If it's open loop, the problem is probably not with your joysticks -- but with the inherent inequalities in the mechanical properties of the motors and gearboxes controlling each wheel.
__________________
--Madison--

...down at the Ozdust!

Like a grand and miraculous spaceship, our planet has sailed through the universe of time. And for a brief moment, we have been among its many passengers.
  #5   Spotlight this post!  
Unread 22-01-2007, 22:23
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: Problem with easy c pro and mechanum wheels

You click on the Project Tab and Add a source file by right clicking on "Source Files". You can also right click on a function you have created and right click and convert it to "C" code.

Also, we had some trouble with the encoders coming loose at the end of the season and it caused issues
with the robot drifting while driving strait. So we went open loop and it was better then malfunctioning encoders
but not a whole lot.
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
  #6   Spotlight this post!  
Unread 30-01-2007, 17:55
pbrules15 pbrules15 is offline
Registered User
AKA: Ronny
no team
 
Join Date: Jan 2006
Location: Newton, KS
Posts: 9
pbrules15 is an unknown quantity at this point
Re: Problem with easy c pro and mechanum wheels

Thanks for the help!

So, for example, we cannot edit the operator or atonomous function because we did not create it ourselves?

Also, we are havin a big ole problem. We cannot figure how to make the camera track in easy c pro. I cannot find an example of the camera tracking in easy c pro. HELP!
  #7   Spotlight this post!  
Unread 30-01-2007, 21:30
Dad1279 Dad1279 is offline
Registered User
FRC #1279 (Cold Fusion)
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2004
Location: NJ
Posts: 511
Dad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud ofDad1279 has much to be proud of
Re: Problem with easy c pro and mechanum wheels

Quote:
Originally Posted by pbrules15 View Post
Thanks for the help!

So, for example, we cannot edit the operator or atonomous function because we did not create it ourselves?

Also, we are havin a big ole problem. We cannot figure how to make the camera track in easy c pro. I cannot find an example of the camera tracking in easy c pro. HELP!
Our program team found this a helpful start: http://www.intelitekdownloads.com/easyCPRO/
  #8   Spotlight this post!  
Unread 03-02-2007, 17:33
pbrules15 pbrules15 is offline
Registered User
AKA: Ronny
no team
 
Join Date: Jan 2006
Location: Newton, KS
Posts: 9
pbrules15 is an unknown quantity at this point
Re: Problem with easy c pro and mechanum wheels

Is there any example of someones code for the camera written in easy c pro?
  #9   Spotlight this post!  
Unread 03-02-2007, 20:11
artdutra04's Avatar
artdutra04 artdutra04 is offline
VEX Robotics Engineer
AKA: Arthur Dutra IV; NERD #18
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2002
Location: Greenville, TX
Posts: 3,078
artdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond repute
Re: Problem with easy c pro and mechanum wheels

Quote:
Originally Posted by pbrules15 View Post
Is there any example of someones code for the camera written in easy c pro?
Download the "2007 Kickoff Demo Code" on the Intelitek Downloads page - this code tracks the target lights.
http://www.intelitekdownloads.com/easyCPRO/
__________________
Art Dutra IV
Robotics Engineer, VEX Robotics, Inc., a subsidiary of Innovation First International (IFI)
Robowranglers Team 148 | GUS Robotics Team 228 (Alumni) | Rho Beta Epsilon (Alumni) | @arthurdutra

世上无难事,只怕有心人.
  #10   Spotlight this post!  
Unread 03-02-2007, 20:38
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: Problem with easy c pro and mechanum wheels

There is also some demo graphics display camera code is Test Code / Graphics Display.
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
autotracking and driving with Easy C??? team877 Programming 4 19-01-2007 12:36
need help with 3dsmax7 and pro desktop Amittt 3D Animation and Competition 3 18-01-2006 08:00
Mechanum Wheels Andy B Technical Discussion 2 10-01-2006 17:41
Drivetrain up and running with stock wheels Mirza95vx Robot Showcase 0 05-02-2005 10:53
Problem with reading and writing EEPROM DKolberg Programming 4 16-03-2004 19:29


All times are GMT -5. The time now is 23:50.

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