Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Introducing SwagDrive. The drive code of the future. (http://www.chiefdelphi.com/forums/showthread.php?t=116538)

drkabob 29-04-2013 23:42

Introducing SwagDrive. The drive code of the future.
 
So I attended the World Championships this year. It was great seeing all these high level robots. However, I had a problem with them, they drove too straight. They drove with too much precision. There was no sense of "YOLO", the robots did not drive with enough swag.

So I decided to remedy this issue at the programming level, by creating SwagDrive. SwagDrive increases the robot's level of swag by at least ten-fold. By using new and innovative algorithms (or rather "swagorithms"), SwagDrive decreases the robot's consistency and accuracy so that when it drives on the playing field it looks a lot cooler.

It is similar to ArcadeDrive with some important modifications. If the change on an axis is not larger than the "swag barrier", it will multiplied by the "swag multiplier" in order to "swag up" the driver's inputs. If the input is larger then the "swag barrier" for that particular cycle, then the robot's "swag level" increases by one. If the "swag level" becomes over 9000 the robot enters a moment of ultimate swag and rotates for one "swag period" (truly a YOLO move). Many of these values still need to be tuned and modified to achieve optimal swag.

You can find an example implementation written in Java by clicking here. While I have yet to test SwagDrive on a real robot, I can assure you that it will swag up your robot.

I look forward to your comments and hope that we can improve SwagDrive for future competitions.

(If you haven't figured it out yet, this is a joke. You can find 1836's robot code here by our main coder. I would strongly recommend not using the SwagDrive code on your robot, as you will likely lose control and possibly hurt the robot and the people around it.)

connor.worley 29-04-2013 23:44

Re: Introducing SwagDrive. The drive code of the future.
 
This is truly innovative. Can't wait to run it at IRI.

dcarr 29-04-2013 23:46

Re: Introducing SwagDrive. The drive code of the future.
 
Pics/vids or shenanigans.

BigJ 29-04-2013 23:55

Re: Introducing SwagDrive. The drive code of the future.
 
Sounds like the perfect drive for Tem 254: Teh Chesy Pofs.

blackflame2996 30-04-2013 00:04

Re: Introducing SwagDrive. The drive code of the future.
 
I don't know if we would tell the difference; our driver drives like that anyway.

AlecMataloni 30-04-2013 00:26

Re: Introducing SwagDrive. The drive code of the future.
 
What happens when everything becomes fully swagged out? Also, does my robot need to have collar-popping functionality to use every feature? Otherwise, looks like it's pretty easy to turn my swag on even as a rookie.

I should totally try this out. I don't know much about code, but oh well , you only live once.

saikiranra 30-04-2013 00:32

Re: Introducing SwagDrive. The drive code of the future.
 
I guess it won't be much of a change compared to us veering right when sending an only forward signal...

This would have been perfect for Team Harlem Shake videos.




We will be testing this tomorrow.

Jackladd 30-04-2013 01:57

Re: Introducing SwagDrive. The drive code of the future.
 
Can someone please actually do this?

Michael Hill 30-04-2013 06:35

Re: Introducing SwagDrive. The drive code of the future.
 
Quote:

Originally Posted by blackflame2996 (Post 1269813)
I don't know if we would tell the difference; our driver drives like that anyway.

Just multiply the inputs by -1 and it's drive CORRECTING code.

thinker&planner 30-04-2013 06:59

Re: Introducing SwagDrive. The drive code of the future.
 
We already have a program that does this, because we have mecanum wheels and a gyro, we spin in circles down the field. We haven't actually used this in a match (except for a mishap with our autonomous in a practice match (http://www.theroboshow.net/ ep.1 about 10:00)), but at public events it is great.

2789_B_Garcia 30-04-2013 07:10

Re: Introducing SwagDrive. The drive code of the future.
 
I've been working on a holla-nomic drive train where the wheels are angled to give alliance partners rep, props and street cred, but I've run into some electrical feedback problems with the wheels giving the props only to the chassis that they are mounted to...I've been calling this phenomenon "hollaback" lol

Greg McKaskle 30-04-2013 07:20

Re: Introducing SwagDrive. The drive code of the future.
 
One of the CSA's told a story at dinner about a team with a robot that would inexplicably stutter. They search the code looking for parallel updates to motors, bad math, etc.

They ultimately stumbled across a parallel VI stuck in the corner named "Harlem Shake". Not sure who the joke was on, but its one they will remember for awhile.

Greg McKaskle

Adrian Clark 30-04-2013 14:46

Re: Introducing SwagDrive. The drive code of the future.
 
highest # of posts to rep ratio I've ever seen. well done sir.

JesseK 30-04-2013 15:12

Re: Introducing SwagDrive. The drive code of the future.
 
This is almost as cool as a triple-Killough nona-drive.

Gregor 30-04-2013 16:02

Re: Introducing SwagDrive. The drive code of the future.
 
Quote:

Originally Posted by Adrian Clark (Post 1270143)
highest # of posts to rep ratio I've ever seen. well done sir.

Sorry, I don't think anyone will ever come close to this. ;)


All times are GMT -5. The time now is 16:15.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi