Go to Post Just wondering what types of food you have been living off of while working on your robot? Our team has had pizza almost 3-4 times a week or more. Just wondering. SGS DRAGONS - sgsdragons [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 03-03-2010, 22:19
Bart Bart is offline
Registered User
FRC #2625
 
Join Date: Feb 2010
Location: Canada
Posts: 5
Bart is an unknown quantity at this point
Mecanum Spin

Hey, I'm currently trying to figure out how to change the magnitude of the holonomic drive system. I tried the obvious approach (Changing the first float) however, with out current code, nothing seemed to change at all. Could someone look it over and tell me what they think? We basically want the spin of the robot to be dependent on the value returned by the joystick throttle:

Code:
//Stop Button
		if(!joyStick->GetRawButton(3))
		{
			//Turn left
			if(joyStick->GetRawButton(4))
				joanRobo->HolonomicDrive(joyStick->GetThrottle(), 0.0, -180.0);
			
			//Turn right
			else if (joyStick->GetRawButton(5))
				joanRobo->HolonomicDrive(joyStick->GetThrottle(), 0.0, 180.0);
			
			//Regular holonomic movement
			else
				joanRobo->HolonomicDrive(joyStick->GetMagnitude(), joyStick->GetDirectionDegrees(), 0.0);
		}
		else
			//Stop all movement
			joanRobo->HolonomicDrive(0.0, 0.0, 0.0);
Reply With Quote
 


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
pic: Hot Shot Spin Bar Madison Extra Discussion 5 15-09-2009 15:38
A different spin on things. Matt Attallah Chit-Chat 28 24-07-2006 11:38
Will the tetras spin? SteveO Rules/Strategy 15 20-01-2005 02:36
PUSA and Spin Doctors Jeff Rodriguez Chit-Chat 1 08-08-2003 03:37
Motor Spin Direction archiver 2000 6 23-06-2002 23:43


All times are GMT -5. The time now is 18:08.

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