Go to Post Sports have the power to change culture in a way that games do not. - Nate Laverdure [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 Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
  #46   Spotlight this post!  
Unread 16-05-2014, 13:20
raystubbs's Avatar
raystubbs raystubbs is offline
Programmer, Builder, Designer
FRC #2657 (Thundercats)
Team Role: Student
 
Join Date: Mar 2014
Rookie Year: 2012
Location: Deming NM
Posts: 121
raystubbs will become famous soon enough
Re: Android Driver Station

Quote:
Originally Posted by guniv View Post
Going to try and test this out later. You should look into adding support for controllers. Would mean we still have full control but don't have to haul a laptop around.
I did a little research on adding support for a physical joystick, it seems pretty easy but you need an OTG cable. I just ordered one, so hopefully by the end of summer vacation (August) the app will support a physical joystick.
  #47   Spotlight this post!  
Unread 16-05-2014, 13:41
Andrew Rudolph's Avatar
Andrew Rudolph Andrew Rudolph is offline
Git 'em!
no team (Robot in 3 Days)
Team Role: Mentor
 
Join Date: May 2001
Rookie Year: 2000
Location: Orlando, FL
Posts: 921
Andrew Rudolph has a reputation beyond reputeAndrew Rudolph has a reputation beyond reputeAndrew Rudolph has a reputation beyond reputeAndrew Rudolph has a reputation beyond reputeAndrew Rudolph has a reputation beyond reputeAndrew Rudolph has a reputation beyond reputeAndrew Rudolph has a reputation beyond reputeAndrew Rudolph has a reputation beyond reputeAndrew Rudolph has a reputation beyond reputeAndrew Rudolph has a reputation beyond reputeAndrew Rudolph has a reputation beyond repute
Send a message via AIM to Andrew Rudolph
Re: Android Driver Station

Another temporary solution for controllers is using the sixaxis app,
https://play.google.com/store/apps/d...iscontroll er

This allows you to define areas that correlate to button presses on a six-axis PS3 controller, of course you have to root the device and you have to use a six-axis so if you can get OTG cable support it would be epic.
__________________
iR3 Creative Engineering
Robot in 3 Days

FTC 6323 The Pink TeamMentor
FTC 8996 Pink Fluffy BunniesMentor
FRC 233 The Pink Team Mentor
FRC 1902 Exploding Bacon Mentor
  #48   Spotlight this post!  
Unread 16-05-2014, 13:57
raystubbs's Avatar
raystubbs raystubbs is offline
Programmer, Builder, Designer
FRC #2657 (Thundercats)
Team Role: Student
 
Join Date: Mar 2014
Rookie Year: 2012
Location: Deming NM
Posts: 121
raystubbs will become famous soon enough
Re: Android Driver Station

Quote:
Originally Posted by Andrew Rudolph View Post
Another temporary solution for controllers is using the sixaxis app,
https://play.google.com/store/apps/d...iscontroll er

This allows you to define areas that correlate to button presses on a six-axis PS3 controller, of course you have to root the device and you have to use a six-axis so if you can get OTG cable support it would be epic.
Thanks for the info, it could prove useful, however I am developing on a Kindle Fire 2nd gen. (which doesn't have Bluetooth) and haven't gotten around to figuring out how to root it. Also I would like the app to be available to those who do not want to root their device.

Last edited by raystubbs : 16-05-2014 at 19:22.
  #49   Spotlight this post!  
Unread 16-05-2014, 14:01
Joel Glidden's Avatar
Joel Glidden Joel Glidden is offline
My heart pumps diesel.
FRC #4293 (Komodo)
Team Role: Engineer
 
Join Date: Apr 2002
Rookie Year: 2001
Location: Highlands Ranch, CO
Posts: 208
Joel Glidden is a glorious beacon of lightJoel Glidden is a glorious beacon of lightJoel Glidden is a glorious beacon of lightJoel Glidden is a glorious beacon of lightJoel Glidden is a glorious beacon of lightJoel Glidden is a glorious beacon of light
Re: Android Driver Station

What about a Bluetooth interface for a PS3 controller or Wiimote? I know these things have been done on the Android platform already. I wonder if there's any open source code to pull from.
__________________
-Joel
  #50   Spotlight this post!  
Unread 16-05-2014, 14:05
raystubbs's Avatar
raystubbs raystubbs is offline
Programmer, Builder, Designer
FRC #2657 (Thundercats)
Team Role: Student
 
Join Date: Mar 2014
Rookie Year: 2012
Location: Deming NM
Posts: 121
raystubbs will become famous soon enough
Re: Android Driver Station

Quote:
Originally Posted by Joel Glidden View Post
What about a Bluetooth interface for a PS3 controller or Wiimote? I know these things have been done on the Android platform already. I wonder if there's any open source code to pull from.
It would be awsome to eventually add support for these devices, but really I'm not that good a programmer yet, this is actually my first android app, and I've never worked with bluetooth before. Hopfully when I open source the app some of you at CD can help me out with some of this.

Last edited by raystubbs : 16-05-2014 at 16:21.
  #51   Spotlight this post!  
Unread 16-05-2014, 22:02
guniv's Avatar
guniv guniv is offline
Communications / Business
AKA: Josh Witt
FRC #3966 (L&N STEMpunks)
Team Role: Mentor
 
Join Date: Mar 2014
Rookie Year: 2012
Location: Knoxville, TN
Posts: 149
guniv has a spectacular aura aboutguniv has a spectacular aura aboutguniv has a spectacular aura about
Re: Android Driver Station

Quote:
Originally Posted by raystubbs View Post
I did a little research on adding support for a physical joystick, it seems pretty easy but you need an OTG cable. I just ordered one, so hopefully by the end of summer vacation (August) the app will support a physical joystick.
OTG cables are absolutely awesome, I can transfer photos from my DSLR to my tablet and post to our team's FB page in a minute.

I was thinking more Nvidia Shield, though, which was given away to many teams for free at Champs as I understand it. Big market for you there. I own one personally and it'd be awesome to control the robot from it. For now I can use the Shield's gamepad mapper to use it which should work just as well.

There's a lot of potential here. Looking forward to seeing where this goes.
  #52   Spotlight this post!  
Unread 16-05-2014, 22:31
raystubbs's Avatar
raystubbs raystubbs is offline
Programmer, Builder, Designer
FRC #2657 (Thundercats)
Team Role: Student
 
Join Date: Mar 2014
Rookie Year: 2012
Location: Deming NM
Posts: 121
raystubbs will become famous soon enough
Re: Android Driver Station

Quote:
Originally Posted by guniv View Post
OTG cables are absolutely awesome, I can transfer photos from my DSLR to my tablet and post to our team's FB page in a minute.

I was thinking more Nvidia Shield, though, which was given away to many teams for free at Champs as I understand it. Big market for you there. I own one personally and it'd be awesome to control the robot from it. For now I can use the Shield's gamepad mapper to use it which should work just as well.

There's a lot of potential here. Looking forward to seeing where this goes.
I cannot guaranty it since I know nothing about the Shield, but I just looked it up and if I'm guessing correctly and if the Shield runs android, than the same code to add support for an external joystick will also work perfectly for the Shield joystick.

Last edited by raystubbs : 17-05-2014 at 16:45.
  #53   Spotlight this post!  
Unread 17-05-2014, 18:29
guniv's Avatar
guniv guniv is offline
Communications / Business
AKA: Josh Witt
FRC #3966 (L&N STEMpunks)
Team Role: Mentor
 
Join Date: Mar 2014
Rookie Year: 2012
Location: Knoxville, TN
Posts: 149
guniv has a spectacular aura aboutguniv has a spectacular aura aboutguniv has a spectacular aura about
Re: Android Driver Station

Quote:
Originally Posted by raystubbs View Post
I cannot guaranty it since I know nothing about the Shield, but I just looked it up and if I'm guessing correctly and if the Shield runs android, than the same code to add support for an external joystick will also work perfectly for the Shield joystick.
Awesome.

Today we took two of our robots down to a large fair for kids and let them check out the robots. Our smaller robot that was just a chassis was controlled by your app the entire day from my Shield. I wasn't there as I had another robotics thing going on a short distance away, but I heard of no problems with it. Makes it easy for us to do this since we don't have to haul a laptop around, and even has better battery.
  #54   Spotlight this post!  
Unread 18-05-2014, 18:20
raystubbs's Avatar
raystubbs raystubbs is offline
Programmer, Builder, Designer
FRC #2657 (Thundercats)
Team Role: Student
 
Join Date: Mar 2014
Rookie Year: 2012
Location: Deming NM
Posts: 121
raystubbs will become famous soon enough
Re: Android Driver Station

I added a bit of code for external joystick or Shield joystick support, completely untested as I have no joystick nor any means to connect a joystick to my device. If the code works it will only support the joysticks and not the buttons. I kind of doubt that this will work, but please let me know if it does.
Same link: https://github.com/raystubbs/Android-Driverstation.

Last edited by raystubbs : 18-05-2014 at 19:37.
  #55   Spotlight this post!  
Unread 20-05-2014, 13:15
raystubbs's Avatar
raystubbs raystubbs is offline
Programmer, Builder, Designer
FRC #2657 (Thundercats)
Team Role: Student
 
Join Date: Mar 2014
Rookie Year: 2012
Location: Deming NM
Posts: 121
raystubbs will become famous soon enough
Question Re: Android Driver Station

Anyone who has tried this app please PM me with your device model, OS version, and any comments, complaints, or recomendations. I would like to know which devices the app works on and how well it works. Thanks.
__________________
"If all else fails, read the instructions."
  #56   Spotlight this post!  
Unread 21-05-2014, 08:33
raystubbs's Avatar
raystubbs raystubbs is offline
Programmer, Builder, Designer
FRC #2657 (Thundercats)
Team Role: Student
 
Join Date: Mar 2014
Rookie Year: 2012
Location: Deming NM
Posts: 121
raystubbs will become famous soon enough
Re: Android Driver Station

Sorry, in the previous version of the app the buttons did not work on a normal sized phone screen. Please don't use this version, it is pretty unpredictable. I fixed the error and uploaded the app to the same repo.
__________________
"If all else fails, read the instructions."
  #57   Spotlight this post!  
Unread 22-05-2014, 17:14
raystubbs's Avatar
raystubbs raystubbs is offline
Programmer, Builder, Designer
FRC #2657 (Thundercats)
Team Role: Student
 
Join Date: Mar 2014
Rookie Year: 2012
Location: Deming NM
Posts: 121
raystubbs will become famous soon enough
Re: Android Driver Station

I just worked out the last major bug in the open source version, I opened up a new repository. It has all of my code and the binary file. Let pe know if the binary doesn't work, I just copied and pasted the UI's from the prototype version so they may have bugs.

Note: Though the UI on larger screens has a video switch, it does not do anything yet. If anyone wants to help on this project, getting the video to work would be great.
__________________
"If all else fails, read the instructions."
  #58   Spotlight this post!  
Unread 22-05-2014, 22:28
Spok's Avatar
Spok Spok is offline
Odd Job
FRC #3161 (Tronic Titans)
Team Role: Mentor
 
Join Date: May 2014
Rookie Year: 2012
Location: Canada
Posts: 1
Spok is an unknown quantity at this point
Re: Android Driver Station

I tried both of the versions, and I'm having trouble installing the .apk onto my devices. I also have not had any previous versions of this app. I have a Samsung Galaxy S4 running Android 4.4.2 and I get an error in parsing the package. Do you have any suggestions?
  #59   Spotlight this post!  
Unread 23-05-2014, 09:51
raystubbs's Avatar
raystubbs raystubbs is offline
Programmer, Builder, Designer
FRC #2657 (Thundercats)
Team Role: Student
 
Join Date: Mar 2014
Rookie Year: 2012
Location: Deming NM
Posts: 121
raystubbs will become famous soon enough
Re: Android Driver Station

Quote:
Originally Posted by Spok View Post
I tried both of the versions, and I'm having trouble installing the .apk onto my devices. I also have not had any previous versions of this app. I have a Samsung Galaxy S4 running Android 4.4.2 and I get an error in parsing the package. Do you have any suggestions?
You get a parsing error on both versions? Others have installed it on their galaxys. Do you have "Allow applications from unknown sources" enabled? This needs to be enabled if it is not.
__________________
"If all else fails, read the instructions."

Last edited by raystubbs : 23-05-2014 at 10:03.
  #60   Spotlight this post!  
Unread 23-05-2014, 10:32
dmaciel10123 dmaciel10123 is offline
The Everything Guy
AKA: David Maciel
FRC #3525 (The Nuts and Bolts of Fury)
Team Role: Alumni
 
Join Date: Feb 2013
Rookie Year: 2013
Location: Waterbury, Connecticut
Posts: 100
dmaciel10123 is an unknown quantity at this point
With the newest version (from both repos) the app crashes when I try to launch it.

Here's the log from the Binary from the Source repo:
05-23 10:35:48.082 E/AndroidRuntime(4855): java.lang.RuntimeException: Unable to resume activity {com.example.driverstation/com.example.driverstation.MainActivity}: java.lang.NumberFormatException: Invalid int: "30-80"

Also, I downloaded the source and am going to look at getting the video feed working for you.
__________________

Last edited by dmaciel10123 : 23-05-2014 at 10:56.
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


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

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