Go to Post My opinion doesn't matter at inspection. - DonRotolo [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 10-11-2009, 12:26
BLAQmx's Avatar
BLAQmx BLAQmx is offline
Software Engineer
no team (National Instruments)
Team Role: Engineer
 
Join Date: Sep 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 100
BLAQmx is a glorious beacon of lightBLAQmx is a glorious beacon of lightBLAQmx is a glorious beacon of lightBLAQmx is a glorious beacon of lightBLAQmx is a glorious beacon of lightBLAQmx is a glorious beacon of light
Use the FRC Control System to drive a car with an iPhone

In case you were searching for more ways to reuse for FRC control system, Waterloo Labs posted a new video demonstrating how to control a car with the FRC-cRIO and an iPhone/Laptop/power wheels.

http://waterloolabs.blogspot.com/200...episode-3.html

More on how this was implemented
http://zone.ni.com/devzone/cda/tut/p/id/10507


Let the safety flame-war begin.
__________________
NI FIRST Community: Where to go for LabVIEW, Wind River, cRIO-FRC, and NXT support.

Last edited by BLAQmx : 10-11-2009 at 12:32.
Reply With Quote
  #2   Spotlight this post!  
Unread 10-11-2009, 12:38
Terminatristik Terminatristik is offline
Registered User
no team
 
Join Date: Nov 2009
Location: Austin
Posts: 2
Terminatristik is an unknown quantity at this point
Re: Use the FRC Control System to drive a car with an iPhone

This would be a great thing to do in the FIRST offseason, with all this hardware laying around, just begging to be played with. Not to mention a great way to train the new kids on everything.
Reply With Quote
  #3   Spotlight this post!  
Unread 10-11-2009, 13:10
Josh Drake's Avatar
Josh Drake Josh Drake is offline
Engineering Mentor
FRC #5403 (Aluminosity)
Team Role: Leadership
 
Join Date: Aug 2007
Rookie Year: 2007
Location: Lawrence County, IN
Posts: 774
Josh Drake has a reputation beyond reputeJosh Drake has a reputation beyond reputeJosh Drake has a reputation beyond reputeJosh Drake has a reputation beyond reputeJosh Drake has a reputation beyond reputeJosh Drake has a reputation beyond reputeJosh Drake has a reputation beyond reputeJosh Drake has a reputation beyond reputeJosh Drake has a reputation beyond reputeJosh Drake has a reputation beyond reputeJosh Drake has a reputation beyond repute
Re: Use the FRC Control System to drive a car with an iPhone

New fundraiser idea: remote control demolition derby. We could get the career center's auto body shop to help!
__________________
07'-10' FRC 343
11'-12' FRC 2751
13'-14' FRC 3494
15'-16' FRC 5403
Reply With Quote
  #4   Spotlight this post!  
Unread 10-11-2009, 13:26
Eugene Fang's Avatar
Eugene Fang Eugene Fang is offline
The Blue Alliance
no team
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Bay Area, CA -> Pittsburgh, PA
Posts: 767
Eugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond repute
Re: Use the FRC Control System to drive a car with an iPhone

Wow cool.

I'm really interested in how they got the iPhone to control the car. I've always wanted to do something like that to control our robot (not during competition, of course), but I wouldn't know where to begin. Ideally, I would not have to put new code on the cRIO, and just have the iPhone run a "Virtual Driver Staton" app (like the one shown here http://www.chiefdelphi.com/forums/sh...iver+st ation).

Has anyone done/tried anything similar? Thanks!
__________________
Eugene Fang
2010 Silicon Valley Regional Dean's List Finalist

Various FLL Teams - Student (2000-2006), Mentor (2007-2010)
FRC Team 604 - Student (2007-2010), Mentor/Remote Advisor (2011-2015)
FRC Team 1323 - Mentor/Remote Advisor (2011-2014)

The Blue Alliance | TBA GameDay | TBA Android App
Reply With Quote
  #5   Spotlight this post!  
Unread 13-11-2009, 01:28
Terminatristik Terminatristik is offline
Registered User
no team
 
Join Date: Nov 2009
Location: Austin
Posts: 2
Terminatristik is an unknown quantity at this point
Re: Use the FRC Control System to drive a car with an iPhone

They just posted a new video about how the iPhone part works, might answer some of your questions.

http://www.youtube.com/watch?v=6-h51...response_watch
Reply With Quote
  #6   Spotlight this post!  
Unread 16-11-2009, 23:06
Eugene Fang's Avatar
Eugene Fang Eugene Fang is offline
The Blue Alliance
no team
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Bay Area, CA -> Pittsburgh, PA
Posts: 767
Eugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond repute
Re: Use the FRC Control System to drive a car with an iPhone

Quote:
Originally Posted by Terminatristik View Post
They just posted a new video about how the iPhone part works, might answer some of your questions.

