Go to Post Come on, guys, it's two weeks 'til build. Personally, I'm gonna go outside for a little before I forget what my neighborhood looks like in the daylight. :) - Libby K [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 01-18-2014, 03:48 PM
inform880 inform880 is offline
Registered User
FRC #2137
 
Join Date: Jan 2014
Location: Oxford, Michigan
Posts: 2
inform880 is an unknown quantity at this point
Question Halo Drive

Hi,

I want to create a Halo Drive for our six wheel robot with 4 jag motor controllers. The idea is that one stick would be for the speed and the other would turn the bot.

I honestly don't know where to even start. I don't know what sort of algorithm to use or what function would be aproprate.

What algorithm should I use? What function should I use?

Thanks,

inform880
Reply With Quote
  #2   Spotlight this post!  
Unread 01-18-2014, 04:14 PM
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 7,999
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: Halo Drive

Quote:
Originally Posted by inform880 View Post
I want to create a Halo Drive for our six wheel robot with 4 jag motor controllers. The idea is that one stick would be for the speed and the other would turn the bot.

I honestly don't know where to even start. I don't know what sort of algorithm to use or what function would be aproprate.

What algorithm should I use? What function should I use?

WPILib:

Code:
/**
 * Drive the motors at "speed" and "curve".
 *
 * The speed and curve are -1.0 to +1.0 values where 0.0 represents stopped and
 * not turning. The algorithm for adding in the direction attempts to provide a constant
 * turn radius for differing speeds.
 *
 * This function will most likely be used in an autonomous routine.
 *
 * @param outputMagnitude The forward component of the output magnitude to send to the motors.
 * @param curve The rate of turn, constant for different forward speeds.
 */
void RobotDrive::Drive(float outputMagnitude, float curve)



Last edited by Ether : 01-18-2014 at 04:18 PM.
Reply With Quote
  #3   Spotlight this post!  
Unread 01-18-2014, 10:39 PM
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Halo Drive

If your six-wheel drive has normal traction wheels, with three driven together on one side and three driven together on the other side, it doesn't have the ability to move sideways. I would usually reserve the term "Halo drive" for a robot that can travel in any direction without first having to rotate to face that direction.

It sounds like what you're looking for is a typical Arcade drive, but with the speed and spin on separate joysticks. The usual Arcade drive uses the Y axis of a joystick for the speed, and the X axis of the same joystick for the spin. For your application, simply use the X axis of the other stick instead.
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:14 AM.

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