http://www.youtube.com/watch?v=6-h51...response_watch
Sweet thanks, i'll check it out.
__________________
Eugene Fang
2010 Silicon Valley Regional Dean's List Finalist

Various FLL Teams - Student (2000-2006), Mentor (2007-2010)
FRC Team 604 - Student (2007-2010), Mentor/Remote Advisor (2011-2015)
FRC Team 1323 - Mentor/Remote Advisor (2011-2014)

The Blue Alliance | TBA GameDay | TBA Android App
Reply With Quote
  #7   Spotlight this post!  
Unread 17-11-2009, 03:26
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 800
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: Use the FRC Control System to drive a car with an iPhone

Quote:
Originally Posted by Pikat View Post
Has anyone done/tried anything similar? Thanks!
I wrote an app to drive 971's robot. I reverse engineered the driver station protocol and wrote an iphone app to drive. I'd say joysticks work a lot better. I steered by using the ipod like a steering wheel, and had an onscreen throttle and ball manipulation buttons. I found that I ended up just pegging the throttle full forwards, and then steering, which didn't work all that well when playing another robot in a practice match.

To do it, you need to either jailbreak your iphone/ipod, or pay for the $99 developer fee for 1 year worth of licensing, mess with all the encryption, and use a mac. I wrote an app for work over the summer, so I already had access to a developer key and a fair amount of knowledge on how to do the graphics.

I'm really bad at remembering this kind of thing, but I'll see if I can get a video up online.
Reply With Quote
  #8   Spotlight this post!  
Unread 17-11-2009, 03:56
Eugene Fang's Avatar
Eugene Fang Eugene Fang is offline
The Blue Alliance
no team
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Bay Area, CA -> Pittsburgh, PA
Posts: 767
Eugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond repute
Re: Use the FRC Control System to drive a car with an iPhone

Quote:
Originally Posted by AustinSchuh View Post
I wrote an app to drive 971's robot. I reverse engineered the driver station protocol and wrote an iphone app to drive. I'd say joysticks work a lot better. I steered by using the ipod like a steering wheel, and had an onscreen throttle and ball manipulation buttons. I found that I ended up just pegging the throttle full forwards, and then steering, which didn't work all that well when playing another robot in a practice match.

To do it, you need to either jailbreak your iphone/ipod, or pay for the $99 developer fee for 1 year worth of licensing, mess with all the encryption, and use a mac. I wrote an app for work over the summer, so I already had access to a developer key and a fair amount of knowledge on how to do the graphics.

I'm really bad at remembering this kind of thing, but I'll see if I can get a video up online.
I wouldn't be surprised that the joysticks work much better. I'm thinking of doing this more for a wow/cool factor, rather than functionality.

Thanks a lot for the info though. I'm looking forward to seeing that video Sounds cool.
__________________
Eugene Fang
2010 Silicon Valley Regional Dean's List Finalist

Various FLL Teams - Student (2000-2006), Mentor (2007-2010)
FRC Team 604 - Student (2007-2010), Mentor/Remote Advisor (2011-2015)
FRC Team 1323 - Mentor/Remote Advisor (2011-2014)

The Blue Alliance | TBA GameDay | TBA Android App
Reply With Quote
  #9   Spotlight this post!  
Unread 29-11-2009, 20:51
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 800
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: Use the FRC Control System to drive a car with an iPhone

Here's a video of me driving 971's bot with the iphone app I wrote.

http://www.youtube.com/watch?v=0KgtI4LSijM
Reply With Quote
  #10   Spotlight this post!  
Unread 29-11-2009, 21:05
Eugene Fang's Avatar
Eugene Fang Eugene Fang is offline
The Blue Alliance
no team
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Bay Area, CA -> Pittsburgh, PA
Posts: 767
Eugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond repute
Re: Use the FRC Control System to drive a car with an iPhone

Quote:
Originally Posted by AustinSchuh View Post
Here's a video of me driving 971's bot with the iphone app I wrote.

http://www.youtube.com/watch?v=0KgtI4LSijM
That's pretty sweet. Thanks for showing the vid!

Did you need to put any special code on the cRIO, or not since the iPod Touch was emulating the DS, like you said earlier?
Also, were both the iPod and the Gaming Adapter on the robot both connected to the blue router?

Thanks again
__________________
Eugene Fang
2010 Silicon Valley Regional Dean's List Finalist

Various FLL Teams - Student (2000-2006), Mentor (2007-2010)
FRC Team 604 - Student (2007-2010), Mentor/Remote Advisor (2011-2015)
FRC Team 1323 - Mentor/Remote Advisor (2011-2014)

The Blue Alliance | TBA GameDay | TBA Android App
Reply With Quote
  #11   Spotlight this post!  
Unread 29-11-2009, 21:15
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 800
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: Use the FRC Control System to drive a car with an iPhone

Quote:
Originally Posted by Pikat View Post
Did you need to put any special code on the cRIO, or not since the iPod Touch was emulating the DS, like you said earlier?
I didn't have to load any special code.
Quote:
Originally Posted by Pikat View Post
Also, were both the iPod and the Gaming Adapter on the robot both connected to the blue router?
Yes. Since the whole control system is just a network with devices on it, all I had to do was get the ipod and cRIO on the same network.
Reply With Quote
  #12   Spotlight this post!  
Unread 29-11-2009, 21:27
Eugene Fang's Avatar
Eugene Fang Eugene Fang is offline
The Blue Alliance
no team
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Bay Area, CA -> Pittsburgh, PA
Posts: 767
Eugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond reputeEugene Fang has a reputation beyond repute
Re: Use the FRC Control System to drive a car with an iPhone

Quote:
Originally Posted by AustinSchuh View Post
I didn't have to load any special code.

Yes. Since the whole control system is just a network with devices on it, all I had to do was get the ipod and cRIO on the same network.
Okay thanks again!
__________________
Eugene Fang
2010 Silicon Valley Regional Dean's List Finalist

Various FLL Teams - Student (2000-2006), Mentor (2007-2010)
FRC Team 604 - Student (2007-2010), Mentor/Remote Advisor (2011-2015)
FRC Team 1323 - Mentor/Remote Advisor (2011-2014)

The Blue Alliance | TBA GameDay | TBA Android App
Reply With Quote
  #13   Spotlight this post!  
Unread 29-11-2009, 21:37
R.C.'s Avatar
Happy Birthday! R.C. R.C. is online now
2017... Oooh Kill em, Swerve!
AKA: Owner, WestCoast Products
FRC #1323 (MadTown Robotics)
Team Role: Engineer
 
Join Date: Feb 2008
Rookie Year: 2006
Location: Madera, CA
Posts: 2,173
R.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond reputeR.C. has a reputation beyond repute
Re: Use the FRC Control System to drive a car with an iPhone

Quote:
Originally Posted by AustinSchuh View Post
Here's a video of me driving 971's bot with the iphone app I wrote.

http://www.youtube.com/watch?v=0KgtI4LSijM
Any chance you'll be releasing the app?

-RC
__________________
R.C.
Owner, WestCoast Products || Twitter
MadTown Robotics Team 1323
Reply With Quote
  #14   Spotlight this post!  
Unread 30-11-2009, 02:13
cbale2000's Avatar
cbale2000 cbale2000 is offline
Registered User
AKA: Chris Bale
FRC #0703 (Phoenix)
Team Role: Leadership
 
Join Date: Apr 2006
Rookie Year: 2004
Location: Saginaw, MI
Posts: 928
cbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond reputecbale2000 has a reputation beyond repute
Re: Use the FRC Control System to drive a car with an iPhone

After reading through the article my first reaction was... gee I hope one of those Jags doesn't burn out for some reason and lock the accelerator in the "on" position. Could be problematic.


Very cool idea regardless though, even cooler with the different kinds of portable devices you can link to it as well. Just need webcam feedback and you wouldn't even have to be near the thing to drive it!
Reply With Quote
  #15   Spotlight this post!  
Unread 30-11-2009, 03:36
AustinSchuh AustinSchuh is offline
Registered User
FRC #0971 (Spartan Robotics) #254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Feb 2005
Rookie Year: 1999
Location: Los Altos, CA
Posts: 800
AustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond reputeAustinSchuh has a reputation beyond repute
Re: Use the FRC Control System to drive a car with an iPhone

Quote:
Originally Posted by rc_cola1323 View Post
Any chance you'll be releasing the app?
The current implementation hard codes the specific buttons to drive 971's bot, and provides no way to change what virtual button acts like what physical button. If you would still be interested, understanding that you would have to change your code on the robot to use the stick mapping that I hard coded into the app, I can work on getting it on the app-store as is. (I might change the colors ...)

Or, if someone has ideas about an easy way (in terms of developer time) to set which buttons do what, I'm all ears and would be willing to implement it after Finals if it isn't too hard.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem Getting Victors to run with the new control system Boommaster713 Programming 11 15-02-2010 15:29
Do we have to ship the control system along with the robot on Tuesday? tennisbeast29 Rules/Strategy 3 14-02-2009 13:39
Top Ten Things NOT to do with the 2009 FRC Control System Vince FRC Control System 9 16-12-2008 17:08
E- Stop and The New FRC Control System Gdeaver Technical Discussion 15 09-10-2008 15:11
FRC control system to show up as default in the portal BornaE General Forum 0 25-09-2008 17:00


All times are GMT -5. The time now is 13:47.

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